Android: Better use of gradle for suffixes
This commit is contained in:
parent
a243ac0ee0
commit
f35c93e1ac
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<resources>
|
||||
|
||||
<!-- name is now in gradle -->
|
||||
<string name="app_name">Reicast</string>
|
||||
|
||||
<string name="app_site">http://reicast.com</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue