I have an ant script that does what it needs to do, but I need to set several property values based on whether I am running a run or debugging. How to do it?
If that matters, my ant script runs some custom utility tasks before completing the Android build.
To answer my own question:
The properties to look for are "build.mode.release" and "build.mode.debug", however there is caveat ... if your manifest has debuggable = "true", the REVERTS system for debug mode with a little "short" ( IMO)
- build.mode.release is NOT installed ,
- build.mode.debug is ALSO not installed
- Debug signing is disabled (you must specify a keystore, alias, and password).
Note. . This only applies to Android strings.
java android build ant configuration
copolii
source share