2016-01-16 23:33:35 +08:00
|
|
|
-dontobfuscate
|
|
|
|
|
2022-05-27 07:41:43 +08:00
|
|
|
# Keep common dependencies used in extensions
|
2021-05-23 02:47:40 +08:00
|
|
|
-keep,allowoptimization class eu.kanade.tachiyomi.** { public protected *; }
|
2021-05-23 03:52:01 +08:00
|
|
|
-keep,allowoptimization class androidx.preference.** { *; }
|
2021-05-23 02:47:40 +08:00
|
|
|
-keep,allowoptimization class kotlin.** { public protected *; }
|
2021-08-06 01:10:09 +08:00
|
|
|
-keep,allowoptimization class kotlinx.coroutines.** { public protected *; }
|
2022-05-27 07:41:43 +08:00
|
|
|
-keep,allowoptimization class kotlinx.serialization.** { public protected *; }
|
2021-05-23 02:47:40 +08:00
|
|
|
-keep,allowoptimization class okhttp3.** { public protected *; }
|
2021-05-23 03:52:01 +08:00
|
|
|
-keep,allowoptimization class okio.** { public protected *; }
|
2021-05-23 02:47:40 +08:00
|
|
|
-keep,allowoptimization class rx.** { public protected *; }
|
|
|
|
-keep,allowoptimization class org.jsoup.** { public protected *; }
|
|
|
|
-keep,allowoptimization class com.squareup.duktape.** { public protected *; }
|
2022-01-03 00:25:23 +08:00
|
|
|
-keep,allowoptimization class app.cash.quickjs.** { public protected *; }
|
2021-06-01 07:34:45 +08:00
|
|
|
-keep,allowoptimization class uy.kohesive.injekt.** { public protected *; }
|
2021-05-23 02:47:40 +08:00
|
|
|
|
2022-05-27 07:41:43 +08:00
|
|
|
# Avoid optimizations, including access modification
|
|
|
|
-keep class * { <fields>; <methods>; }
|
|
|
|
|
2021-05-23 02:47:40 +08:00
|
|
|
##---------------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 03:41:08 +08:00
|
|
|
##---------------Begin: proguard configuration for kotlinx.serialization ----------
|
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 03:41:08 +08:00
|
|
|
|
|
|
|
-keep class kotlinx.serialization.**
|
|
|
|
-keepclassmembers class kotlinx.serialization.** {
|
|
|
|
<methods>;
|
|
|
|
}
|
|
|
|
##---------------End: proguard configuration for kotlinx.serialization ----------
|