Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
plugins {
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply plugin: 'com.android.library'
apply plugin: 'kotlin-parcelize'
android {
defaultConfig {
minSdkVersion = config.minSdkVersion
compileSdk = config.compileSdkVersion
targetSdkVersion = config.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
compose = true
}
namespace = 'mozilla.components.browser.state'
}
dependencies {
api project(':components:lib-state')
implementation platform(libs.androidx.compose.bom)
implementation project(':components:concept-awesomebar')
implementation project(':components:concept-engine')
implementation project(':components:concept-storage')
implementation project(':components:support-utils')
implementation project(':components:support-ktx')
// We expose this as API because we are using Response in our public API and do not want every
// consumer to have to manually import "concept-fetch".
api project(':components:concept-fetch')
implementation libs.androidx.browser
implementation libs.androidx.compose.ui
implementation libs.kotlin.coroutines
testImplementation project(':components:support-test')
testImplementation project(':components:support-test-libstate')
testImplementation libs.androidx.test.junit
testImplementation platform(libs.junit.bom)
testImplementation libs.junit4
testRuntimeOnly libs.junit.vintage
testRuntimeOnly libs.junit.platform.launcher
testImplementation libs.testing.robolectric
testImplementation libs.testing.coroutines
androidTestImplementation libs.androidx.test.junit
androidTestImplementation libs.androidx.compose.ui.test.manifest
androidTestImplementation libs.androidx.compose.ui.test
}
apply from: '../../../android-lint.gradle'
apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)