From e56679c85ba2a844682e40484b1e4396be991710 Mon Sep 17 00:00:00 2001 From: freezy Date: Tue, 18 Jan 2011 13:18:30 +0000 Subject: [PATCH] Added: ProGuard config (disabled) git-svn-id: http://android-xbmcremote.googlecode.com/svn/trunk/XBMC Remote@721 677bec2c-7919-11de-bdc7-1f637afd43b1 --- default.properties | 5 +++++ proguard.cfg | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 proguard.cfg diff --git a/default.properties b/default.properties index 247186a6..9fd0c316 100644 --- a/default.properties +++ b/default.properties @@ -9,5 +9,10 @@ # Indicates whether an apk should be generated for each density. split.density=false + # Project target. target=android-9 + +# Enable Proguard +#proguard.config=proguard.cfg + diff --git a/proguard.cfg b/proguard.cfg new file mode 100644 index 00000000..01dc66c8 --- /dev/null +++ b/proguard.cfg @@ -0,0 +1,39 @@ +-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); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} + +-dontwarn +-dontnote +