Browse Source

buildsystem: set the variant abiName to all by default

GRADLE_ABI is never set when building the APK from the build script or in AndroidStudio.
outputAbi is always null for me, but maybe it works in other systems.
merge-requests/2255/merge
Steve Lhomme 1 year ago
committed by Duncan McNamara
parent
commit
284e78aa14
  1. 3
      application/app/build.gradle

3
application/app/build.gradle

@ -150,8 +150,7 @@ android {
//Custom APK name and versionCode
variant.outputs.each { output ->
def outputAbi = output.getFilter(com.android.build.OutputFile.ABI)
def abiName = System.getenv('GRADLE_ABI')?.toLowerCase() ?: "all"
if (outputAbi != null) abiName = outputAbi
def abiName = outputAbi ?: "all"
def versionCode = abiCodes.get(abiName, 0)
if (variant.buildType.name == "vlcBundle") {
versionCode = 9

Loading…
Cancel
Save