opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
210 stars 170 forks source link

Issue with obfuscation #489

Closed DragisaJevtic closed 8 months ago

DragisaJevtic commented 8 months ago

Describe the bug When we are using minification and obfuscation to prepare release builds we have issues with data we receive from session signal listener. I have added proguard rules as mentioned in documentation on this place https://tokbox.com/developer/sdks/android/#proguard-rules-needed-by-the-vonage-android-sdk

To Reproduce Receiving chat signal

Expected behavior In data receiving JSON with proper keys as sent from server side

Screenshots { "a": "T", "b": "role", "c": false, "d": "b9390cf3-47cc-4870-8361-6c305f408364", "e": false, "f": "role", "g": "role", "h": "", "i": "A", "j": "2023-11-02T17:39:56.20", "k": "(data)", "l": "role" }

Device (please compete the following information):

Additional context If we turn off minification everything work fine. Most likely there is some additional rules which have to be set for this to work properly.

DragisaJevtic commented 8 months ago

And clasic case of developer looking in wrong place. All work as expected. Sorry for false alarm