2016-01-16 18:33:35 +03:00
|
|
|
-dontobfuscate
|
|
|
|
|
2016-10-17 09:43:19 +03:00
|
|
|
-keep class eu.kanade.tachiyomi.**
|
|
|
|
|
2016-10-30 19:39:16 +03:00
|
|
|
-keep class com.hippo.image.** { *; }
|
|
|
|
-keep interface com.hippo.image.** { *; }
|
|
|
|
|
2015-10-02 14:20:15 +03:00
|
|
|
# OkHttp
|
|
|
|
-keepattributes Signature
|
|
|
|
-keepattributes *Annotation*
|
2016-02-03 14:56:12 +03:00
|
|
|
-keep class okhttp3.** { *; }
|
|
|
|
-keep interface okhttp3.** { *; }
|
|
|
|
-dontwarn okhttp3.**
|
2015-10-02 14:20:15 +03:00
|
|
|
-dontwarn okio.**
|
|
|
|
|
2016-01-16 18:33:35 +03:00
|
|
|
# Okio
|
|
|
|
-keep class sun.misc.Unsafe { *; }
|
|
|
|
-dontwarn java.nio.file.*
|
|
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
|
|
-dontwarn okio.**
|
|
|
|
|
2015-10-02 14:20:15 +03:00
|
|
|
# Glide specific rules #
|
|
|
|
# https://github.com/bumptech/glide
|
|
|
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
|
|
|
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
|
|
|
**[] $VALUES;
|
|
|
|
public *;
|
|
|
|
}
|
|
|
|
|
2016-01-16 18:33:35 +03:00
|
|
|
# RxJava 1.1.0
|
|
|
|
-dontwarn sun.misc.**
|
2015-10-02 14:20:15 +03:00
|
|
|
|
2016-01-16 18:33:35 +03:00
|
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
|
|
long producerIndex;
|
|
|
|
long consumerIndex;
|
2015-10-02 14:20:15 +03:00
|
|
|
}
|
2016-01-16 18:33:35 +03:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
2015-10-02 14:20:15 +03:00
|
|
|
}
|
2016-01-16 18:33:35 +03:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
2015-10-02 14:20:15 +03:00
|
|
|
}
|
|
|
|
|
2016-04-06 22:31:35 +03:00
|
|
|
# Retrofit 2.X
|
|
|
|
## https://square.github.io/retrofit/ ##
|
2016-02-21 17:59:07 +03:00
|
|
|
|
2016-04-06 22:31:35 +03:00
|
|
|
-dontwarn retrofit2.**
|
|
|
|
-keep class retrofit2.** { *; }
|
|
|
|
-keepattributes Signature
|
|
|
|
-keepattributes Exceptions
|
2016-02-21 17:59:07 +03:00
|
|
|
|
|
|
|
-keepclasseswithmembers class * {
|
2016-04-06 22:31:35 +03:00
|
|
|
@retrofit2.http.* <methods>;
|
2016-02-21 17:59:07 +03:00
|
|
|
}
|
|
|
|
|
2015-10-02 14:20:15 +03:00
|
|
|
# AppCombat
|
|
|
|
-keep public class android.support.v7.widget.** { *; }
|
|
|
|
-keep public class android.support.v7.internal.widget.** { *; }
|
|
|
|
-keep public class android.support.v7.internal.view.menu.** { *; }
|
|
|
|
|
|
|
|
-keep public class * extends android.support.v4.view.ActionProvider {
|
|
|
|
public <init>(android.content.Context);
|
2015-10-18 20:18:50 +03:00
|
|
|
}
|
|
|
|
|
2016-12-03 18:54:29 +03:00
|
|
|
# ReactiveNetwork
|
|
|
|
-dontwarn com.github.pwittchen.reactivenetwork.**
|
|
|
|
|
|
|
|
## GSON ##
|
2016-01-16 18:33:35 +03:00
|
|
|
|
|
|
|
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
|
|
|
# removes such information by default, so configure it to keep all of it.
|
|
|
|
-keepattributes Signature
|
|
|
|
|
|
|
|
# For using GSON @Expose annotation
|
|
|
|
-keepattributes *Annotation*
|
|
|
|
|
|
|
|
# Gson specific classes
|
|
|
|
-keep class sun.misc.Unsafe { *; }
|
2016-12-03 18:54:29 +03:00
|
|
|
#-keep class com.google.gson.stream.** { *; }
|
2016-01-16 18:33:35 +03:00
|
|
|
|
2016-12-03 18:54:29 +03:00
|
|
|
# Application classes that will be serialized/deserialized over Gson
|
|
|
|
-keep class com.google.gson.examples.android.model.** { *; }
|
2016-01-16 18:33:35 +03:00
|
|
|
|
2016-12-03 18:54:29 +03:00
|
|
|
# Prevent proguard from stripping interface information from TypeAdapterFactory,
|
|
|
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
|
|
|
-keep class * implements com.google.gson.TypeAdapterFactory
|
|
|
|
-keep class * implements com.google.gson.JsonSerializer
|
|
|
|
-keep class * implements com.google.gson.JsonDeserializer
|
2016-06-06 00:40:27 +03:00
|
|
|
|
|
|
|
# SnakeYaml
|
|
|
|
-keep class org.yaml.snakeyaml.** { public protected private *; }
|
|
|
|
-keep class org.yaml.snakeyaml.** { public protected private *; }
|
|
|
|
-dontwarn org.yaml.snakeyaml.**
|
|
|
|
|
|
|
|
# Duktape
|
|
|
|
-keep class com.squareup.duktape.** { *; }
|