Added proguard optimization & better shrinking, now build is 1MB smaller

pull/14/head
Tim Su 13 years ago
parent 10ed3bd532
commit bbd9863217

@ -15,7 +15,6 @@
<classpathentry exported="true" kind="lib" path="libs/framework.jar"/>
<classpathentry exported="true" kind="lib" path="libs/httpmime-4.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="libs/rfc2445-4Mar2011.jar"/>
<classpathentry exported="true" kind="lib" path="libs/guava-r09.jar"/>
<classpathentry exported="true" kind="lib" path="libs/jackson-core-asl-1.6.7.jar"/>
<classpathentry exported="true" kind="lib" path="libs/google-api-client-1.5.0-beta.jar"/>
<classpathentry exported="true" kind="lib" path="libs/google-api-client-extensions-1.5.0-beta.jar"/>

@ -142,10 +142,10 @@
replace="\1 true;" />
</target>
<target name="obfuscate" depends="-setup">
<property name="proguard.enabled" value="true" />
<antcall target="-obfuscate" />
</target>
<target name="obfuscate" depends="-set-debug-files, -set-debug-mode, nodeps, -build-setup,
-set-release-mode, -release-obfuscation-check, -obfuscate" />
<target name="dex" depends="obfuscate, -dex" />
<!-- build custom release package with updated version name -->
<target name="release-custom">

Binary file not shown.

@ -1,16 +1,14 @@
-optimizationpasses 5
-optimizationpasses 2
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
# astrid-specific
-dontobfuscate
-dontoptimize
-keepattributes SourceFile, SourceDir, LineNumberTable, LocalVariableTable, LocalVariableTypeTable
-keep class com.todoroo.**
-keep class com.mdimension.**
-keepnames class com.google.**
-keep, allowshrinking, allowoptimization class com.todoroo.**
# ignore reflection-based access from google libraries
-dontwarn com.google.**
@ -25,10 +23,6 @@
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

Loading…
Cancel
Save