|
15 | 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { |
16 | 16 | # public *; |
17 | 17 | #} |
| 18 | + |
| 19 | +-dontwarn java.beans.** # missing nio file |
| 20 | +-dontwarn rx.internal.** # missing sun.Unsfe |
| 21 | +## Square Picasso specific rules ## |
| 22 | +## https://square.github.io/picasso/ ## |
| 23 | + |
| 24 | +-dontwarn com.squareup.okhttp.** |
| 25 | +# Okio |
| 26 | +-keep class sun.misc.Unsafe { *; } |
| 27 | +-dontwarn java.nio.file.* |
| 28 | +-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement |
| 29 | +-dontwarn okio.** |
| 30 | +-dontwarn java.lang.invoke.* # retrolambda |
| 31 | + |
| 32 | +# Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package) |
| 33 | + |
| 34 | +-keepnames class com.fasterxml.jackson.** { *; } |
| 35 | + |
| 36 | +-keep class com.fasterxml.jackson.databind.ObjectMapper { |
| 37 | + public <methods>; |
| 38 | + public <fields>; |
| 39 | + protected <methods>; |
| 40 | +} |
| 41 | +-keep class com.fasterxml.jackson.databind.ObjectWriter { |
| 42 | + public ** writeValueAsString(**); |
| 43 | +} |
| 44 | +-dontwarn org.w3c.** # Jackson 2.8 DOMSerializer |
| 45 | + |
| 46 | +# Proguard Configuration for Realm (http://realm.io) |
| 47 | +# For detailed discussion see: https://groups.google.com/forum/#!topic/realm-java/umqKCc50JGU |
| 48 | +# Additionally you need to keep your Realm Model classes as well |
| 49 | +# For example: |
| 50 | +# -keep class com.yourcompany.realm.** { *; } |
| 51 | + |
| 52 | +-keep class io.realm.annotations.RealmModule |
| 53 | +-keep @io.realm.annotations.RealmModule class * |
| 54 | +-keep class io.realm.internal.Keep |
| 55 | +-keep @io.realm.internal.Keep class * |
| 56 | +-dontwarn javax.** |
| 57 | +-dontwarn io.realm.** |
| 58 | + |
| 59 | +# Dagger ProGuard rules. |
| 60 | +# https://github.com/square/dagger |
| 61 | + |
| 62 | +-dontwarn dagger.internal.codegen.** |
| 63 | +-keepclassmembers,allowobfuscation class * { |
| 64 | + @javax.inject.* *; |
| 65 | + @dagger.* *; |
| 66 | + <init>(); |
| 67 | +} |
| 68 | + |
| 69 | +-keep class dagger.* { *; } |
| 70 | +-keep class javax.inject.* { *; } |
| 71 | +-keep class * extends dagger.internal.Binding |
| 72 | +-keep class * extends dagger.internal.ModuleAdapter |
| 73 | +-keep class * extends dagger.internal.StaticInjection |
| 74 | + |
0 commit comments