Commit 74e57277 authored by Geoffrey Métais's avatar Geoffrey Métais

Custom apk name VLC-VERSION-ABI.apk

parent 44fa5a8e
...@@ -122,6 +122,13 @@ android { ...@@ -122,6 +122,13 @@ android {
// set the composite code // set the composite code
variant.mergedFlavor.versionCode = targetVersion * 10000000 + manifestParser.getVersionCode(android.sourceSets.main.manifest.srcFile) + abiVersion variant.mergedFlavor.versionCode = targetVersion * 10000000 + manifestParser.getVersionCode(android.sourceSets.main.manifest.srcFile) + abiVersion
//Custom APK name
def vlcVersion = manifestParser.getVersionName(android.sourceSets.main.manifest.srcFile)
variant.outputs.each { output ->
def outputName = "VLC-"+vlcVersion+"-"+variant.productFlavors.get(1).name+".apk"
output.outputFile = new File(output.outputFile.parentFile, outputName);
}
} }
sourceSets.main { sourceSets.main {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment