I have my bluid.gradle
set different app_names for debug and release like this:
buildTypes {
debug {
...
resValue "string", "app_name", "App Dev"
}
release {
...
resValue "string", "app_name", "App"
}
}
Now, I want to add two flavors for two different targets of the app:
buildTypes {
debug {
...
resValue "string", "app_name", "App Dev"
}
release {
...
resValue "string", "app_name", "App"
}
}
productFlavors {
app {
...
resValue "string", "app_name", "App"
}
client {
...
resValue "string", "app_name", "Client App"
}
}
The question is, how can I set the app_name to match this output:
- appDebug -> "App Dev"
- appRelease -> "App"
- clientDebug -> "Client App Dev"
- clientRelease-> "Client App"
I have seen some answers using resources, but I want to know if there is a way to do so just using gradle.