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-276: Swift 5 support #233

Merged
merged 7 commits into from Apr 10, 2019
Merged

SWIFT-276: Swift 5 support #233

merged 7 commits into from Apr 10, 2019

Conversation

mbroadst
Copy link
Member

@mbroadst mbroadst commented Apr 9, 2019

This introduces full support for Swift 5 on OSX and Linux.

@mbroadst mbroadst marked this pull request as ready for review April 9, 2019 15:58
@mbroadst mbroadst force-pushed the SWIFT-276/build-with-swift-5 branch from e41f2e2 to e48666a Compare April 9, 2019 17:53
.travis.yml Show resolved Hide resolved
Package.swift Show resolved Hide resolved
Sources/MongoSwift/BSON/Document+Sequence.swift Outdated Show resolved Hide resolved
Sources/MongoSwift/BSON/DocumentIterator.swift Outdated Show resolved Hide resolved
Tests/MongoSwiftTests/CodecTests.swift Show resolved Hide resolved
Sources/MongoSwift/BSON/Document.swift Show resolved Hide resolved
Tests/MongoSwiftTests/TestUtils.swift Outdated Show resolved Hide resolved
Sources/MongoSwift/BSON/DocumentIterator.swift Outdated Show resolved Hide resolved
Sources/MongoSwift/BSON/Document+Collection.swift Outdated Show resolved Hide resolved
Tests/MongoSwiftTests/CodecTests.swift Show resolved Hide resolved
@mbroadst mbroadst force-pushed the SWIFT-276/build-with-swift-5 branch 2 times, most recently from 0f655e8 to 40afed7 Compare April 10, 2019 12:09
Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! great work getting this fixed. It's been that thing looming over us for a while but you've handled it quite nicely 👍

Tests/MongoSwiftTests/CodecTests.swift Show resolved Hide resolved
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, otherwise lgtm!! woohoo! thanks so much for figuring all this out 🙂

fatalError("Failed to initialize an iterator over document \(self)")
}

for pos in 0..<position + 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe clearer to just write this as for pos in 0...position?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah duh, silly copy pasta on my part there!

This adds support for compiler(>=5.0)
JSONSerialization changed how they serialized JSON between v4 and
v5, so we'll use libbson for JSON cleaning for now.
@mbroadst mbroadst force-pushed the SWIFT-276/build-with-swift-5 branch from 40afed7 to e28a2af Compare April 10, 2019 17:14
@mbroadst mbroadst force-pushed the SWIFT-276/build-with-swift-5 branch from e28a2af to 036e76e Compare April 10, 2019 17:14
@mbroadst mbroadst merged commit b789fcd into master Apr 10, 2019
@mbroadst mbroadst deleted the SWIFT-276/build-with-swift-5 branch April 10, 2019 17:15
@valeriomazzeo
Copy link
Contributor

That's great, amazing job 👍🏻
Are we getting a new tagged release? 😬

@kmahar
Copy link
Contributor

kmahar commented Apr 10, 2019

@valeriomazzeo yup, within the next few days 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants