2016-01-16 15:33:35 +00:00
|
|
|
-dontobfuscate
|
|
|
|
|
2020-03-03 02:45:16 +00:00
|
|
|
# Extensions may require methods unused in the core app
|
2017-07-08 16:07:43 +00:00
|
|
|
-dontwarn eu.kanade.tachiyomi.**
|
2020-03-03 02:45:16 +00:00
|
|
|
-keep class eu.kanade.tachiyomi.** { public protected private *; }
|
|
|
|
|
|
|
|
-keep class org.jsoup.** { *; }
|
|
|
|
-keep class kotlin.** { *; }
|
|
|
|
-keep class okhttp3.** { *; }
|
|
|
|
-keep class com.google.gson.** { *; }
|
|
|
|
-keep class com.github.salomonbrys.kotson.** { *; }
|
|
|
|
-keep class com.squareup.duktape.** { *; }
|
2016-10-17 06:43:19 +00:00
|
|
|
|
2020-01-05 16:29:27 +00:00
|
|
|
# Design library
|
|
|
|
-dontwarn com.google.android.material.**
|
|
|
|
-keep class com.google.android.material.** { *; }
|
|
|
|
-keep interface com.google.android.material.** { *; }
|
|
|
|
-keep public class com.google.android.material.R$* { *; }
|
|
|
|
|
2016-10-30 16:39:16 +00:00
|
|
|
-keep class com.hippo.image.** { *; }
|
|
|
|
-keep interface com.hippo.image.** { *; }
|
2020-04-23 02:27:30 +00:00
|
|
|
-keepclassmembers class * extends nucleus.presenter.Presenter {
|
|
|
|
<init>();
|
|
|
|
}
|
2016-10-30 16:39:16 +00:00
|
|
|
|
2016-01-16 15:33:35 +00:00
|
|
|
# RxJava 1.1.0
|
|
|
|
-dontwarn sun.misc.**
|
2015-10-02 11:20:15 +00:00
|
|
|
|
2016-01-16 15:33:35 +00:00
|
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
|
|
long producerIndex;
|
|
|
|
long consumerIndex;
|
2015-10-02 11:20:15 +00:00
|
|
|
}
|
2016-01-16 15:33:35 +00:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
2015-10-02 11:20:15 +00:00
|
|
|
}
|
2016-01-16 15:33:35 +00:00
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
2015-10-02 11:20:15 +00:00
|
|
|
}
|
|
|
|
|
2016-12-03 15:54:29 +00:00
|
|
|
# ReactiveNetwork
|
|
|
|
-dontwarn com.github.pwittchen.reactivenetwork.**
|
|
|
|
|
|
|
|
## GSON ##
|
2016-01-16 15:33:35 +00: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 15:54:29 +00: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
|
2020-10-13 21:34:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
## kotlinx.serialization ##
|
|
|
|
|
|
|
|
-keepattributes *Annotation*, InnerClasses
|
|
|
|
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
|
|
|
|
|
|
|
|
-keepclassmembers class kotlinx.serialization.json.** {
|
|
|
|
*** Companion;
|
|
|
|
}
|
|
|
|
-keepclasseswithmembers class kotlinx.serialization.json.** {
|
|
|
|
kotlinx.serialization.KSerializer serializer(...);
|
|
|
|
}
|
|
|
|
|
|
|
|
-keep,includedescriptorclasses class eu.kanade.tachiyomi.**$$serializer { *; }
|
|
|
|
-keepclassmembers class eu.kanade.tachiyomi.** {
|
|
|
|
*** Companion;
|
|
|
|
}
|
|
|
|
-keepclasseswithmembers class eu.kanade.tachiyomi.** {
|
|
|
|
kotlinx.serialization.KSerializer serializer(...);
|
|
|
|
}
|