I have a standard android generated build script. My custom_rules.xml
build script.
<project>
<target name="-minify" >
// More code here
</target>
<target name="-modify-index-html" >
// More code here
</target>
<target name="-post-compile" depends="-minify"/>
<target name="-post-package" depends="-modify-index-html"/>
</project>
The problem is I do not want targets -minify
and -modify-index-html
to run when debug
build is being run. In fact they must run only when release
target is run.