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 nowthrowReachabilityErrorcontains 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 tonilwill 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.nonehas been deprecated. UseConnection.unavailableinstead.
- 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
connectioncalled beforestartNotifier(ashleymills#307)
- Use a single target for all platforms
- Add ReachabilityTests target
- Remove logging
Notification.Name.reachabilityChangedis public- Added optional
queueQoSandtargetQueuetoinit(reachabilityRef: SCNetworkReachability, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil) - Added optional
queueQoSandtargetQueuetoinit?(hostname: String, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil) - Added optional
queueQoSandtargetQueuetoinit?(queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil) - Move macOS deployment target to 10.10
- Version update only to fix Cocoapods issue
NetworkStatusrenamedConnectioncurrentReachabilityStatusrenamedconnectionisReachableViaWWANhas been renamed toisReachableViaCellularreachableOnWWANhas been renamed toallowsCellularConnection- The notification for reachability changes has been renamed from
ReachabilityChangedNotificationtoNotification.Name.reachabilityChanged - All closure callbacks and notification are fired on the main queue (including when
startNotifier()is called)
reachability.currentReachabilityStringhas been deprecated. Use"\(reachability.connection)"instead.isReachablehas been deprecated. Useconnection != .noneinstead.isReachableViaWWANhas been deprecated. Useconnection == .cellularinstead.