forked from organicmaps/organicmaps
[android]: Remove beta/debug resources from android/flavors
Override the application name in build.gradle instead. Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
dfc773b7ca
commit
b38bc1f13e
5 changed files with 4 additions and 18 deletions
|
@ -94,6 +94,7 @@ def osName = System.properties['os.name'].toLowerCase()
|
|||
|
||||
project.ext.versionCodes = ['armeabi-v7a': 30, 'x86': 40, 'arm64-v8a': 50, 'x86_64' : 60]
|
||||
project.ext.appId = 'app.omaps'
|
||||
project.ext.appName = 'OMaps'
|
||||
|
||||
configurations.all {
|
||||
if (it.getName().contains("lint"))
|
||||
|
@ -412,8 +413,8 @@ android {
|
|||
jniDebuggable true // Enable jni debug build
|
||||
zipAlignEnabled true
|
||||
signingConfig signingConfigs.mapswithme
|
||||
android.sourceSets.debug.setRoot('flavors/debug')
|
||||
resValue 'string', 'app_id', android.defaultConfig.applicationId + applicationIdSuffix
|
||||
resValue 'string', 'app_name', project.ext.appName + applicationIdSuffix
|
||||
}
|
||||
|
||||
release {
|
||||
|
@ -422,6 +423,7 @@ android {
|
|||
shrinkResources true
|
||||
proguardFile('proguard-mwm.txt')
|
||||
resValue 'string', 'app_id', android.defaultConfig.applicationId
|
||||
resValue 'string', 'app_name', project.ext.appName
|
||||
firebaseCrashlytics {
|
||||
nativeSymbolUploadEnabled true
|
||||
}
|
||||
|
@ -431,9 +433,9 @@ android {
|
|||
applicationIdSuffix '.beta'
|
||||
versionNameSuffix '-beta'
|
||||
signingConfig signingConfigs.mapswithme
|
||||
android.sourceSets.beta.setRoot('flavors/beta')
|
||||
matchingFallbacks = ['debug', 'release']
|
||||
resValue 'string', 'app_id', android.defaultConfig.applicationId + applicationIdSuffix
|
||||
resValue 'string', 'app_name', project.ext.appName + applicationIdSuffix
|
||||
firebaseCrashlytics {
|
||||
nativeSymbolUploadEnabled true
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="app_name">OMaps beta</string>
|
||||
</resources>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:remove="sharedUserId, sharedUserLabel">
|
||||
<uses-permission android:name="android.permission.READ_LOGS"/>
|
||||
<!-- Debug manifest doesn't contain sharedUser values to avoid installation conflicts with production versions -->
|
||||
</manifest>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="app_name">OMaps debug</string>
|
||||
</resources>
|
|
@ -89,7 +89,6 @@
|
|||
<string name="country_status_download_failed">Download has failed</string>
|
||||
<!-- Button text for the button under the country_status_download_failed message -->
|
||||
<string name="try_again">Try Again</string>
|
||||
<string name="app_name">OMaps</string>
|
||||
<string name="about_menu_title">About OMaps</string>
|
||||
<string name="downloading_touch_to_cancel">Downloading %d%%, touch to cancel</string>
|
||||
<string name="downloaded_touch_to_delete">Downloaded (%s), touch to delete</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue