diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8235eae..eabcf94 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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") } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b97c382..60518b5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -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"> + +