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'
12 compileSdkVersion config.compileSdkVersion
15 minSdkVersion config.minSdkVersion
16 targetSdkVersion config.targetSdkVersion
17 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21 arg("room.schemaLocation", "$projectDir/schemas".toString())
26 annotationProcessorOptions {
27 arguments += ["room.incremental": "true"]
35 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
40 exclude 'META-INF/proguard/androidx-annotations.pro'
44 androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
47 namespace 'mozilla.components.feature.sitepermissions'
50 tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
52 freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
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)