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 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7 apply plugin: 'com.android.library'
8 apply plugin: 'kotlin-android'
12 minSdkVersion config.minSdkVersion
13 compileSdk config.compileSdkVersion
14 targetSdkVersion config.targetSdkVersion
15 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25 namespace 'mozilla.components.feature.prompts'
28 tasks.withType(KotlinCompile).configureEach {
29 kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
33 implementation project(':browser-state')
34 implementation project(':concept-engine')
35 implementation project(':feature-session')
36 implementation project(':feature-tabs')
37 implementation project(':lib-state')
38 implementation project(':support-ktx')
39 implementation project(':support-utils')
40 implementation project(':ui-icons')
41 implementation project(':ui-widgets')
43 implementation ComponentsDependencies.androidx_constraintlayout
44 implementation ComponentsDependencies.androidx_core_ktx
45 implementation ComponentsDependencies.google_material
47 testImplementation ComponentsDependencies.androidx_test_core
48 testImplementation ComponentsDependencies.androidx_test_junit
49 testImplementation ComponentsDependencies.testing_coroutines
50 testImplementation ComponentsDependencies.testing_robolectric
51 testImplementation project(':feature-session')
52 testImplementation project(':support-test')
53 testImplementation project(':support-test-libstate')
55 androidTestImplementation project(':support-android-test')
56 androidTestImplementation ComponentsDependencies.androidx_test_core
57 androidTestImplementation ComponentsDependencies.androidx_test_runner
60 apply from: '../../../android-lint.gradle'
61 apply from: '../../../publish.gradle'
62 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)