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 package manager support #643
Conversation
aad15c3
to
3aaa82d
Compare
Both ReactiveSwift & RxSwift vend through spm now, trying to see if I can get Alamofire to work, running into some issues related to Alamofire/Alamofire#1544 After that we should be ready to go 🎉 We still can't import |
Any update ? |
@VivienGiraud still waiting on the folks at Alamofire. I opened Alamofire/Alamofire#1815, since they previously closed Alamofire/Alamofire#1544 |
I'd love to get this working as well. However, short of some fragile hackery, I don't see it as a possibility while SPM doesn't support setting the deployment target and doesn't support non Mac/Linux platforms or depending on Apple Frameworks. The best long term solution would be hassle the SPM folks to add this in time for the next Swift version. If SPM support is high priority, the other option is to depend instead on an Alamofire fork with the offending functionality removed (if possible) until the underlying issue in SPM is resolved. This could even be the beginning of replacing Alamofire with a Moya-specific |
@scottrhoyt: I was able to use spm to deploy an iOS app (I only had one private dependency), but it was very similar to using a submodule. not ideal, but it worked |
Thanks @AndrewSB. That is good to know. Like you said, you were using it very similarly to a submodule. I suspect you could get Moya to build just fine using a similar method. Even though The core of the issue holding up Alamofire seems to be a dependency on a newer version of If the goal of getting SPM working for Moya is to add Linux support (as opposed to another macOS-based dependency manager), then the |
Hey @AndrewSB, I took a look at this and realized it just needed one small change to build correctly via SPM. Might be a good idea to add an SPM build job to CI to catch these kind of things in the future (could be a separate PR), but this is looking good! 👍 |
I'm going to retarget this PR to come off #885. |
Try a |
I'll check it out |
Woah, that was awesome. Cool, I'll cherry pick two commits onto Moya's |
fb8a27c
to
73bb623
Compare
73bb623
to
5baa844
Compare
Generated by 🚫 danger |
Current coverage is 73.46% (diff: 100%)@@ master #643 diff @@
==========================================
Files 19 19
Lines 701 701
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 515 515
Misses 186 186
Partials 0 0
|
Things we're still waiting for:
swift test
when we're swift package manager compatible) #698, so Moya has a swift package manager compatible layout