From 3c73891c44a3f0c8ca6d7642c865203ebc440be1 Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Wed, 10 Jan 2024 18:51:02 +1100 Subject: [PATCH] chore(R8): Keep the backup models. Gson will fail with gson.internal.linkedtreemap cannot be cast to class. Mainly because it's removed or obfuscated by R8. Signed-off-by: KaiserBh --- app/proguard-rules.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index a4eb2c039..31e2c39fd 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -80,4 +80,7 @@ -keep class com.google.api.services.** { *; } # Google OAuth --keep class com.google.api.client.** { *; } \ No newline at end of file +-keep class com.google.api.client.** { *; } + +# Keep backup models, otherwise gson fails on release builds. +-keep class eu.kanade.tachiyomi.data.backup.models.** { *; } \ No newline at end of file