mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Change app name when built in debug flavor
This commit is contained in:
parent
3490f26555
commit
a4cb50ea42
3 changed files with 7 additions and 4 deletions
|
|
@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue