I have an ant script that does what it needs to do, but I need to set a few property values based on whether I'm running release or debug. How do I do this?
If it makes a difference, my ant script runs some custom utility tasks before performing android build.
To answer my own question:
The properties to look for are "build.mode.release" and "build.mode.debug", however there IS a caveat ... if your manifest has debuggable="true", the system REVERTS to debug mode with a slight 'short-coming' (IMO)
- build.mode.release is NOT set,
- build.mode.debug is ALSO not set
- Debug signing is disabled (you have to provide a keystore, alias, and password)
Note: This applies only to Android builds