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) -}