Fix release builds
This commit is contained in:
parent
6d09956f7a
commit
18ce2b9c87
2 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:icon="@mipmap/icon_free"
|
android:icon="@mipmap/icon_free"
|
||||||
android:label="@string/app_name_free"
|
android:label="OsmAnd — Offline Maps & GPS Navigation"
|
||||||
tools:replace="android:icon, android:label">
|
tools:replace="android:icon, android:label">
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
|
|
|
@ -154,11 +154,11 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
def replaceNoTranslate(line) {
|
def replaceNoTranslate(line) {
|
||||||
if (line.contains("\"app_name\"") && System.getenv("TARGET_APP_NAME")) {
|
if (line.contains("\"app_name\"") && System.getenv("TARGET_APP_PLUS_NAME")) {
|
||||||
return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_NAME") + "<")
|
return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_PLUS_NAME") + "<")
|
||||||
}
|
}
|
||||||
if (line.contains("\"app_name_free\"") && System.getenv("TARGET_APP_NAME")) {
|
if (line.contains("\"app_name_free\"") && System.getenv("TARGET_APP_FREE_NAME")) {
|
||||||
return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_NAME") + "<")
|
return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_FREE_NAME") + "<")
|
||||||
}
|
}
|
||||||
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") + "<")
|
||||||
|
|
Loading…
Reference in a new issue