Merge pull request #1930 from christofferqa/keep_typetoken

Retain generic signature of TypeToken with R8 version 3.0 and higher
This commit is contained in:
Éamonn McManus 2021-08-05 06:40:02 -07:00 committed by GitHub
commit 789818d180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ----------