From f88be38796be9c04d1e1790fddfdbd6fc4a8a2da Mon Sep 17 00:00:00 2001 From: rxu Date: Fri, 20 Aug 2021 11:19:47 +0800 Subject: [PATCH] Use armeabi-v7a version code for MozillaOnline builds --- app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index aebfb9346369..8e106177e56b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -264,9 +264,11 @@ android.applicationVariants.all { variant -> variant.outputs.each { output -> def abi = output.getFilter(OutputFile.ABI) + // If it is a Mozilla Online build, use a unified version code of armeabi-v7a + def arch = (project.hasProperty("mozillaOnline") || gradle.hasProperty("localProperties.mozillaOnline")) ? "armeabi-v7a" : abi // We use the same version code generator, that we inherited from Fennec, across all channels - even on // channels that never shipped a Fennec build. - def versionCodeOverride = Config.generateFennecVersionCode(abi) + def versionCodeOverride = Config.generateFennecVersionCode(arch) println("versionCode for $abi = $versionCodeOverride")