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