@@ -558,39 +558,3 @@ if (gradle.hasProperty('localProperties.dependencySubstitutions.geckoviewTopsrcd
558558 apply from : " ${ topsrcdir} /substitute-local-geckoview.gradle"
559559}
560560
561- // -------------------------------------------------------------------------------------------------
562- // Dynamically set versionCode (See tools/build/versionCode.gradle
563- // -------------------------------------------------------------------------------------------------
564-
565- android. applicationVariants. all { variant ->
566- def buildType = variant. buildType. name
567- if (gradle. hasProperty(' userProperties.taskclusterBuild' )) {
568- def versionCode = generatedVersionCode
569-
570- // The Google Play Store does not allow multiple APKs for the same app that all have the
571- // same version code. Therefore we need to have different version codes for our ARM and x86
572- // builds.
573- // Our generated version code has a length of 8 (See tools/gradle/versionCode.gradle).
574- // We will prefix our ARM builds with 1 and our x86 builds with 2. Our x86 builds need a
575- // higher version code to avoid installing ARM builds on an x86 device with ARM
576- // compatibility mode.
577- def multiplier = 100000000
578-
579- if (variant. flavorName. contains(" x86_64" )) {
580- versionCode = versionCode + (3 * multiplier)
581- } else if (variant. flavorName. contains(" Aarch64" )) {
582- versionCode = versionCode + (2 * multiplier)
583- } else if (variant. flavorName. contains(" Arm" )) {
584- versionCode = versionCode + (1 * multiplier)
585- }
586-
587- variant. outputs. each { output ->
588- output. versionCodeOverride = versionCode
589- }
590- }
591-
592- println (" ----------------------------------------------" )
593- println (" Build type: " + buildType)
594- println (" Flavor: " + variant. flavorName)
595- println (" Version code: " + variant. mergedFlavor. versionCode)
596- }
0 commit comments