Add proguard rules for using Gson TypeToken

This commit is contained in:
Ensar Sarajčić 2023-08-15 15:07:40 +02:00
parent 72733b7f96
commit 5969af52b2
1 changed files with 6 additions and 0 deletions

View File

@ -25,3 +25,9 @@
public static <1> INSTANCE;
kotlinx.serialization.KSerializer serializer(...);
}
# Needed for using TypeToken with Gson
# Taken from: https://r8.googlesource.com/r8/+/refs/heads/main/compatibility-faq.md#troubleshooting-gson-gson
-keepattributes Signature
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken