Specify in the app name when using a develop build.
This commit is contained in:
parent
b34810d631
commit
080c07eeab
|
@ -62,8 +62,11 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
applicationIdSuffix = ".dev"
|
|
||||||
isDebuggable = true
|
isDebuggable = true
|
||||||
|
applicationIdSuffix = ".dev"
|
||||||
|
manifestPlaceholders = mapOf(
|
||||||
|
"app_name" to "Otter (develop)"
|
||||||
|
)
|
||||||
|
|
||||||
resValue("string", "debug.hostname", props.getProperty("debug.hostname", ""))
|
resValue("string", "debug.hostname", props.getProperty("debug.hostname", ""))
|
||||||
resValue("string", "debug.username", props.getProperty("debug.username", ""))
|
resValue("string", "debug.username", props.getProperty("debug.username", ""))
|
||||||
|
@ -71,6 +74,10 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
getByName("release") {
|
getByName("release") {
|
||||||
|
manifestPlaceholders = mapOf(
|
||||||
|
"app_name" to "Otter"
|
||||||
|
)
|
||||||
|
|
||||||
if (props.hasProperty("signing.store")) {
|
if (props.hasProperty("signing.store")) {
|
||||||
signingConfig = signingConfigs.getByName("release")
|
signingConfig = signingConfigs.getByName("release")
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
android:name="com.github.apognu.otter.Otter"
|
android:name="com.github.apognu.otter.Otter"
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="${app_name}"
|
||||||
android:networkSecurityConfig="@xml/security"
|
android:networkSecurityConfig="@xml/security"
|
||||||
android:roundIcon="@mipmap/ic_launcher"
|
android:roundIcon="@mipmap/ic_launcher"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
|
@ -22,12 +22,14 @@
|
||||||
android:name="com.github.apognu.otter.activities.SplashActivity"
|
android:name="com.github.apognu.otter.activities.SplashActivity"
|
||||||
android:launchMode="singleInstance"
|
android:launchMode="singleInstance"
|
||||||
android:noHistory="true">
|
android:noHistory="true">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
|
|
Loading…
Reference in New Issue