From 19986897341ff0bef774756e460eb641cff28cdb Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 21 Nov 2011 13:53:49 -0800 Subject: [PATCH] Migrated ant scripts to Android SDK v15 --- api/build.xml | 123 +++++++++------- api/proguard.cfg | 40 +++++ astrid/{build.properties => ant.properties} | 0 astrid/build.xml | 155 ++++++++++++-------- astrid/proguard.cfg | 12 +- facebook/facebook/build.xml | 85 +++++++++++ facebook/facebook/proguard.cfg | 40 +++++ greendroid/GreenDroid/build.xml | 85 +++++++++++ greendroid/GreenDroid/proguard.cfg | 40 +++++ 9 files changed, 460 insertions(+), 120 deletions(-) create mode 100644 api/proguard.cfg rename astrid/{build.properties => ant.properties} (100%) create mode 100644 facebook/facebook/build.xml create mode 100644 facebook/facebook/proguard.cfg create mode 100644 greendroid/GreenDroid/build.xml create mode 100644 greendroid/GreenDroid/proguard.cfg diff --git a/api/build.xml b/api/build.xml index e471fa502..0c95b7582 100644 --- a/api/build.xml +++ b/api/build.xml @@ -1,68 +1,85 @@ - + - + It contains the path to the SDK. It should *NOT* be checked into + Version Control Systems. --> + - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + + + diff --git a/api/proguard.cfg b/api/proguard.cfg new file mode 100644 index 000000000..b1cdf17b5 --- /dev/null +++ b/api/proguard.cfg @@ -0,0 +1,40 @@ +-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 * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} diff --git a/astrid/build.properties b/astrid/ant.properties similarity index 100% rename from astrid/build.properties rename to astrid/ant.properties diff --git a/astrid/build.xml b/astrid/build.xml index d7a86111a..759d1deeb 100644 --- a/astrid/build.xml +++ b/astrid/build.xml @@ -2,40 +2,48 @@ - + It contains the path to the SDK. It should *NOT* be checked into + Version Control Systems. --> + - - + + + - + This contains project specific properties such as project target, and library + dependencies. Lower level build properties are stored in ant.properties + (or in .classpath for Eclipse projects). - - + This file is an integral part of the build system for your + application and should be checked into Version Control Systems. --> + + + + @@ -43,33 +51,14 @@ - - - - - - + - + + - @@ -108,22 +97,6 @@ - - - - - - - - - - - Final Release Package: ${out.final.package} - - @@ -150,7 +123,6 @@ replace="APP_ID = "${apikey.facebook.id}";" /> - @@ -193,4 +165,61 @@ + + + + + + + + + + + + + + Signing final apk... + + + + + + + Final Release Package: ${out.final.package} + + + + + diff --git a/astrid/proguard.cfg b/astrid/proguard.cfg index fd265d272..5f75b0683 100644 --- a/astrid/proguard.cfg +++ b/astrid/proguard.cfg @@ -23,19 +23,24 @@ -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService -keepclasseswithmembernames class * { native ; } --keepclasseswithmembernames class * { +-keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet); } --keepclasseswithmembernames class * { +-keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet, int); } +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); @@ -44,6 +49,3 @@ -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } - - - diff --git a/facebook/facebook/build.xml b/facebook/facebook/build.xml new file mode 100644 index 000000000..f5238e48f --- /dev/null +++ b/facebook/facebook/build.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/facebook/facebook/proguard.cfg b/facebook/facebook/proguard.cfg new file mode 100644 index 000000000..b1cdf17b5 --- /dev/null +++ b/facebook/facebook/proguard.cfg @@ -0,0 +1,40 @@ +-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 * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} diff --git a/greendroid/GreenDroid/build.xml b/greendroid/GreenDroid/build.xml new file mode 100644 index 000000000..53ca4a287 --- /dev/null +++ b/greendroid/GreenDroid/build.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/greendroid/GreenDroid/proguard.cfg b/greendroid/GreenDroid/proguard.cfg new file mode 100644 index 000000000..b1cdf17b5 --- /dev/null +++ b/greendroid/GreenDroid/proguard.cfg @@ -0,0 +1,40 @@ +-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 * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +}