Bug 1849833 - Replace all with configureEach.

This avoids unnecessary configuration.
fenix/119.0
mcarare 9 months ago committed by mergify[bot]
parent f1f380a770
commit 1b7c3f5631

@ -254,7 +254,7 @@ android {
namespace 'org.mozilla.fenix'
}
android.applicationVariants.all { variant ->
android.applicationVariants.configureEach { variant ->
// -------------------------------------------------------------------------------------------------
// Generate version codes for builds
@ -709,7 +709,7 @@ if (project.hasProperty("coverage")) {
toolVersion = Versions.jacoco
}
android.applicationVariants.all { variant ->
android.applicationVariants.configureEach { variant ->
tasks.register("jacoco${variant.name.capitalize()}TestReport", JacocoReport) {
dependsOn "test${variant.name.capitalize()}UnitTest"
@ -847,7 +847,7 @@ if (gradle.hasProperty('localProperties.autoPublish.glean.dir')) {
apply from: "../${gleanSrcDir}/build-scripts/substitute-local-glean.gradle"
}
android.applicationVariants.all { variant ->
android.applicationVariants.configureEach { variant ->
tasks.register("apkSize${variant.name.capitalize()}", ApkSizeTask) {
variantName = variant.name
apks = variant.outputs.collect { output -> output.outputFile.name }

@ -46,7 +46,7 @@ android {
* and that's applied to the app module. Since there are no other uses of the glean plugin in the
* benchmark module, we do this manually here.
*/
configurations.all {
configurations.configureEach {
resolutionStrategy.capabilitiesResolution.withCapability("org.mozilla.telemetry:glean-native") {
def toBeSelected = candidates.find { it.id instanceof ModuleComponentIdentifier && it.id.module.contains('geckoview') }
if (toBeSelected != null) {

Loading…
Cancel
Save