forked from upstream-mirrors/OpenTracks
Build: debug version uses different icon and appLabel.
This commit is contained in:
+10
-1
@@ -6,7 +6,7 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,6 +54,11 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "de.dennisguse.opentracks"
|
applicationId "de.dennisguse.opentracks"
|
||||||
|
manifestPlaceholders = [
|
||||||
|
applicationLogo: "@drawable/ic_logo_color_24dp",
|
||||||
|
applicationName: "@strings/app_name"
|
||||||
|
]
|
||||||
|
|
||||||
//Useful for debugging.
|
//Useful for debugging.
|
||||||
//versionCode getVersionCode()
|
//versionCode getVersionCode()
|
||||||
|
|
||||||
@@ -69,6 +74,10 @@ android {
|
|||||||
debug {
|
debug {
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
versionNameSuffix "-debug"
|
versionNameSuffix "-debug"
|
||||||
|
manifestPlaceholders = [
|
||||||
|
applicationLogo: "@android:drawable/ic_menu_mylocation",
|
||||||
|
applicationName: "OpenTracks (Debug)"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
release {
|
release {
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ limitations under the License.
|
|||||||
android:name=".Startup"
|
android:name=".Startup"
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:icon="@drawable/ic_logo_color_24dp"
|
android:icon="${applicationLogo}"
|
||||||
android:label="@string/app_name"
|
android:label="${applicationName}"
|
||||||
android:theme="@style/ThemeCustom">
|
android:theme="@style/ThemeCustom">
|
||||||
|
|
||||||
<!-- Activities -->
|
<!-- Activities -->
|
||||||
|
|||||||
Reference in New Issue
Block a user