Skip to content

Commit 5436151

Browse files
authored
Update consumer-proguard-rules.pro for GSON (#230)
**Requirements** - [x] I have added test coverage for new or changed functionality - [x] I have followed the repository's [pull request submission guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests) - [x] I have validated my changes against all supported platform versions **Related issues** refs #219 **Describe the solution you've provided** Update R8 config according to GSON docs https://github.com/google/gson/blob/main/Troubleshooting.md#-illegalstateexception-typetoken-must-be-created-with-a-type-argument--runtimeexception-missing-type-parameter **Describe alternatives you've considered** n/a **Additional context** n/a
2 parents f249365 + cfa75d5 commit 5436151

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

launchdarkly-android-client-sdk/consumer-proguard-rules.pro

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
-keep class * implements com.google.gson.TypeAdapterFactory
3333
-keep class * implements com.google.gson.JsonSerializer
3434
-keep class * implements com.google.gson.JsonDeserializer
35+
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
36+
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
3537

3638
-dontwarn org.conscrypt.ConscryptHostnameVerifier
3739

0 commit comments

Comments
 (0)