1
0
Fork 0
firefox/mobile/android/android-components/components/feature/addons/build.gradle
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

82 lines
2.5 KiB
Groovy

/* 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
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'com.google.devtools.ksp'
android {
defaultConfig {
minSdkVersion = config.minSdkVersion
compileSdk = config.compileSdkVersion
targetSdkVersion = config.targetSdkVersion
ksp {
arg("room.schemaLocation", "$projectDir/schemas".toString())
arg("room.generateKotlin", "true")
}
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.incremental": "true"]
}
}
}
buildTypes {
release {
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt')
}
}
buildFeatures {
viewBinding = true
}
namespace = 'mozilla.components.feature.addons'
}
dependencies {
implementation libs.kotlin.coroutines
implementation libs.androidx.activity
implementation libs.androidx.appcompat
implementation libs.androidx.cardview
implementation libs.androidx.core.ktx
implementation libs.androidx.recyclerview
implementation libs.androidx.work.runtime
implementation libs.androidx.room.runtime
ksp libs.androidx.room.compiler
implementation project(':ui-colors')
implementation project(':ui-icons')
implementation project(':ui-widgets')
implementation project(':browser-state')
implementation project(':concept-engine')
implementation project(':concept-fetch')
implementation project(':concept-menu')
implementation project(':support-base')
implementation project(':support-ktx')
implementation project(':support-webextensions')
implementation project(':support-utils')
testImplementation project(':support-test')
testImplementation project(':support-test-libstate')
testImplementation libs.androidx.concurrent
testImplementation libs.androidx.test.core
testImplementation libs.androidx.test.junit
testImplementation libs.testing.robolectric
testImplementation libs.androidx.work.testing
testImplementation libs.testing.coroutines
}
apply from: '../../../android-lint.gradle'
apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)