Skip to content

Commit ae380e9

Browse files
R8: Keep name of Gson class (#493)
This ensures the Java SDK is able to look up Gson, and select the correct config parser on Android platforms. Co-authored-by: Jamie Sanson <[email protected]>
1 parent 70d50b9 commit ae380e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

proguard-rules.txt

+3
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,8 @@
8585
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
8686
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
8787
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
88+
89+
# Retain the name used by the Java SDK to determine whether Gson is usable as a config parser.
90+
-keepnames class com.google.gson.Gson
8891
##---------------End: proguard configuration for Gson ----------
8992

0 commit comments

Comments
 (0)