Retain generic signature of TypeToken with R8 version 3.0 and higher

This commit is contained in:
Christoffer Quist Adamsen 2021-08-05 09:18:32 +02:00
parent 25f47f87a5
commit d3a75cb569
1 changed files with 4 additions and 0 deletions

View File

@ -25,4 +25,8 @@
@com.google.gson.annotations.SerializedName <fields>;
}
# 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
##---------------End: proguard configuration for Gson ----------