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 static org.mozilla.conventions.BuildConfigKt.updateExtensionVersion
plugins {
id 'com.android.library'
alias(libs.plugins.dependency.analysis)
}
android {
namespace = 'mozilla.components.feature.accounts'
}
tasks.register("updateBuiltInExtensionVersion", Copy) { task ->
updateExtensionVersion(task, 'src/main/assets/extensions/fxawebchannel', rootProject.ext.config.componentsVersion)
}
// Make sure DAGP asset-source exploding happens after ExtensionVersion tasks
tasks.matching { it.name.startsWith("explodeAssetSource") }.configureEach { t ->
t.dependsOn(tasks.named("updateBuiltInExtensionVersion"))
}
dependencies {
implementation project(":components:browser-state")
implementation project(':components:concept-engine')
implementation project(':components:feature-tabs')
implementation project(':components:service-firefox-accounts')
implementation project(':components:support-ktx')
implementation project(':components:support-webextensions')
implementation libs.androidx.work.runtime
implementation libs.kotlinx.coroutines
testImplementation project(':components:support-test')
testImplementation ComponentsDependencies.mozilla_appservices_full_megazord_libsForTests
testImplementation libs.androidx.test.junit
testImplementation libs.kotlinx.coroutines.test
testImplementation libs.robolectric
}
apply from: '../../../common-config.gradle'
apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
preBuild.dependsOn updateBuiltInExtensionVersion