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

Swift 4.2 support #273

Merged
merged 5 commits into from
Jul 11, 2018
Merged

Swift 4.2 support #273

merged 5 commits into from
Jul 11, 2018

Conversation

djbe
Copy link
Contributor

@djbe djbe commented Jul 10, 2018

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.

Copy link
Owner

@p2 p2 left a 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.
Copy link
Owner

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
Copy link
Owner

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?

Copy link
Contributor Author

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.

@p2 p2 merged commit e81b4bc into p2:master Jul 11, 2018
@djbe djbe deleted the feature/swift4.2 branch July 11, 2018 19:34
MaximeLM pushed a commit to MaximeLM/OAuth2 that referenced this pull request Aug 23, 2018
* Upgrade codebase to support Swift 4.2
* Fix broken tests (order of query parameters is not guaranteed)
* Changelog entries for previous PRs and releases
@nkomnigon nkomnigon mentioned this pull request Nov 8, 2018
@p2 p2 mentioned this pull request Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants