Skip to content
Snippets Groups Projects
Commit 22d99a96 authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Geoffrey Métais
Browse files

Fix apk name on CLI builds

parent e4847ee3
No related branches found
No related tags found
1 merge request!420Fix apk name according to ABI
......@@ -118,7 +118,9 @@ android {
applicationVariants.all { variant ->
//Custom APK name and versionCode
variant.outputs.each { output ->
def abiName = output.getFilter(com.android.build.OutputFile.ABI) ?: System.getenv('GRADLE_ABI')?.toLowerCase() ?: "all"
def outputAbi = output.getFilter(com.android.build.OutputFile.ABI)
def abiName = System.getenv('GRADLE_ABI')?.toLowerCase() ?: "all"
if (outputAbi != null) abiName = outputAbi
output.versionCodeOverride = 10000000 + defaultConfig.versionCode + abiCodes.get(abiName, 0)
def outputName = "VLC-Android-"
outputName += variant.versionName + "-" + abiName + ".apk"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment