Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 2 Channel options bugs #191

Merged
merged 6 commits into from Nov 2, 2021
Merged

Conversation

ben-xD
Copy link
Contributor

@ben-xD ben-xD commented Oct 29, 2021

There are 2 bug fixes in here:

1 in Ably-java: It was wrongly assumed that Ably-java does not support channel modes. It does, and here I add support for it.

1 in Ably-cocoa: The wrong Ably-cocoa method was used, and in this case, causes a runtime crash whenever a user sets options on a realtime channel. This has happened because code was copy pasted on not ran or validated.

There is one enhancement regarding the cipher passed to channel options. You can see this in createChannelOptions(@Nullable Object cipher). Previously, in Ably-java, we assume the cipher to be a String, causing a crash if it wasn't. Now, I add support for byte array, as well as logging information out if the cipher is not a string or a byte array.

@github-actions github-actions bot temporarily deployed to staging/pull/191/dartdoc October 29, 2021 14:48 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/191/dartdoc October 29, 2021 15:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/191/dartdoc October 29, 2021 15:20 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/191/dartdoc October 29, 2021 15:23 Inactive
@ben-xD ben-xD changed the title Fix runtime crash and wrong method invocation when setting realtime channel options Fix 2 Channel options bugs Nov 1, 2021
Copy link
Contributor

@ikbalkaya ikbalkaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a slight readability improvement request

@github-actions github-actions bot temporarily deployed to staging/pull/191/dartdoc November 1, 2021 10:45 Inactive
Base automatically changed from bug/channel-options-2 to main November 2, 2021 06:55
@ben-xD ben-xD merged commit d3f7ebf into main Nov 2, 2021
@ben-xD ben-xD deleted the bug/fix-runtime-crash-for-channel-options branch November 2, 2021 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants