From e91e34ede24515c00deb2aadfbfc35431cc7db2d Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Fri, 27 Jan 2012 11:00:07 -0500 Subject: [PATCH] added ant build script and proguard opt --- add-proguard-release.xml | 46 +++++++++++++++++++++ build.xml | 88 ++++++++++++++++++++++++++++++++++++++++ procfg.txt | 31 ++++++++++++++ 3 files changed, 165 insertions(+) create mode 100644 add-proguard-release.xml create mode 100644 build.xml create mode 100644 procfg.txt diff --git a/add-proguard-release.xml b/add-proguard-release.xml new file mode 100644 index 00000000..aaf2ffb8 --- /dev/null +++ b/add-proguard-release.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @${proguard-conf} + -injars ${android-jar-preobfuscate} + -outjars ${android-jar-postobfuscate} + -libraryjars ${libraryjarpath} + -dump ${obfuscate.absolute.dir}/dump.txt + -printseeds ${obfuscate.absolute.dir}/seeds.txt + -printusage ${obfuscate.absolute.dir}/usage.txt + -printmapping ${obfuscate.absolute.dir}/mapping.txt + + + diff --git a/build.xml b/build.xml new file mode 100644 index 00000000..27a1ea40 --- /dev/null +++ b/build.xml @@ -0,0 +1,88 @@ + + +]> + + + + + + + + + + + + + + + + + + + + + +&add-proguard-release; + diff --git a/procfg.txt b/procfg.txt new file mode 100644 index 00000000..b9dab406 --- /dev/null +++ b/procfg.txt @@ -0,0 +1,31 @@ +-optimizationpasses 5 +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-dontpreverify +-verbose +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* + +-keep public class * extends android.app.Activity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembernames class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembernames class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} +