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