summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2019-12-04 00:49:51 +0100
committercyberta <cyberta@riseup.net>2019-12-04 00:49:51 +0100
commit5abafe7b6e1e4eee7b6c9a238e7e0358f20cb52b (patch)
tree9a8499fcc56905384e7d176ae086cd8a486ed671 /app
parentb2280e9d8fe4f0de1242600f56c3e0851f44317a (diff)
avoid apk file name with spaces
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle3
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