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

Separate AlamofireNetworkActivityIndicator from Alamofire? #32

Closed
benasher44 opened this issue Mar 1, 2018 · 6 comments
Closed

Separate AlamofireNetworkActivityIndicator from Alamofire? #32

benasher44 opened this issue Mar 1, 2018 · 6 comments

Comments

@benasher44
Copy link

Hi there! We were able to use AlamofireNetworkActivityIndicator without Alamofire by just removing the notification registration methods. I'd love to figure out a way to expose this class as its own framework in such a way that Alamofire users could still use this seamlessly as they do today, but folks like us could install a subspec that didn't require Alamofire. I'd be open to doing the work here too. Thanks!

@jshier
Copy link
Contributor

jshier commented Mar 2, 2018

Thanks for the offer! Sure, if you can make the changes without affect current consumers, we'd be glad. I just merged a big infrastructure PR, so make sure you rebase from current master.

@benasher44
Copy link
Author

In Swift 4.1, doing this gets a lot easier because we can use #if canImport(Alamofire) to guard against using the notification symbols in projects that don't use Alamofire, so I think I'll wait for that.

@jessesquires
Copy link

@benasher44 Nice 😎

@jshier
Copy link
Contributor

jshier commented Apr 1, 2018

@benasher44 I've updated to 2.2.1 for Swift 4.1, so you can begin when you want. However, I'm not sure we can ship a release that requires Swift 4.1 until we can finish and release Alamofire 5, which will require that version.

@benasher44
Copy link
Author

Sounds good! I’ll try to get a PR up soon that requires Swift 4.1. That route I think will have the cleanest final API, and then we can wait until Alamofire 5 lands to merge it.

@benasher44
Copy link
Author

Closing. See note about why in #34.

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

Successfully merging a pull request may close this issue.

3 participants