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'
12 compileSdkVersion config.compileSdkVersion
15 minSdkVersion config.minSdkVersion
16 targetSdkVersion config.targetSdkVersion
18 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33 kotlinCompilerExtensionVersion = Versions.compose_compiler
38 excludes += ['META-INF/proguard/androidx-annotations.pro']
42 namespace 'mozilla.components.browser.state'
46 tasks.withType(KotlinCompile).configureEach {
48 freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
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)