Change app name when built in debug flavor
This commit is contained in:
parent
3215334acb
commit
61d1825a6a
3 changed files with 6 additions and 3 deletions
|
@ -71,10 +71,12 @@ android {
|
|||
// https://developer.android.com/studio/releases/gradle-plugin#3-6-0-behavior for extractNativeLibs
|
||||
if (variant.buildType.name == "release") {
|
||||
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||
linphone_file_provider: getPackageName() + ".fileprovider"]
|
||||
linphone_file_provider: getPackageName() + ".fileprovider",
|
||||
appLabel: "@string/app_name"]
|
||||
} else {
|
||||
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||
linphone_file_provider: getPackageName() + ".debug.fileprovider"]
|
||||
linphone_file_provider: getPackageName() + ".debug.fileprovider",
|
||||
appLabel: "@string/app_name_debug"]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
android:name=".LinphoneApplication"
|
||||
android:allowBackup="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:label="${appLabel}"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<resources>
|
||||
<string name="app_name">&appName;</string>
|
||||
<string name="app_name_debug">&appName; (debug)</string>
|
||||
<string name="service_name">&appName; Service</string>
|
||||
<string name="service_auto_start_description">&appName; as been started automatically</string>
|
||||
<string name="service_description">This is required to receive calls while in background</string>
|
||||
|
|
Loading…
Reference in a new issue