All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- @p4checo
- @connorpower
init()
methods nowthrow
ReachabilityError
contains the error code returned bySCError(
) after an error occurs.- Renamed error cases to start with lowercase
- Allow configuring the notification
DispatchQueue
, which was previously hardcoded toDispatchQueue.main
. It is now an optional, which if set tonil
will use the notifier's internal queue to fire notifications. The default is still.main
- Fixed a crash which could occur if Reachability was deallocated at the same time a system thread was calling back into Reachability
- To resolve an issue when using optional Reachability vars,
Connection.none
has been deprecated. UseConnection.unavailable
instead.
- Link CoreTelephony.framework required in iOS 12 (@corteggo)
- Updates for Swift 5.0 (@simonboriis)
strongSelf
->self
(@strawb3rryx7)
- Updates for Swift 4.2
- Set reachabilty flags if
connection
called beforestartNotifier
(#307)
- Use a single target for all platforms
- Add ReachabilityTests target
- Remove logging
Notification.Name.reachabilityChanged
is public- Added optional
queueQoS
andtargetQueue
toinit(reachabilityRef: SCNetworkReachability, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
- Added optional
queueQoS
andtargetQueue
toinit?(hostname: String, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
- Added optional
queueQoS
andtargetQueue
toinit?(queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
- Move macOS deployment target to 10.10
- Version update only to fix Cocoapods issue
NetworkStatus
renamedConnection
currentReachabilityStatus
renamedconnection
isReachableViaWWAN
has been renamed toisReachableViaCellular
reachableOnWWAN
has been renamed toallowsCellularConnection
- The notification for reachability changes has been renamed from
ReachabilityChangedNotification
toNotification.Name.reachabilityChanged
- All closure callbacks and notification are fired on the main queue (including when
startNotifier()
is called)
reachability.currentReachabilityString
has been deprecated. Use"\(reachability.connection)"
instead.isReachable
has been deprecated. Useconnection != .none
instead.isReachableViaWWAN
has been deprecated. Useconnection == .cellular
instead.