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 Swift's built-in Result type when available #467

Merged
merged 3 commits into from
Apr 21, 2021

Conversation

ejensen
Copy link
Contributor

@ejensen ejensen commented Apr 9, 2021

Changes

Followup on PR #433

Replaces the conflicting public Result type with the Result type built into the Swift Standard Library when Swift 5.0+ is used.

This prevents type conflicts while minimizing changes to the existing Auth0 interface. This is a non-breaking change in both Swift < 5.0 and Swift >= 5.0. The deprecated shims for the old named parameters provide auto-fix-its to the warnings by migrating to the Swift standard interface.

warning-fix

References

Testing

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@ejensen ejensen requested a review from a team as a code owner April 9, 2021 17:30
@Widcket Widcket added the needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue label Apr 12, 2021
@Widcket
Copy link
Contributor

Widcket commented Apr 12, 2021

Hi @ejensen, thanks for the PR. I expect to review this towards the end of the week.

@Widcket
Copy link
Contributor

Widcket commented Apr 18, 2021

Hi, I haven't been able to get to this yet. Should be done this week. Apologies for the delay.

@Widcket
Copy link
Contributor

Widcket commented Apr 21, 2021

@ejensen thanks for this PR!

@Widcket Widcket merged commit 408a9bf into auth0:master Apr 21, 2021
@Widcket Widcket deleted the swift-result-type-support branch April 21, 2021 01:01
@Widcket Widcket added CH: Changed and removed needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue labels Apr 21, 2021
@Widcket Widcket added this to the vNext milestone Apr 21, 2021
@Widcket Widcket mentioned this pull request Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants