diff options
author | cyberta <cyberta@riseup.net> | 2019-12-04 00:49:51 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2019-12-04 00:49:51 +0100 |
commit | 5abafe7b6e1e4eee7b6c9a238e7e0358f20cb52b (patch) | |
tree | 9a8499fcc56905384e7d176ae086cd8a486ed671 | |
parent | b2280e9d8fe4f0de1242600f56c3e0851f44317a (diff) |
avoid apk file name with spaces
-rw-r--r-- | app/build.gradle | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle index 31e00ffb..932fa75c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -325,6 +325,7 @@ android.applicationVariants.all { variant -> def flavors = variant.productFlavors // flavorDimensions "branding" -> 0, "implementation" -> 1, "abi" -> 2 def branding = flavors[0] + def trimmedAppName = branding.appName.replaceAll(' ', '') def abiDimension = flavors[2] def abiFilter = abiDimension.abiFilter if (abiFilter.length() > 0) { @@ -339,7 +340,7 @@ android.applicationVariants.all { variant -> variant.resValue "string", "app_name", "\"${branding.appName}${buildType.appSuffix}\"" variant.outputs.all { output -> - output.outputFileName = "${branding.appName}${abiFilter}_${buildType.name}${tag}.apk" + output.outputFileName = "${trimmedAppName}${abiFilter}_${buildType.name}${tag}.apk" } // reconfigure version codes for split builds |