From a3cd4cd2a03d974ebe2b881c71bac99b9dad95fd Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 24 Jan 2015 19:31:57 +0100 Subject: [PATCH] process build number in build.gradle --- OsmAnd/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index d1de4239de..4523a264fb 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -172,6 +172,9 @@ def replaceNoTranslate(line) { if(line.contains("\"app_edition\"") && System.getenv("APP_EDITION")) { return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_EDITION")+"<") } + if(line.contains("\"app_version\"") && System.getenv("APK_VERSION")) { + return line.replaceAll(">[^<]*<", " >\1"+System.getenv("APK_VERSION")+"<") + } if(line.contains("\"versionFeatures\"") && System.getenv("APP_FEATURES")) { return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_FEATURES")+"<") }