Skip to content

Commit

Permalink
Update consumer-proguard-rules.pro for GSON (#230)
Browse files Browse the repository at this point in the history
**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
  • Loading branch information
tanderson-ld authored Nov 27, 2023
2 parents f249365 + cfa75d5 commit 5436151
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launchdarkly-android-client-sdk/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken

-dontwarn org.conscrypt.ConscryptHostnameVerifier

Expand Down

0 comments on commit 5436151

Please sign in to comment.