-
Notifications
You must be signed in to change notification settings - Fork 110
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
Added Swift 3.2/4.0 Compatibility #480
Conversation
@@ -27,7 +27,7 @@ struct ObserverStore: Dispatcher { | |||
var onAuth: (Credentials) -> Void = { _ in } | |||
var onFailure: (Error) -> Void = { _ in } | |||
var onCancel: () -> Void = { } | |||
var onSignUp: (String, [String: Any]) -> Void = { _ in } | |||
var onSignUp: (String, [String: Any]) -> Void = { _, _ in } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The is a callback event when a Sign up is successful. The syntax changed here, previously you could just use _
as a convenience to skip multiple parameters. Now you have to be explicit.
@lbalmaceda We should discuss Public API changes. |
@cocojoe I don't see them. Can you please point them? |
Update README Update Gems Update Circle CI Xcode 9.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have discussed this internally and agreed to merge these changes as they are now.
There are non breaking API changes, Swift-4 you may not have a public methods that references non public defaults in it's parameters.
For example this init that uses a0_orange as a default
https://github.com/auth0/Lock.swift/blob/swift-4/Lock/AuthStyle.swift#L55
So the simple change is to make this extension Public
https://github.com/auth0/Lock.swift/pull/480/files#diff-f498ad2e7d4a9faf01c3c4c0eed33b2aR25
https://github.com/auth0/Lock.swift/pull/480/files#diff-53d32afb8adea758803b9861a8937454R50
https://github.com/auth0/Lock.swift/pull/480/files#diff-4192270a149488807ff9d8c418f13e01R25
https://github.com/auth0/Lock.swift/pull/480/files#diff-f5620bd226b47bb12e0e2bc0fa045130R124