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/arithmetic,!code/simplification/cast,!field/*,!class/merging/* 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-keepattributes AnnotationDefault, 27 RuntimeVisibleAnnotations, 28 RuntimeVisibleParameterAnnotations, 29 RuntimeVisibleTypeAnnotations 30-keep public class com.google.vending.licensing.ILicensingService 31-keep public class com.android.vending.licensing.ILicensingService 32 33# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native 34-keepclasseswithmembernames class * { 35 native <methods>; 36} 37 38# keep setters in Views so that animations can still work. 39# see http://proguard.sourceforge.net/manual/examples.html#beans 40-keepclassmembers public class * extends android.view.View { 41 void set*(***); 42 *** get*(); 43} 44 45# We want to keep methods in Activity that could be used in the XML attribute onClick 46-keepclassmembers class * extends android.app.Activity { 47 public void *(android.view.View); 48} 49 50# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations 51-keepclassmembers enum * { 52 public static **[] values(); 53 public static ** valueOf(java.lang.String); 54} 55 56-keepclassmembers class * implements android.os.Parcelable { 57 public static final android.os.Parcelable$Creator CREATOR; 58} 59 60-keepclassmembers class **.R$* { 61 public static <fields>; 62} 63 64# The support library contains references to newer platform versions. 65# Don't warn about those in case this app is linking against an older 66# platform version. We know about them, and they are safe. 67-dontwarn android.support.** 68