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 14# If you want to enable optimization, you should include the 15# following: 16# -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* 17# -optimizationpasses 5 18# -allowaccessmodification 19# 20# Note that you cannot just include these flags in your own 21# configuration file; if you are including this file, optimization 22# will be turned off. You'll need to either edit this file, or 23# duplicate the contents of this file and remove the include of this 24# file from your project's proguard.config path property. 25 26-keepattributes *Annotation* 27-keep public class * extends android.app.Activity 28-keep public class * extends android.app.Application 29-keep public class * extends android.app.Service 30-keep public class * extends android.content.BroadcastReceiver 31-keep public class * extends android.content.ContentProvider 32-keep public class * extends android.app.backup.BackupAgent 33-keep public class * extends android.preference.Preference 34-keep public class * extends android.support.v4.app.Fragment 35-keep public class * extends android.app.Fragment 36-keep public class com.android.vending.licensing.ILicensingService 37 38# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native 39-keepclasseswithmembernames class * { 40 native <methods>; 41} 42 43-keep public class * extends android.view.View { 44 public <init>(android.content.Context); 45 public <init>(android.content.Context, android.util.AttributeSet); 46 public <init>(android.content.Context, android.util.AttributeSet, int); 47 public void set*(...); 48} 49 50-keepclasseswithmembers class * { 51 public <init>(android.content.Context, android.util.AttributeSet); 52} 53 54-keepclasseswithmembers class * { 55 public <init>(android.content.Context, android.util.AttributeSet, int); 56} 57 58-keepclassmembers class * extends android.app.Activity { 59 public void *(android.view.View); 60} 61 62# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations 63-keepclassmembers enum * { 64 public static **[] values(); 65 public static ** valueOf(java.lang.String); 66} 67 68-keep class * implements android.os.Parcelable { 69 public static final android.os.Parcelable$Creator *; 70} 71 72-keepclassmembers class **.R$* { 73 public static <fields>; 74} 75 76# The support library contains references to newer platform versions. 77# Don't warn about those in case this app is linking against an older 78# platform version. We know about them, and they are safe. 79-dontwarn android.support.** 80