Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt...
[gecko.git] / mobile / android / android-components / components / feature / sitepermissions / build.gradle
blob62bc690c05096e18f10c8ddeb1fa2c6d5c0c462d
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 apply plugin: 'com.android.library'
6 apply plugin: 'kotlin-android'
7 apply plugin: 'kotlin-parcelize'
9 apply plugin: 'kotlin-kapt'
11 android {
12     compileSdkVersion config.compileSdkVersion
14     defaultConfig {
15         minSdkVersion config.minSdkVersion
16         targetSdkVersion config.targetSdkVersion
17         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19         kapt {
20             arguments {
21                 arg("room.schemaLocation", "$projectDir/schemas".toString())
22             }
23         }
25         javaCompileOptions {
26             annotationProcessorOptions {
27                 arguments += ["room.incremental": "true"]
28             }
29         }
30     }
32     buildTypes {
33         release {
34             minifyEnabled false
35             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
36         }
37     }
39     packagingOptions {
40         exclude 'META-INF/proguard/androidx-annotations.pro'
41     }
43     sourceSets {
44         androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
45     }
47     namespace 'mozilla.components.feature.sitepermissions'
50 tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
51     kotlinOptions {
52         freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
53     }
56 dependencies {
57     implementation project(':browser-state')
58     implementation project(':concept-engine')
59     implementation project(':ui-icons')
60     implementation project(':support-ktx')
61     implementation project(':feature-tabs')
63     implementation ComponentsDependencies.kotlin_coroutines
65     implementation ComponentsDependencies.androidx_core_ktx
66     implementation ComponentsDependencies.androidx_constraintlayout
67     implementation ComponentsDependencies.androidx_lifecycle_livedata
68     implementation ComponentsDependencies.androidx_paging
69     implementation ComponentsDependencies.androidx_room_runtime
70     kapt ComponentsDependencies.androidx_room_compiler
72     testImplementation project(':support-test')
74     testImplementation ComponentsDependencies.androidx_test_core
75     testImplementation ComponentsDependencies.androidx_test_junit
76     testImplementation ComponentsDependencies.testing_robolectric
77     testImplementation ComponentsDependencies.testing_mockito
78     testImplementation ComponentsDependencies.testing_coroutines
80     androidTestImplementation project(':support-android-test')
82     androidTestImplementation ComponentsDependencies.androidx_room_testing
83     androidTestImplementation ComponentsDependencies.androidx_test_core
84     androidTestImplementation ComponentsDependencies.androidx_test_runner
85     androidTestImplementation ComponentsDependencies.androidx_test_rules
86     androidTestImplementation ComponentsDependencies.testing_coroutines
89 apply from: '../../../android-lint.gradle'
90 apply from: '../../../publish.gradle'
91 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)