build.gradle (2301B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 6 7 buildscript { 8 repositories { 9 mavenLocal() 10 } 11 } 12 13 plugins { 14 alias(libs.plugins.python.envs.plugin) 15 id 'org.mozilla.nimbus-gradle-plugin' 16 } 17 18 apply plugin: 'com.android.library' 19 apply plugin: 'kotlin-android' 20 21 android { 22 namespace = 'mozilla.components.feature.fxsuggest' 23 } 24 25 dependencies { 26 api ComponentsDependencies.mozilla_remote_settings 27 28 implementation project(':components:browser-state') 29 implementation project(':components:concept-awesomebar') 30 implementation project(':components:concept-engine') 31 implementation project(':components:feature-session') 32 implementation project(':components:service-nimbus') 33 implementation project(':components:support-appservices') 34 implementation project(':components:support-base') 35 implementation project(':components:support-remotesettings') 36 implementation project(':components:support-ktx') 37 38 implementation ComponentsDependencies.mozilla_appservices_suggest 39 implementation libs.androidx.work.runtime 40 implementation libs.kotlinx.coroutines 41 42 testImplementation project(':components:support-test') 43 44 testImplementation ComponentsDependencies.mozilla_appservices_full_megazord_libsForTests 45 testImplementation libs.androidx.concurrent 46 testImplementation libs.androidx.test.core 47 testImplementation libs.androidx.test.junit 48 testImplementation libs.androidx.work.testing 49 testImplementation libs.kotlinx.coroutines.test 50 testImplementation libs.robolectric 51 } 52 53 apply from: '../../../common-config.gradle' 54 apply from: '../../../publish.gradle' 55 nimbus { 56 // The path to the Nimbus feature manifest file 57 manifestFile = "fxsuggest.fml.yaml" 58 59 channels = [ 60 debug: "debug", 61 release: "release", 62 ] 63 64 applicationServicesDir = gradle.hasProperty('localProperties.autoPublish.application-services.dir') 65 ? gradle.getProperty('localProperties.autoPublish.application-services.dir') : null 66 } 67 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)