2016-01-16 23:33:35 +08:00
|
|
|
-dontobfuscate
|
|
|
|
|
2017-07-09 00:07:43 +08:00
|
|
|
-dontwarn eu.kanade.tachiyomi.**
|
2016-10-17 14:43:19 +08:00
|
|
|
-keep class eu.kanade.tachiyomi.**
|
2017-04-21 06:19:10 +08:00
|
|
|
-keep class eu.kanade.tachiyomi.source.model.** { *; }
|
2016-10-17 14:43:19 +08:00
|
|
|
|
2016-10-31 00:39:16 +08:00
|
|
|
-keep class com.hippo.image.** { *; }
|
|
|
|
-keep interface com.hippo.image.** { *; }
|
2017-10-01 00:49:43 +08:00
|
|
|
-dontwarn nucleus.view.NucleusActionBarActivity
|
2016-10-31 00:39:16 +08:00
|
|
|
|
2017-08-06 22:19:25 +08:00
|
|
|
# Extensions may require methods unused in the core app
|
|
|
|
-keep class org.jsoup.** { *; }
|
|
|
|
-keep class kotlin.** { *; }
|
2017-09-08 23:43:46 +08:00
|
|
|
-keep class okhttp3.** { *; }
|
|
|
|
-keep class com.google.gson.** { *; }
|
|
|
|
-keep class com.github.salomonbrys.kotson.** { *; }
|
2017-08-06 22:19:25 +08:00
|
|
|
|
2015-10-02 19:20:15 +08:00
|
|
|
# OkHttp
|
2016-02-03 19:56:12 +08:00
|
|
|
-dontwarn okhttp3.**
|
2015-10-02 19:20:15 +08:00
|
|
|
-dontwarn okio.**
|
2017-07-09 00:07:43 +08:00
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
-dontwarn retrofit2.Platform$Java8
|
2016-01-16 23:33:35 +08:00
|
|
|
|
2015-10-02 19:20:15 +08:00
|
|
|
# Glide specific rules #
|
|
|
|
# https://github.com/bumptech/glide
|
|
|
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
2017-10-15 00:16:11 +08:00
|
|
|
-keep public class * extends com.bumptech.glide.AppGlideModule
|
2015-10-02 19:20:15 +08:00
|
|
|
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
|
|
|
**[] $VALUES;
|
|
|
|
public *;
|
|
|
|
}
|
|
|
|
|
2016-01-16 23:33:35 +08:00
|
|
|
# RxJava 1.1.0
|
|
|
|
-dontwarn sun.misc.**
|
2015-10-02 19:20:15 +08:00
|
|
|
|
2016-01-16 23:33:35 +08:00
|
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
|
|
long producerIndex;
|
|
|
|
long consumerIndex;
|
2015-10-02 19:20:15 +08:00
|
|
|
}
|
2016-01-16 23:33:35 +08:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
2015-10-02 19:20:15 +08:00
|
|
|
}
|
2016-01-16 23:33:35 +08:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
2015-10-02 19:20:15 +08:00
|
|
|
}
|
|
|
|
|
2017-07-09 00:07:43 +08:00
|
|
|
### Support v7, Design
|
|
|
|
# http://stackoverflow.com/questions/29679177/cardview-shadow-not-appearing-in-lollipop-after-obfuscate-with-proguard/29698051
|
|
|
|
-keep class android.support.v7.widget.RoundRectDrawable { *; }
|
2016-02-21 22:59:07 +08:00
|
|
|
|
2015-10-02 19:20:15 +08:00
|
|
|
-keep public class android.support.v7.widget.** { *; }
|
|
|
|
-keep public class android.support.v7.internal.widget.** { *; }
|
|
|
|
-keep public class android.support.v7.internal.view.menu.** { *; }
|
2017-07-09 00:07:43 +08:00
|
|
|
-keep public class android.support.v7.graphics.drawable.** { *; }
|
2015-10-02 19:20:15 +08:00
|
|
|
|
|
|
|
-keep public class * extends android.support.v4.view.ActionProvider {
|
|
|
|
public <init>(android.content.Context);
|
2015-10-19 01:18:50 +08:00
|
|
|
}
|
|
|
|
|
2017-07-09 00:07:43 +08:00
|
|
|
-dontwarn android.support.**
|
|
|
|
-dontwarn android.support.design.**
|
|
|
|
-keep class android.support.design.** { *; }
|
|
|
|
-keep interface android.support.design.** { *; }
|
|
|
|
-keep public class android.support.design.R$* { *; }
|
|
|
|
|
|
|
|
|
2016-12-03 23:54:29 +08:00
|
|
|
# ReactiveNetwork
|
|
|
|
-dontwarn com.github.pwittchen.reactivenetwork.**
|
|
|
|
|
|
|
|
## GSON ##
|
2016-01-16 23:33:35 +08: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
|
|
|
|
|
|
|
|
# Gson specific classes
|
|
|
|
-keep class sun.misc.Unsafe { *; }
|
|
|
|
|
2016-12-03 23:54:29 +08: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 05:40:27 +08:00
|
|
|
|
|
|
|
# SnakeYaml
|
|
|
|
-keep class org.yaml.snakeyaml.** { public protected private *; }
|
|
|
|
-dontwarn org.yaml.snakeyaml.**
|
|
|
|
|
|
|
|
# Duktape
|
|
|
|
-keep class com.squareup.duktape.** { *; }
|