build.gradle (2064B)
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/. */ 4 5 plugins { 6 alias(libs.plugins.kotlin.android) 7 alias(libs.plugins.kotlin.compose) 8 } 9 10 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 11 12 apply plugin: 'com.android.library' 13 apply plugin: 'kotlin-parcelize' 14 15 android { 16 buildFeatures { 17 compose = true 18 } 19 20 namespace = 'mozilla.components.browser.state' 21 } 22 23 dependencies { 24 // We expose this as API because we are using Response in our public API and do not want every 25 // consumer to have to manually import "concept-fetch". 26 api project(':components:concept-fetch') 27 api project(':components:lib-state') 28 29 implementation project(':components:concept-awesomebar') 30 implementation project(':components:concept-engine') 31 implementation project(':components:concept-storage') 32 implementation project(':components:support-ktx') 33 implementation project(':components:support-utils') 34 35 implementation libs.androidx.browser 36 implementation platform(libs.androidx.compose.bom) 37 implementation libs.androidx.compose.ui 38 implementation libs.kotlinx.coroutines 39 40 testImplementation project(':components:support-test') 41 testImplementation project(':components:support-test-libstate') 42 43 testImplementation libs.androidx.test.junit 44 testImplementation platform(libs.junit.bom) 45 testImplementation libs.junit4 46 testRuntimeOnly libs.junit.platform.launcher 47 testRuntimeOnly libs.junit.vintage 48 testImplementation libs.kotlinx.coroutines.test 49 testImplementation libs.robolectric 50 51 androidTestImplementation libs.androidx.compose.ui.test 52 androidTestImplementation libs.androidx.compose.ui.test.manifest 53 androidTestImplementation libs.androidx.test.junit 54 } 55 56 apply from: '../../../common-config.gradle' 57 apply from: '../../../publish.gradle' 58 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)