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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven {
}
}
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(':components:browser-state')
implementation project(':components:concept-awesomebar')
implementation project(':components:concept-engine')
implementation project(':components:feature-session')
implementation project(':components:service-nimbus')
implementation project(':components:support-base')
implementation project(':components:support-remotesettings')
implementation project(':components:support-ktx')
implementation libs.androidx.work.runtime
implementation libs.kotlin.coroutines
implementation ComponentsDependencies.mozilla_appservices_suggest
testImplementation project(':components: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)