1
0
Fork 0
firefox/mobile/android/android-components/components/feature/fxsuggest/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

87 lines
2.7 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
buildscript {
repositories {
maven {
url = "https://maven.mozilla.org/maven2"
}
}
dependencies {
classpath "${ApplicationServicesConfig.groupId}:tooling-nimbus-gradle:${ApplicationServicesConfig.version}"
}
}
plugins {
alias(libs.plugins.python.envs.plugin)
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
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'
}
}
namespace = 'mozilla.components.feature.fxsuggest'
}
dependencies {
api ComponentsDependencies.mozilla_remote_settings
implementation project(':browser-state')
implementation project(':concept-awesomebar')
implementation project(':concept-engine')
implementation project(':feature-session')
implementation project(':service-nimbus')
implementation project(':support-base')
implementation project(':support-remotesettings')
implementation project(':support-ktx')
implementation libs.androidx.work.runtime
implementation libs.kotlin.coroutines
implementation ComponentsDependencies.mozilla_appservices_suggest
testImplementation project(':support-test')
testImplementation libs.androidx.concurrent
testImplementation libs.androidx.test.core
testImplementation libs.androidx.test.junit
testImplementation libs.androidx.work.testing
testImplementation ComponentsDependencies.mozilla_appservices_full_megazord_libsForTests
testImplementation libs.testing.coroutines
testImplementation libs.testing.robolectric
}
apply from: '../../../android-lint.gradle'
apply from: '../../../publish.gradle'
apply plugin: "org.mozilla.appservices.nimbus-gradle-plugin"
nimbus {
// The path to the Nimbus feature manifest file
manifestFile = "fxsuggest.fml.yaml"
channels = [
debug: "debug",
release: "release",
]
applicationServicesDir = gradle.hasProperty('localProperties.autoPublish.application-services.dir')
? gradle.getProperty('localProperties.autoPublish.application-services.dir') : null
}
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)