Skip to content

Commit

Permalink
Merge pull request #1930 from christofferqa/keep_typetoken
Browse files Browse the repository at this point in the history
Retain generic signature of TypeToken with R8 version 3.0 and higher
  • Loading branch information
eamonnmcmanus authored Aug 5, 2021
2 parents df94ccd + d3a75cb commit 789818d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/android-proguard-example/proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 ----------

0 comments on commit 789818d

Please sign in to comment.