From f96b85fcb238af2ce49ad591c367f6860ab004fc Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 22 May 2021 15:41:08 -0400 Subject: [PATCH] Fix Proguard rules for kotlinx.serialization (e.g. for MangaPlus) --- app/proguard-rules.pro | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 7f26725b1..fe927c377 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -53,7 +53,7 @@ } ##---------------End: proguard configuration for Gson ---------- -##---------------Begin: proguard configuration for Kotlin Serializer ---------- +##---------------Begin: proguard configuration for kotlinx.serialization ---------- -keepattributes *Annotation*, InnerClasses -dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations @@ -72,4 +72,9 @@ -keepclasseswithmembers class eu.kanade.tachiyomi.** { kotlinx.serialization.KSerializer serializer(...); } -##---------------End: proguard configuration for Kotlin Serializer ---------- \ No newline at end of file + +-keep class kotlinx.serialization.** +-keepclassmembers class kotlinx.serialization.** { + ; +} +##---------------End: proguard configuration for kotlinx.serialization ----------