Rxswift: How to use ReachabilityService

Created on 11 Oct 2016  路  3Comments  路  Source: ReactiveX/RxSwift

:warning: If you don't have something to report in the following format, it will probably be easier and faster to ask in the slack channel first. :warning:

Short description of the issue:

I want use ReachabilityService in my app, how can I use it?

Self contained code example that reproduces the issue:

  code goes here

// If we can't get a self contained code example that reproduces the issue, there is a big chance we won't be able
// to help you because there is not much we can do.
// `Self contained code example` means:
// * that we should be able to just run the provided code without changing it.
// * that it will reproduce the issue upon running

Xcode version:


Expected outcome:

_what you expect to happen goes here_

What actually happens:

_what actually happens goes here_

:warning: Fields below are optional for general issues or in case those questions aren't related to your issue, but filling them out will increase the chances of getting your issue resolved. :warning:

Installation method:

  • [x] CocoaPods
  • [ ] Carthage
  • [ ] Git submodules

I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)

  • [ ] yes (which ones)
  • [x] no

Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)

  • [x] just starting
  • [ ] I have a small code base
  • [ ] I have a significant code base

Most helpful comment

@kzaher Would you mind to extract ReachabilityService from RxExamples, and create and publish a cocoapod from it? I can even contribute it back to this or RxSwift Community repo if you don't want to lose ownership.

All 3 comments

Hi @RafaelPlantard ,

I don't think we have it packed. The files inside RxExample app are self contained and pretty simple. I guess you can just copy the file.

@kzaher Would you mind to extract ReachabilityService from RxExamples, and create and publish a cocoapod from it? I can even contribute it back to this or RxSwift Community repo if you don't want to lose ownership.

@mrtj feel free to do with it as you please. Just note that Reachability.swift is taken from another project, so you'll probably need to add that as a dependency.

I can send you an invite if you have time to create a project in RxSwift community organization and maintain it.

/*
Copyright 漏 2014, Ashley Mills
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaumard picture jaumard  路  3Comments

apoloa picture apoloa  路  3Comments

delebedev picture delebedev  路  3Comments

hannesstruss picture hannesstruss  路  3Comments

dmial picture dmial  路  3Comments