Skip to content

Support Swift 5#13

Merged
Andrew-Lees11 merged 6 commits intomasterfrom
swift5
Apr 5, 2019
Merged

Support Swift 5#13
Andrew-Lees11 merged 6 commits intomasterfrom
swift5

Conversation

@djones6
Copy link
Copy Markdown
Contributor

@djones6 djones6 commented Apr 4, 2019

Update to Swift 5, and use official Docker images for CI.

TODO: resolve Swift 5 warnings related to Data.withUnsafeBytes changes and Data.init(bytes:) -> Data.init(_:) - for reference, similar changes were required in Kitura/BlueSocket#170 and Kitura/Kitura-net#297

@djones6 djones6 changed the title Support Swift 5 [WIPSupport Swift 5 Apr 4, 2019
@djones6 djones6 changed the title [WIPSupport Swift 5 [WIP] Support Swift 5 Apr 4, 2019
@djones6 djones6 added this to the 2019.07 milestone Apr 4, 2019
import Foundation

#if !swift(>=5.0)
// Extension to allow Swift 5 `withUnsafeBytes` API for earlier versions
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

@Andrew-Lees11 Andrew-Lees11 merged commit 90ddc20 into master Apr 5, 2019
@Andrew-Lees11 Andrew-Lees11 changed the title [WIP] Support Swift 5 Support Swift 5 Apr 7, 2019
@Andrew-Lees11 Andrew-Lees11 deleted the swift5 branch May 14, 2019 13:10
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.

3 participants