blob: fe73baeb588c0a5068df854948977a7d15ea3df0 [file] [log] [blame]
Tor Norbye0bf1b2c2012-01-17 09:23:34 -08001# This is a configuration file for ProGuard.
2# http://proguard.sourceforge.net/index.html#manual/usage.html
3
Xavier Ducroheta89eaf92010-10-06 15:06:53 -07004-dontusemixedcaseclassnames
5-dontskipnonpubliclibraryclasses
Xavier Ducroheta89eaf92010-10-06 15:06:53 -07006-verbose
Tor Norbye5d30fda2012-01-11 17:54:20 -08007
Tor Norbye0bf1b2c2012-01-17 09:23:34 -08008# Optimization is turned off by default. Dex does not like code run
9# through the ProGuard optimize and preverify steps (and performs some
10# of these optimizations on its own).
Tor Norbye5d30fda2012-01-11 17:54:20 -080011-dontoptimize
12-dontpreverify
Tor Norbyee86ac702012-05-07 16:10:01 -070013# Note that if you want to enable optimization, you cannot just
14# include optimization flags in your own project configuration file;
15# instead you will need to point to the
16# "proguard-android-optimize.txt" file instead of this one from your
17# project.properties file.
Tor Norbye0bf1b2c2012-01-17 09:23:34 -080018
19-keepattributes *Annotation*
Xavier Ducrohet249dc012012-05-25 16:27:34 -070020-keep public class com.google.vending.licensing.ILicensingService
Xavier Ducroheta89eaf92010-10-06 15:06:53 -070021-keep public class com.android.vending.licensing.ILicensingService
22
Tor Norbye5d30fda2012-01-11 17:54:20 -080023# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
Xavier Ducroheta89eaf92010-10-06 15:06:53 -070024-keepclasseswithmembernames class * {
25 native <methods>;
26}
27
Xavier Ducrohet249dc012012-05-25 16:27:34 -070028# keep setters in Views so that animations can still work.
29# see http://proguard.sourceforge.net/manual/examples.html#beans
30-keepclassmembers public class * extends android.view.View {
31 void set*(***);
32 *** get*();
Tor Norbye5d30fda2012-01-11 17:54:20 -080033}
34
Xavier Ducrohet249dc012012-05-25 16:27:34 -070035# We want to keep methods in Activity that could be used in the XML attribute onClick
Tor Norbyeaef49b22011-06-10 13:58:35 -070036-keepclassmembers class * extends android.app.Activity {
37 public void *(android.view.View);
38}
39
Tor Norbye5d30fda2012-01-11 17:54:20 -080040# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
Xavier Ducroheta89eaf92010-10-06 15:06:53 -070041-keepclassmembers enum * {
42 public static **[] values();
43 public static ** valueOf(java.lang.String);
44}
45
46-keep class * implements android.os.Parcelable {
47 public static final android.os.Parcelable$Creator *;
48}
Tor Norbye5d30fda2012-01-11 17:54:20 -080049
50-keepclassmembers class **.R$* {
51 public static <fields>;
52}
53
54# The support library contains references to newer platform versions.
55# Don't warn about those in case this app is linking against an older
56# platform version. We know about them, and they are safe.
57-dontwarn android.support.**