Android: Better use of gradle for suffixes

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2018-08-03 03:37:11 +02:00
parent a243ac0ee0
commit f35c93e1ac
2 changed files with 5 additions and 9 deletions

View File

@ -46,17 +46,13 @@ android {
buildTypes {
all {
resValue "string", "app_name", "Reicast"
}
debug {
if (System.getenv("TRAVIS_JOB_ID")) {
resValue "string", "app_name", "Reicast CI-" + getVersionName()
android.defaultConfig.applicationId = "com.reicast.emulator.ci_" + getVersionName().replaceAll('-', '_')
versionNameSuffix " CI-" + getVersionName()
applicationIdSuffix ".ci_" + getVersionName().replaceAll('-', '_')
} else {
resValue "string", "app_name", "Reicast DBG-" + getVersionName()
android.defaultConfig.applicationId = "com.reicast.emulator.dbg";
versionNameSuffix " DBG-" + getVersionName()
applicationIdSuffix ".dbg"
}
}

View File

@ -1,6 +1,6 @@
<resources>
<!-- name is now in gradle -->
<string name="app_name">Reicast</string>
<string name="app_site">http://reicast.com</string>