mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-18 09:30:07 +01:00
Add proguard rules for using Gson TypeToken
This commit is contained in:
parent
72733b7f96
commit
5969af52b2
6
app/proguard-rules.pro
vendored
6
app/proguard-rules.pro
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user