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

Use Objective-C standard style for LogLevel enum #246

Merged
merged 5 commits into from Nov 29, 2021

Conversation

ben-xD
Copy link
Contributor

@ben-xD ben-xD commented Nov 20, 2021

I rename the _Value enum to CodecType. I also rename the cases in the CodecType enum to be the standard naming convention.

This means when it used in Swift, it will be converted nicely: e.g. CodecTypeAblyMessage in Objective-C will be translated/transpiled to CodecType.AblyMessage in Swift. Currently, AblyMessageCodecType will appear as _Value.ablyEventMessageCodecType in Swift, because the enum is declared as typedef NS_ENUM(UInt8, _Value).

@ben-xD ben-xD self-assigned this Nov 20, 2021
@ben-xD ben-xD changed the base branch from main to enhancement/log-level-serialization-2 November 20, 2021 12:36
@github-actions github-actions bot temporarily deployed to staging/pull/246/dartdoc November 20, 2021 12:39 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/246/dartdoc November 20, 2021 12:54 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/246/dartdoc November 23, 2021 10:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/246/dartdoc November 23, 2021 15:32 Inactive
Base automatically changed from enhancement/log-level-serialization-2 to main November 29, 2021 15:39
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

4 participants