The default ant system I have set up for my Android app has two different options: release and debug. I can differentiate between the two using ${build.is.packaging.debug}. I can build these in one step by doing either ant release or ant debug.
I’d like to be able to add a third option: beta. This way I can enable certain flags for beta users that I don’t want normal users to see while still leaving out my debugging code. Where in the ant build system do I specify a new target?
If you open your project
build.xmlyou will find there targets release and debug. You should create new one similar with name beta and set apply your specific parameters there.Here is mine example of simple ant build process: