Fix Proguard rules for kotlinx.serialization (e.g. for MangaPlus)

This commit is contained in:
arkon 2021-05-22 15:41:08 -04:00
parent a62628423f
commit f96b85fcb2

View File

@ -53,7 +53,7 @@
} }
##---------------End: proguard configuration for Gson ---------- ##---------------End: proguard configuration for Gson ----------
##---------------Begin: proguard configuration for Kotlin Serializer ---------- ##---------------Begin: proguard configuration for kotlinx.serialization ----------
-keepattributes *Annotation*, InnerClasses -keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations -dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
@ -72,4 +72,9 @@
-keepclasseswithmembers class eu.kanade.tachiyomi.** { -keepclasseswithmembers class eu.kanade.tachiyomi.** {
kotlinx.serialization.KSerializer serializer(...); kotlinx.serialization.KSerializer serializer(...);
} }
##---------------End: proguard configuration for Kotlin Serializer ----------
-keep class kotlinx.serialization.**
-keepclassmembers class kotlinx.serialization.** {
<methods>;
}
##---------------End: proguard configuration for kotlinx.serialization ----------