Bug 1849833 - Replace qualified name with import.
[gecko.git] / mobile / android / android-components / components / browser / session-storage / build.gradle
blobded5896ab64f00d8fc0c11e4061155f007706c46
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'
10 android {
11     compileSdkVersion config.compileSdkVersion
13     defaultConfig {
14         minSdkVersion config.minSdkVersion
15         targetSdkVersion config.targetSdkVersion
17         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18         testInstrumentationRunnerArgument "clearPackageData", "true"
19         testInstrumentationRunnerArgument "listener", "leakcanary.FailTestOnLeakRunListener"
20     }
22     buildTypes {
23         release {
24             minifyEnabled false
25             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
26         }
27     }
29     namespace 'mozilla.components.browser.session.storage'
32 tasks.withType(KotlinCompile).configureEach {
33     kotlinOptions {
34         freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
35     }
38 dependencies {
39     api project(':browser-state')
41     implementation project(':concept-engine')
42     implementation project(':support-utils')
43     implementation project(':support-ktx')
45     implementation ComponentsDependencies.androidx_core_ktx
46     implementation ComponentsDependencies.kotlin_coroutines
48     implementation ComponentsDependencies.androidx_browser
49     implementation ComponentsDependencies.androidx_drawerlayout
50     implementation ComponentsDependencies.androidx_lifecycle_runtime
51     implementation ComponentsDependencies.androidx_lifecycle_process
53     testImplementation project(':support-test')
54     testImplementation project(':support-test-fakes')
55     testImplementation project(':support-test-libstate')
56     testImplementation project(':feature-tabs')
57     testImplementation ComponentsDependencies.androidx_test_core
58     testImplementation ComponentsDependencies.androidx_test_junit
59     testImplementation ComponentsDependencies.testing_robolectric
60     testImplementation ComponentsDependencies.testing_coroutines
62     androidTestImplementation project(':browser-engine-gecko')
63     androidTestImplementation project(':support-android-test')
64     androidTestImplementation project(':feature-tabs')
65     androidTestImplementation ComponentsDependencies.androidx_test_core
66     androidTestImplementation ComponentsDependencies.androidx_test_runner
67     androidTestImplementation ComponentsDependencies.androidx_test_rules
68     androidTestImplementation ComponentsDependencies.androidx_test_junit
69     androidTestImplementation ComponentsDependencies.androidx_test_uiautomator
70     androidTestImplementation ComponentsDependencies.androidx_espresso_core
71     androidTestImplementation ComponentsDependencies.testing_leakcanary
72     androidTestImplementation ComponentsDependencies.testing_mockwebserver
75 apply from: '../../../android-lint.gradle'
76 apply from: '../../../publish.gradle'
77 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)