I'm looking for the way how to load my properties per product flavor.
I do have right now:
productFlavors {
flavor1 {
println 'Flavor 1'
loadProperties('flavor1.properties')
}
flavor2 {
println 'Flavor 2'
loadProperties('flavor2.properties')
}
I'm using that properties to filter/process some resources before build.
If I do configure my build for one flavor, and run it through Android studio - I could find that two flavors executed and there are two println in console:
Flavor 1
Flavor 2
Is that possible somehow to find active product flavor per build? Something like get active (or current) product flavor and get access to all properties there? Or even find a way to process resources per different flavors?
Or may be define some property underFlovors and re use it in another place?