From 234be72f594198359e9c8f5cc8f5029008bf367f Mon Sep 17 00:00:00 2001 From: Matthieu <24-artectrex@users.noreply.shinice.net> Date: Sat, 16 Mar 2024 08:52:58 +0100 Subject: [PATCH] Fix build typo --- app/build.gradle | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b55a4bf9..675396ce 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,6 +8,21 @@ plugins { id("kotlin-parcelize") id("com.google.devtools.ksp") } +// Map for the version code that gives each ABI a value. +ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, x86: 3, x86_64: 4] + +//Different version codes per architecture (for F-Droid support) +android.applicationVariants.configureEach { variant -> + variant.outputs.each { output -> + def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI)) + if (baseAbiVersionCode != null) { + output.versionCodeOverride = (100 * project.android.defaultConfig.versionCode) + baseAbiVersionCode + } else { + output.versionCodeOverride = 100 * project.android.defaultConfig.versionCode + } + } + +} android { @@ -285,21 +300,6 @@ dependencies { } -// Map for the version code that gives each ABI a value. -ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, x86: 3, x86_64: 4] - -//Different version codes per architecture (for F-Droid support) -android.applicationVariants.configureEach { variant -> - variant.outputs.each { output -> - def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI)) - if (baseAbiVersionCode != null) { - output.versionCodeOverride = (100 * project.android.defaultConfig.versionCode) + baseAbiVersionCode - } else { - output.versionCodeOverride = 100 * project.android.defaultConfig.versionCode - } - } - -} tasks.withType(Test).configureEach {