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 4 support #57

Closed
sidmani opened this issue Sep 10, 2017 · 19 comments
Closed

Swift 4 support #57

sidmani opened this issue Sep 10, 2017 · 19 comments

Comments

@sidmani
Copy link
Contributor

sidmani commented Sep 10, 2017

Just wondering if there are any plans for Swift 4/Xcode 9 support. The library currently doesn't compile under Swift 4, but I can fix it and create a pull request if someone with write access makes a swift-4 branch for me to compare against.

@sidmani
Copy link
Contributor Author

sidmani commented Sep 10, 2017

https://github.com/sidmani/RxGesture/tree/swift-4 contains all necessary changes. I don't know much about Carthage, so I left that untouched, but I updated the podspec to depend on RxSwift and RxCocoa 4.0.0-alpha.0.

@jegnux
Copy link
Member

jegnux commented Sep 11, 2017

Thanks @sidmani I'll try to look into your PR. Ideally I would have waited to have RxSwift 4 out of alpha/beta before updating RxGesture.

I wonder how other @RxSwiftCommunity/contributors handle this?

@icanzilb
Copy link
Member

@jegnux rxswift4 is still an alpha pre-release, I'm waiting for a stable beta before updating my libs

@sidmani
Copy link
Contributor Author

sidmani commented Sep 11, 2017

@jegnux I would have waited too, but there's an issue (or maybe it's the intended behavior, the cocoapods team hasn't responded to me) with cocoapods which causes "4.0.0-alpha.1" to not satisfy the requirement "~> 3.4" for RxSwift, so having a swift-4 branch with updated dependencies would be convenient to avoid git submodules.

@sidmani
Copy link
Contributor Author

sidmani commented Sep 11, 2017

None of the changes I made were RxSwift-related, only Swift 4 updates.

@jegnux
Copy link
Member

jegnux commented Sep 11, 2017

@sidmani can't you use RxSwift 3.x and RxGesture 1.1.x until RxSwift 4 come's out?

@freak4pc
Copy link
Member

@jegnux @sidmani In general Swift 4 should hit final tomorrow with the release of iOS 11 and iPhone 8/X/whatever, so we can hold on this and see if this PR is still relevant

@xushao1990
Copy link

👍

@Plnda
Copy link

Plnda commented Sep 20, 2017

Still cannot update to the latest 4.0 rxswift version since I have this error
RxSwift (= 4.0.0-beta.0) required by Podfile RxSwift (~> 4.0.0-beta.0) required byRxCocoa (4.0.0-beta.0) RxSwift (~> 3.6) required by RxGesture (1.1.1)

@EvsenevDev
Copy link

@jegnux
Hi, i tried add migration to Swift 4 with RxSwift 4 beta, but i have issues with Defaults enums, thats couldn't be used for default values of init parama. I can do that without enums and help you add this migration, i'm interested, but i want hear your solution. What do you think?

Thanks

@sidmani
Copy link
Contributor Author

sidmani commented Sep 20, 2017

@EvsenevDev look at my fork

@jegnux
Copy link
Member

jegnux commented Sep 20, 2017

@EvsenevDev what is your solution "without enum"?

Is it better than @sidmani's? (public Defaults here the enum name is prefixed by the kind of Defaults)

@EvsenevDev
Copy link

EvsenevDev commented Sep 20, 2017

@sidmani @jegnux ok. Will you merge it?

@sidmani
Copy link
Contributor Author

sidmani commented Sep 20, 2017

@EvsenevDev @jegnux I need a swift4 branch to compare against (unless you want me to use master?)

@jegnux
Copy link
Member

jegnux commented Sep 20, 2017

@sidmani I just created swift-4 branch.

@adamsmaka
Copy link

is it possible to use it alongside RxSwift 4.0 ?

@worthbak
Copy link

Any status update on the Swift 4 branch? Looks like RxSwit 4.0 just dropped.

@bobgodwinx
Copy link
Member

@worthbak there is Swift 4.0 branch you point your pod to that branch for the time being

@jegnux
Copy link
Member

jegnux commented Oct 19, 2017

--------------------------------------------------------------------------------
 🎉  Congrats

 🚀  RxGesture (1.2.0) successfully published
 📅  October 19th, 10:54
 🌎  https://cocoapods.org/pods/RxGesture
 👍  Tell your friends!
--------------------------------------------------------------------------------

Thank you all for your contributions 🙏

@jegnux jegnux closed this as completed Oct 19, 2017
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

10 participants