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

Support XCode 9+ #23

Closed
jgainfort opened this issue Jun 28, 2018 · 9 comments
Closed

Support XCode 9+ #23

jgainfort opened this issue Jun 28, 2018 · 9 comments

Comments

@jgainfort
Copy link
Contributor

Hi! The README states that the library supports XCode 9+ but is using an operator requiring XCode 9.3+.

Seems this was introduced with this commit and changing flatMap to compactMap

2ecd85c

Is the intention still to support XCode 9+ or to move to only supporting 9.3+? Would a PR converting compactMap back to flatMap be acceptable?

@dcoufal
Copy link
Contributor

dcoufal commented Jun 28, 2018

Thanks for the issue writeup.

This is really a swift 4.0 -> 4.1 issue, but it was forced by the Xcode 9.3 update.

We're generally committed to supporting the latest non-beta releases of Xcode and Swift. So, we can't just switch back to flatMap as that means we would not compile for Swift 4.1.

We could either:

  • Change the README to indicate we only support Xcode 9.3. This probably doesn't really help you, but at least we'd be more accurate in our description.

  • Add a "preprocessor" check to use compactMap for 4.1 and flatMap for 4.0. I think this would look like #if swift(>=4.1) but that's just off the top of my head. If you wanted to submit that as PR that would be fine with us.

Hope this helps.

@jgainfort
Copy link
Contributor Author

jgainfort commented Jun 28, 2018

@dcoufal
If you accept the PR how long would you expect a new release to be made?

#24

@dcoufal
Copy link
Contributor

dcoufal commented Jun 28, 2018

I'd guess within a day. if that doesn't happen, ping us/me in this ticket.

Also, you'll have to agree to the Comcast CLA before we could merge. I'm showing that you have not signed. Let me know if you have technical problems with that.

@jgainfort
Copy link
Contributor Author

I did submit my agreement but it seems to not update. Getting a message saying it might be my email but I verified my email used for the commit is under my profile.

@dcoufal
Copy link
Contributor

dcoufal commented Jun 28, 2018

Yeah, I'm not sure either. I will check with our open source GitHub admins and get back to you.

@jgainfort
Copy link
Contributor Author

Seems it was just updated. CLA signed.

@dcoufal
Copy link
Contributor

dcoufal commented Jun 28, 2018

Fixed and merged.

@dcoufal dcoufal closed this as completed Jun 28, 2018
@dcoufal
Copy link
Contributor

dcoufal commented Jun 28, 2018

@jgainfort mamba 1.0.5 is released. Cocoapods takes a little time if that's what you're using.

@jgainfort
Copy link
Contributor Author

@dcoufal Thank you!

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

No branches or pull requests

2 participants