Skip to content

Commit d3a75cb

Browse files
committed
Retain generic signature of TypeToken with R8 version 3.0 and higher
1 parent 25f47f8 commit d3a75cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/android-proguard-example/proguard.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
@com.google.gson.annotations.SerializedName <fields>;
2626
}
2727

28+
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
29+
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
30+
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
31+
2832
##---------------End: proguard configuration for Gson ----------

0 commit comments

Comments
 (0)