/* 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/. */ plugins { id 'com.android.library' id 'org.mozilla.nimbus-gradle-plugin' alias(libs.plugins.dependency.analysis) alias(libs.plugins.kotlin.serialization) alias(libs.plugins.python.envs.plugin) } android { 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-base') implementation project(':components:concept-engine') implementation project(':components:feature-session') implementation project(':components:service-nimbus') implementation project(':components:support-appservices') implementation project(':components:support-base') implementation project(':components:support-remotesettings') implementation project(':components:support-ktx') implementation ComponentsDependencies.mozilla_appservices_errorsupport implementation (ComponentsDependencies.mozilla_appservices_httpconfig) { // Override the version of concept-fetch that A-S depends on, // since we want to replace it with our own. exclude group: 'org.mozilla.components', module: 'concept-fetch' } implementation ComponentsDependencies.mozilla_appservices_merino implementation ComponentsDependencies.mozilla_appservices_suggest implementation libs.androidx.work.runtime implementation libs.kotlinx.coroutines implementation libs.kotlinx.serialization.json implementation project(':components:concept-fetch') testImplementation project(':components:support-test') testImplementation ComponentsDependencies.mozilla_appservices_full_megazord_libsForTests testImplementation libs.androidx.concurrent testImplementation libs.androidx.test.core testImplementation libs.androidx.test.junit testImplementation libs.androidx.work.testing testImplementation libs.kotlin.test testImplementation libs.kotlinx.coroutines.test testImplementation libs.robolectric } apply from: '../../../common-config.gradle' apply from: '../../../publish.gradle' 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)