Specify in the app name when using a develop build.

This commit is contained in:
Antoine POPINEAU 2020-07-10 17:23:02 +02:00
parent b34810d631
commit 080c07eeab
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
2 changed files with 11 additions and 2 deletions

View File

@ -62,8 +62,11 @@ android {
buildTypes {
getByName("debug") {
applicationIdSuffix = ".dev"
isDebuggable = true
applicationIdSuffix = ".dev"
manifestPlaceholders = mapOf(
"app_name" to "Otter (develop)"
)
resValue("string", "debug.hostname", props.getProperty("debug.hostname", ""))
resValue("string", "debug.username", props.getProperty("debug.username", ""))
@ -71,6 +74,10 @@ android {
}
getByName("release") {
manifestPlaceholders = mapOf(
"app_name" to "Otter"
)
if (props.hasProperty("signing.store")) {
signingConfig = signingConfigs.getByName("release")
}

View File

@ -11,7 +11,7 @@
android:name="com.github.apognu.otter.Otter"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:label="${app_name}"
android:networkSecurityConfig="@xml/security"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
@ -22,12 +22,14 @@
android:name="com.github.apognu.otter.activities.SplashActivity"
android:launchMode="singleInstance"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity