From 18ce2b9c874d8a624879b7ab4669b24c60942ad5 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 9 Feb 2021 17:07:36 +0100 Subject: [PATCH] Fix release builds --- OsmAnd/AndroidManifest-huawei.xml | 2 +- OsmAnd/build.gradle | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/AndroidManifest-huawei.xml b/OsmAnd/AndroidManifest-huawei.xml index c557d5fe2a..c71b7a3a93 100644 --- a/OsmAnd/AndroidManifest-huawei.xml +++ b/OsmAnd/AndroidManifest-huawei.xml @@ -4,7 +4,7 @@ [^<]*<", ">" + System.getenv("TARGET_APP_NAME") + "<") + if (line.contains("\"app_name\"") && System.getenv("TARGET_APP_PLUS_NAME")) { + return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_PLUS_NAME") + "<") } - if (line.contains("\"app_name_free\"") && System.getenv("TARGET_APP_NAME")) { - return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_NAME") + "<") + if (line.contains("\"app_name_free\"") && System.getenv("TARGET_APP_FREE_NAME")) { + return line.replaceAll(">[^<]*<", ">" + System.getenv("TARGET_APP_FREE_NAME") + "<") } if (line.contains("\"app_edition\"") && System.getenv("APP_EDITION")) { return line.replaceAll(">[^<]*<", ">" + System.getenv("APP_EDITION") + "<")