Update build.gradle

This commit is contained in:
vshcherb 2017-05-18 19:44:38 +02:00 committed by GitHub
parent 07fdd43827
commit 264c780952

View file

@ -183,13 +183,13 @@ def replaceNoTranslate(line) {
if (line.contains("\"app_edition\"") && System.getenv("APP_EDITION")) { if (line.contains("\"app_edition\"") && System.getenv("APP_EDITION")) {
return line.replaceAll(">[^<]*<", ">" + System.getenv("APP_EDITION") + "<") return line.replaceAll(">[^<]*<", ">" + System.getenv("APP_EDITION") + "<")
} }
if (line.contains("\"app_version\"") && System.getenv("APK_VERSION")) { // if (line.contains("\"app_version\"") && System.getenv("APK_VERSION")) {
return line.replaceAll(">[^<]*<", ">" + System.getenv("APK_VERSION") + "<") // return line.replaceAll(">[^<]*<", ">" + System.getenv("APK_VERSION") + "<")
} // }
if (line.contains("\"app_version\"") && System.getenv("APK_VERSION_SUFFIX")) { // if (line.contains("\"app_version\"") && System.getenv("APK_VERSION_SUFFIX")) {
// appends build number to version number for dev builds // appends build number to version number for dev builds
return line.replaceAll("</", System.getenv("APK_VERSION_SUFFIX") + "</") // return line.replaceAll("</", System.getenv("APK_VERSION_SUFFIX") + "</")
} // }
if (line.contains("\"versionFeatures\"") && System.getenv("APP_FEATURES")) { if (line.contains("\"versionFeatures\"") && System.getenv("APP_FEATURES")) {
return line.replaceAll(">[^<]*<", ">" + System.getenv("APP_FEATURES") + "<") return line.replaceAll(">[^<]*<", ">" + System.getenv("APP_FEATURES") + "<")
} }