opentok/opentok-android-sdk-samples

Issue with obfuscation

DragisaJevtic opened this issue · 1 comments

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):

  • sessionId, if applicable:
  • Android SDK version: 34
  • OS and version: Android any

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.

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