I have a gradle config as setup below. To allow for side by side installs of different builds/flavors
buildTypes {
release {
}
debug {
applicationIdSuffix ".debug"
// Somehow add debug suffix to app ID?
}
}
productFlavors {
ci {
applicationId "com.myapp.ci"
ext.betaDistributionGroupAliases = "mobileworkforce.ci"
resValue "string", "app_name", "AppName.CI"
}
staging {
applicationId "com.myapp.staging"
resValue "string", "app_name", "AppName.Staging"
}
production {
applicationId "com.myapp"
resValue "string", "app_name", "AppName"
}
The issue is that I cannot figure out how to update the app_name
string resource to have the suffix "Debug" to the app_name string resource (used as the label for the application)
I was able to create a viable solution using manifestPlaceholders instead of generating string resources. It is not ideal because the result is
AppName.Debug.CI
instead ofAppName.CI.Debug
but it works.