mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #239] Swift 2.3 support #135
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mz2 on GitHub (Jun 18, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/239
There are a few API changes in Swift 2.3 (or rather, in nullability annotations of Foundation) which make OAuthSwift not compile cleanly with Swift 2.3.
I've run the syntax migration tool for my fork over here: https://github.com/mpapp/OAuthSwift – this is simplistic though as it (probably?) breaks Swift 2.2 and earlier given the nullability changes.
@phimage commented on GitHub (Jul 7, 2016):
I see your change on
absoluteString(now optional), thxSwift 2.3 is available as part of Xcode 8, not yet officially released, so I can modify the master branch
I can just create a new branch from the latest stable release and commit the change
@mz2 commented on GitHub (Jul 7, 2016):
There's a preprocessor statement available for that as of Swift 2.2, which would let you support both:
@phimage commented on GitHub (Jul 7, 2016):
Ok the solution could be to add into NSURL+OAuthSwift.swift
and use into code
unsafeAbsoluteStringinstead ofabsoluteStringI could not test yet, I can't install xcode 8 with my current OS version and migrate is a little tricky for me
PR are welcomed
@phimage commented on GitHub (Jul 8, 2016):
os updated, xcode beta launched, and fix for 2.3 commited
@mz2 commented on GitHub (Jul 8, 2016):
Sweet, thanks!