do not run proguard in ant debug builds, it breaks the tests

The whole ant build system was built around the assumption that proguard is
only run on the release builds.  Running proguard on the debug builds
breaks the test instrumentation, which does something like insert the emma
methods into each class.  In theory, this could be fixed, but I think its a
bad idea to heavily customize the ant build system since its basically
deprecated in favor of gradle.

Here's the proguard warning message:
 [proguard] Warning: can't find referenced class com.vladium.emma.rt.RT
This commit is contained in:
Hans-Christoph Steiner 2014-09-16 18:58:01 -04:00
parent 481cd91646
commit c330362cf0

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<target name="javadoc" description="Generate Javadocs">
<javadoc sourcepath="${source.dir}"
destdir="${out.dir}/javadoc"
packagenames="org.fdroid.*"
windowtitle="${ant.project.name}"
doctitle="${ant.project.name}" />
</target>
<target name="-debug-obfuscation-check">
<property name="proguard.enabled" value="true"/>
<!--To avoid "Multiple dex files define..."-->
<path id="out.dex.jar.input.ref" />
</target>
</project>