From d9c3f70ad03eecb0ca26ad31e2d5adb7af0db560 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Thu, 12 Mar 2020 17:21:35 -0700 Subject: [PATCH] Removed unused gradle function --- app/build.gradle | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0a680f254..3a005908d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -558,39 +558,3 @@ if (gradle.hasProperty('localProperties.dependencySubstitutions.geckoviewTopsrcd apply from: "${topsrcdir}/substitute-local-geckoview.gradle" } -// ------------------------------------------------------------------------------------------------- -// Dynamically set versionCode (See tools/build/versionCode.gradle -// ------------------------------------------------------------------------------------------------- - -android.applicationVariants.all { variant -> - def buildType = variant.buildType.name - if (gradle.hasProperty('userProperties.taskclusterBuild')) { - def versionCode = generatedVersionCode - - // The Google Play Store does not allow multiple APKs for the same app that all have the - // same version code. Therefore we need to have different version codes for our ARM and x86 - // builds. - // Our generated version code has a length of 8 (See tools/gradle/versionCode.gradle). - // We will prefix our ARM builds with 1 and our x86 builds with 2. Our x86 builds need a - // higher version code to avoid installing ARM builds on an x86 device with ARM - // compatibility mode. - def multiplier = 100000000 - - if (variant.flavorName.contains("x86_64")) { - versionCode = versionCode + (3 * multiplier) - } else if (variant.flavorName.contains("Aarch64")) { - versionCode = versionCode + (2 * multiplier) - } else if (variant.flavorName.contains("Arm")) { - versionCode = versionCode + (1 * multiplier) - } - - variant.outputs.each { output -> - output.versionCodeOverride = versionCode - } - } - - println("----------------------------------------------") - println("Build type: " + buildType) - println("Flavor: " + variant.flavorName) - println("Version code: " + variant.mergedFlavor.versionCode) -}