-
Notifications
You must be signed in to change notification settings - Fork 279
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
Swift 4.2 support #273
Swift 4.2 support #273
Conversation
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.
This is cool, thanks for all the maintenance! Just two questions, then we're good to go!
README.md
Outdated
@@ -4,7 +4,7 @@ OAuth2 | |||
[![Build Status](https://travis-ci.org/p2/OAuth2.svg?branch=master)](https://travis-ci.org/p2/OAuth2) | |||
[![License](https://img.shields.io/:license-apache-blue.svg)](LICENSE.txt) | |||
|
|||
OAuth2 frameworks for **macOS**, **iOS** and **tvOS** written in Swift 3.0. | |||
OAuth2 frameworks for **macOS**, **iOS** and **tvOS** written in Swift 4.0. |
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.
4.2?
@@ -115,7 +115,7 @@ open class OAuth2WebViewController: UIViewController, WKNavigationDelegate { | |||
// create a web view | |||
let web = WKWebView() | |||
web.translatesAutoresizingMaskIntoConstraints = false | |||
web.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal | |||
web.scrollView.decelerationRate = UIScrollView.DecelerationRate.normal |
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.
Could you simply use .normal
?
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.
No because it wouldn't be compatible with 4.0 anymore, and Xcode 10 won't be released for a few months yet.
* Upgrade codebase to support Swift 4.2 * Fix broken tests (order of query parameters is not guaranteed) * Changelog entries for previous PRs and releases
This is needed to support Xcode 10 (beta).
The codebase should still be compatible with Swift 4.1 (Xcode 9).
Note: I've also fixed some broken tests (already broken in older Xcode versions) and added a bunch of changelog entries.