AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 601 forks source link

Swift Package Manager #311

Closed jonasman closed 4 years ago

jonasman commented 5 years ago

New Issue Checklist

Environment

Issue Description

Any plans to Integrate Swift Package Manager? It is now a first class citizen on Xcode 11

Complete output when you encounter the issue (if any)
jeffctown commented 5 years ago

I love this idea, we should support SPM. I haven't converted anything with so many subspecs before, so hopefully the current subspecs could be easily converted to several packages. @AliSoftware do you have any thoughts or preferences here? Should we simply mimic the current Cocoapods' subspecs?

sunshinejr commented 5 years ago

Ah yeah the SPM support, I mentioned it to @AliSoftware but I never had time to do that. But I will happily help with reviewing the PR.

jonasman commented 5 years ago

@jeffctown Maybe adding all the files for now and later evaluate how to make the sub packages. In fact sub dependencies are supported by SPM but i think it needs to be one per repo.

gabrielPeart commented 5 years ago

Yes, sub dependencies are supported, I believe that is very important to add support for SPM. Any news about it? @jeffctown @AliSoftware ?

jeffctown commented 5 years ago

I'm working on this. I hope to be able to get it in soon.