Configuration management for different build types

Hello,

Been looking into this without any luck. My Android app needs to have different configuration based on the build type (debug, release, etc). Any ideas on how this can be done. I’m looking at solutions like passing a different config.xml file to the cli or having separate configuration for different builds in config.xml itself.

In native development, we have “flavors” in Android studio (a feature of Gradle), which lets me do this, but I’m not able to figure this out for Ionic/Cordova projects. Any input would be really helpful.

Thanks,
Mahesh

3 Likes