1# This is a configuration file for ProGuard. 2# http://proguard.sourceforge.net/index.html#manual/usage.html 3 4# Optimizations: If you don't want to optimize, use the 5# proguard-android.txt configuration file instead of this one, which 6# turns off the optimization flags. Adding optimization introduces 7# certain risks, since for example not all optimizations performed by 8# ProGuard works on all versions of Dalvik. The following flags turn 9# off various optimizations known to have issues, but the list may not 10# be complete or up to date. (The "arithmetic" optimization can be 11# used if you are only targeting Android 2.0 or later.) Make sure you 12# test thoroughly if you go this route. 13-optimizations !code/simplification/cast,!field/*,!class/merging/*,!class/unboxing/enum,!code/allocation/variable,!method/marking/private 14-optimizationpasses 5 15-allowaccessmodification 16-dontpreverify 17 18# The remainder of this file is identical to the non-optimized version 19# of the Proguard configuration file (except that the other file has 20# flags to turn off optimization). 21 22-dontusemixedcaseclassnames 23-dontskipnonpubliclibraryclasses 24-verbose 25 26# ADDED 27-dontshrink 28-dontobfuscate 29 30-keepattributes *Annotation* 31-keep public class com.google.vending.licensing.ILicensingService 32-keep public class com.android.vending.licensing.ILicensingService 33 34# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native 35-keepclasseswithmembernames class * { 36 native <methods>; 37} 38 39# keep setters in Views so that animations can still work. 40# see http://proguard.sourceforge.net/manual/examples.html#beans 41-keepclassmembers public class * extends android.view.View { 42 void set*(***); 43 *** get*(); 44} 45 46# We want to keep methods in Activity that could be used in the XML attribute onClick 47-keepclassmembers class * extends android.app.Activity { 48 public void *(android.view.View); 49} 50 51# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations 52-keepclassmembers enum * { 53 public static **[] values(); 54 public static ** valueOf(java.lang.String); 55} 56 57-keep class * implements android.os.Parcelable { 58 public static final android.os.Parcelable$Creator *; 59} 60 61-keepclassmembers class **.R$* { 62 public static <fields>; 63} 64 65# The support library contains references to newer platform versions. 66# Don't warn about those in case this app is linking against an older 67# platform version. We know about them, and they are safe. 68-dontwarn android.support.** 69