Bug 1849833 - Replace qualified name with import.
[gecko.git] / mobile / android / android-components / components / browser / state / build.gradle
blob4b24a2340ec8b8467b095e8c1a406306bcab9ebd
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'
9 apply plugin: 'kotlin-parcelize'
11 android {
12     compileSdkVersion config.compileSdkVersion
14     defaultConfig {
15         minSdkVersion config.minSdkVersion
16         targetSdkVersion config.targetSdkVersion
18         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19     }
21     buildTypes {
22         release {
23             minifyEnabled false
24             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25         }
26     }
28     buildFeatures {
29         compose true
30     }
32     composeOptions {
33         kotlinCompilerExtensionVersion = Versions.compose_compiler
34     }
36     packagingOptions {
37         resources {
38             excludes += ['META-INF/proguard/androidx-annotations.pro']
39         }
40     }
42     namespace 'mozilla.components.browser.state'
46 tasks.withType(KotlinCompile).configureEach {
47     kotlinOptions {
48         freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
49     }
52 dependencies {
53     api project(':lib-state')
55     implementation project(':concept-engine')
56     implementation project(':concept-storage')
57     implementation project(':support-utils')
58     implementation project(':support-ktx')
60     // We expose this as API because we are using Response in our public API and do not want every
61     // consumer to have to manually import "concept-fetch".
62     api project(':concept-fetch')
64     implementation ComponentsDependencies.androidx_browser
65     implementation ComponentsDependencies.androidx_compose_ui
66     implementation ComponentsDependencies.kotlin_coroutines
68     testImplementation project(':support-test')
69     testImplementation project(':support-test-libstate')
70     testImplementation ComponentsDependencies.androidx_test_junit
71     testImplementation ComponentsDependencies.testing_junit
72     testImplementation ComponentsDependencies.testing_robolectric
73     testImplementation ComponentsDependencies.testing_coroutines
75     androidTestImplementation ComponentsDependencies.androidx_test_junit
76     androidTestImplementation ComponentsDependencies.androidx_compose_ui_test_manifest
77     androidTestImplementation ComponentsDependencies.androidx_compose_ui_test
80 apply from: '../../../android-lint.gradle'
81 apply from: '../../../publish.gradle'
82 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)