aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-10-06 15:06:53 -0700
committerXavier Ducrohet <xav@android.com>2010-10-08 15:42:33 -0700
commita89eaf966690ac71c75b277a065449294545908f (patch)
treeecdb0701c21bf43cb1d5669f5764a7304dc38c85 /files
parentedeea1c711e0fd692df97f284594b59921e35b1a (diff)
downloadsdk-a89eaf966690ac71c75b277a065449294545908f.zip
sdk-a89eaf966690ac71c75b277a065449294545908f.tar.gz
sdk-a89eaf966690ac71c75b277a065449294545908f.tar.bz2
Proguard default config file.
It is located in $SDK/tools/lib/proguard.cfg and automatically put in Ant project (create and update if project is not already setup for proguard). Change-Id: I9bcb2a5aafec1329b0c001799f4ba34c61569c3a
Diffstat (limited to 'files')
-rw-r--r--files/proguard.cfg34
1 files changed, 34 insertions, 0 deletions
diff --git a/files/proguard.cfg b/files/proguard.cfg
new file mode 100644
index 0000000..8ad7d33
--- /dev/null
+++ b/files/proguard.cfg
@@ -0,0 +1,34 @@
+-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 <methods>;
+}
+
+-keepclasseswithmembernames class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembernames class * {
+ public <init>(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 *;
+}