diff --git a/proguard-rules.txt b/proguard-rules.txt index 6fbd7e3d..f0197f30 100644 --- a/proguard-rules.txt +++ b/proguard-rules.txt @@ -85,5 +85,8 @@ # Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher. -keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken -keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken + +# Retain the name used by the Java SDK to determine whether Gson is usable as a config parser. +-keepnames class com.google.gson.Gson ##---------------End: proguard configuration for Gson ----------