1 # This is a configuration file for ProGuard based on "proguard-android.txt". 2 # http://proguard.sourceforge.net/index.html#manual/usage.html 3 4 -dontusemixedcaseclassnames 5 -dontskipnonpubliclibraryclasses 6 -verbose 7 8 # 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). 11 -dontoptimize 12 -dontpreverify 13 14 -keepattributes *Annotation* 15 -keep public class com.google.vending.licensing.ILicensingService 16 -keep public class com.android.vending.licensing.ILicensingService 17 18 # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native 19 -keepclasseswithmembernames class * { 20 native <methods>; 21 } 22 23 # Keep setters in Views so that animations can still work. 24 # see http://proguard.sourceforge.net/manual/examples.html#beans 25 -keepclassmembers public class * extends android.view.View { 26 void set*(***); 27 *** get*(); 28 } 29 30 # Keep methods in Activity that could be used in the XML attribute onClick. 31 -keepclassmembers class * extends android.app.Activity { 32 public void *(android.view.View); 33 } 34 35 # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations 36 -keepclassmembers enum * { 37 public static **[] values(); 38 public static ** valueOf(java.lang.String); 39 } 40 41 -keep class * implements android.os.Parcelable { 42 public static final android.os.Parcelable$Creator *; 43 } 44 45 -keepclassmembers class **.R$* { 46 public static <fields>; 47 } 48 49 # The support library contains references to newer platform versions. 50 # Don't warn about those in case this app is linking against an older 51 # platform version. We know about them, and they are safe. 52 -dontwarn android.support.** 53 54 # Some small BoundedRational methods like equals() are not used by the 55 # calculator, but crucial for testing. 56 -keepclassmembers class com.android.calculator2.BoundedRational { *; } 57 # Need CR comparison operators for testing. 58 -keepclassmembers class com.hp.creals.CR { *; } 59