I has two flavor dimensions: brand and version, my flavors config looks like:
flavorDimensions 'brand', 'version'
Brand1 {
dimension 'brand'
...
}
Brand2 {
dimension 'brand'
...
}
Version1 {
dimension 'version'
...
}
Version2 {
dimension 'version'
...
}
And I want to have four unique buildConfigField-s (for example HockeyAppId) for every configurations:
- Brand1Version1
- Brand1Version2
- Brand2Version1
- Brand2Version2
How I can do this?
I wrote my own plugin for that purpose: https://github.com/nikialeksey/porflavor, and now I can define such fields: