[Android] Custom apk name VLC-VERSION-ABI.apk
Geoffrey Métais
git at videolan.org
Tue Feb 10 11:09:37 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 9 15:08:14 2015 +0100| [74e57277785f31a56dd181449677595b6eaf856f] | committer: Geoffrey Métais
Custom apk name VLC-VERSION-ABI.apk
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=74e57277785f31a56dd181449677595b6eaf856f
---
vlc-android/build.gradle | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index f8c5f77..038e2fa 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -122,6 +122,13 @@ android {
// set the composite code
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 {
More information about the Android
mailing list