2016-01-16 23:33:35 +08:00
|
|
|
-dontobfuscate
|
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
# Keep extension's common dependencies
|
|
|
|
-keep,allowoptimization class eu.kanade.tachiyomi.** { public protected *; }
|
|
|
|
-keep,allowoptimization class kotlin.** { public protected *; }
|
|
|
|
-keep,allowoptimization class okhttp3.** { public protected *; }
|
|
|
|
-keep,allowoptimization class rx.** { public protected *; }
|
|
|
|
-keep,allowoptimization class org.jsoup.** { public protected *; }
|
|
|
|
-keep,allowoptimization class com.google.gson.** { public protected *; }
|
|
|
|
-keep,allowoptimization class com.github.salomonbrys.kotson.** { public protected *; }
|
|
|
|
-keep,allowoptimization class com.squareup.duktape.** { public protected *; }
|
|
|
|
|
|
|
|
##---------------Begin: proguard configuration for RxJava 1.x ----------
|
2016-01-16 23:33:35 +08:00
|
|
|
-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
|
|
|
}
|
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
-dontnote rx.internal.util.PlatformDependent
|
|
|
|
##---------------End: proguard configuration for RxJava 1.x ----------
|
2016-01-16 23:33:35 +08:00
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
##---------------Begin: proguard configuration for 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
|
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
# For using GSON @Expose annotation
|
|
|
|
-keepattributes *Annotation*
|
|
|
|
|
2016-01-16 23:33:35 +08:00
|
|
|
# Gson specific classes
|
2021-05-23 02:47:40 +08:00
|
|
|
-dontwarn sun.misc.**
|
2016-01-16 23:33:35 +08:00
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
|
2016-12-03 23:54:29 +08:00
|
|
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
2021-05-23 02:47:40 +08:00
|
|
|
-keep class * extends com.google.gson.TypeAdapter
|
2016-12-03 23:54:29 +08:00
|
|
|
-keep class * implements com.google.gson.TypeAdapterFactory
|
|
|
|
-keep class * implements com.google.gson.JsonSerializer
|
|
|
|
-keep class * implements com.google.gson.JsonDeserializer
|
2020-10-14 05:34:39 +08:00
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
# Prevent R8 from leaving Data object members always null
|
|
|
|
-keepclassmembers,allowobfuscation class * {
|
|
|
|
@com.google.gson.annotations.SerializedName <fields>;
|
|
|
|
}
|
|
|
|
##---------------End: proguard configuration for Gson ----------
|
2020-10-14 05:34:39 +08:00
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
##---------------Begin: proguard configuration for Kotlin Serializer ----------
|
2020-10-14 05:34:39 +08:00
|
|
|
-keepattributes *Annotation*, InnerClasses
|
|
|
|
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
|
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
|
2020-10-14 05:34:39 +08:00
|
|
|
-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(...);
|
|
|
|
}
|
2021-05-23 02:47:40 +08:00
|
|
|
##---------------End: proguard configuration for Kotlin Serializer ----------
|