I have this project structure:
- app
- library1
- dynamicFeature1
- dynamicFeature2
Now, I want dynamicFeature2
to only be included in my development builds, and never appear in anything that could be released.
I used productFlavors like this:
productFlavors {
public {
dynamicFeatures = [':dynamicFeature1']
}
development {
dynamicFeatures = [':dynamicFeature1', ':dynamicFeature2']
}
}
This way I have both features in public* and development* variants, however if I comment out the dynamicFeatures
line for development flavor, I will only have dynamicFeature1
in both flavors. So it kinda works, but not the way I want.
So, is there a way for app flavors to have different sets of dynamic features?