Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Update for Swift 4.1 and Xcode 9.3 #136

Merged
merged 5 commits into from
Mar 30, 2018
Merged

Update for Swift 4.1 and Xcode 9.3 #136

merged 5 commits into from
Mar 30, 2018

Conversation

keith
Copy link
Contributor

@keith keith commented Mar 27, 2018

No description provided.

@@ -110,7 +110,7 @@ public struct Mapper {
}

let rawValues = try array.map { try T.RawValue.fromMap($0) }
return rawValues.flatMap { T(rawValue: $0) ?? defaultValue }
return rawValues.compactMap { T(rawValue: $0) ?? defaultValue }
Copy link
Contributor

Choose a reason for hiding this comment

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

It won't build now for anyone that want to use this library with Swift 4.0.X, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I'll wait for the final Xcode 9.3 release and once I merge this I will bump the major version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I guess that's reasonable 👍

@Vkt0r
Copy link

Vkt0r commented Mar 30, 2018

@keith Any chance this can be merged soon ?. Xcode 9.3 was released and this is failing on Carthage build.

@keith keith merged commit 42039eb into master Mar 30, 2018
@keith keith deleted the ks/4.1 branch March 30, 2018 21:22
@keith
Copy link
Contributor Author

keith commented Mar 30, 2018

@Vkt0r 8.0.0 is tagged with this change.

@Vkt0r
Copy link

Vkt0r commented Mar 30, 2018

@keith 👍 Thanks for quick response.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants