Udpate build

This commit is contained in:
Victor Shcherb 2015-04-28 19:57:26 +02:00
parent c34a4499d8
commit bb4f0fc6d9

View file

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