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 availability for NWEndpoint #51

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Jul 3, 2019

Motivation:

NWEndpoint added a .url case for macOS 10.15 which commit afbbead added
support for. However, in doing so it also broke support for 10.14.

Modifications:

Handle .url in the default case and also remove @unknown from the
cases of the switch statements in NIOTSListenerChannel and SocketAddress
init.

Result:

Compiles on 10.14.

Motivation:

`NWEndpoint` added a `.url` case for macOS 10.15 which commit afbbead added
support for. However, in doing so it also broke support for 10.14.

Modifications:

Handle `.url` in the `default` case and also remove `@unknown` from the
cases of the switch statements in NIOTSListenerChannel and SocketAddress
init.

Result:

Compiles on 10.14.
@glbrntt
Copy link
Contributor Author

glbrntt commented Jul 3, 2019

Fixes #50

Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

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

That looks as good as it can to me :)

@glbrntt
Copy link
Contributor Author

glbrntt commented Jul 17, 2019

ping @Lukasa

@Lukasa Lukasa added the semver/patch No public API change. label Jul 17, 2019
@Lukasa Lukasa added this to the 1.1.0 milestone Jul 17, 2019
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

LGTM!

@Lukasa Lukasa merged commit eec3aed into apple:master Jul 17, 2019
@glbrntt glbrntt deleted the fix-nwendpoint-cases branch July 17, 2019 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants