Change app name when built in debug flavor

This commit is contained in:
Sylvain Berfini 2020-06-03 10:27:05 +02:00
parent 3490f26555
commit a4cb50ea42
3 changed files with 7 additions and 4 deletions

View file

@ -67,11 +67,13 @@ android {
}
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"]
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
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"]
}
}

View file

@ -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">

View file

@ -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>