Is it possible to have the following setup:
flavorDimension "production", "staging"
productFlavors {
staging {
dimension "staging"
...
}
production {
dimension "production"
...
}
flavorOne {
dimension "staging"
...
}
flavorOne {
dimension "production"
...
}
}
flavorOne exists two times and contains different settings but also with different dimensions.
What I need is a flavor flavorOne with production and staging and also res files for flavorOneStaging and flavorOneProduction. If I am doing it like this, I only see flavorOneStagingDebug and flavorOneStagingRelease (release and debug are my buildTypes) but nor flavorOneProduction..
Do I have to create a flavor for every combination? Staging and production contains data that never changes except res files and flavorOne is just one of N. I don't want to create N*2 flavors to have every flavor in production and staging? Any solutions?
What you need is:
Assuming your build types are release and debug, this will produce: