Browse Source

Specify in the app name when using a develop build.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
080c07eeab
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 9
      app/build.gradle.kts
  2. 4
      app/src/main/AndroidManifest.xml

9
app/build.gradle.kts

@ -62,8 +62,11 @@ android { @@ -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 { @@ -71,6 +74,10 @@ android {
}
getByName("release") {
manifestPlaceholders = mapOf(
"app_name" to "Otter"
)
if (props.hasProperty("signing.store")) {
signingConfig = signingConfigs.getByName("release")
}

4
app/src/main/AndroidManifest.xml

@ -11,7 +11,7 @@ @@ -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 @@ @@ -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

Loading…
Cancel
Save