[Android] Sanitize apk name
Nicolas Pomepuy
git at videolan.org
Thu Jul 2 11:55:26 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jul 1 14:57:43 2020 +0200| [165848bc2e0bec61b69f19f565aa656c183333cf] | committer: Nicolas Pomepuy
Sanitize apk name
> https://code.videolan.org/videolan/vlc-android/commit/165848bc2e0bec61b69f19f565aa656c183333cf
---
application/app/build.gradle | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/application/app/build.gradle b/application/app/build.gradle
index f0d88f4ac..737506e2c 100644
--- a/application/app/build.gradle
+++ b/application/app/build.gradle
@@ -148,7 +148,9 @@ android {
if (outputAbi != null) abiName = outputAbi
output.versionCodeOverride = 10000000 + defaultConfig.versionCode + abiCodes.get(abiName, 0)
def outputName = "VLC-Android-"
- outputName += variant.versionName + "-" + abiName + ".apk"
+ outputName += variant.versionName.replace(" ", "-")
+ if (variant.buildType.name == "debug") outputName += "-debug"
+ outputName += "-" + abiName + ".apk"
output.outputFileName = outputName
}
}
More information about the Android
mailing list