File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,16 @@ protocol NetworkMonitor: AnyObject {
1616}
1717
1818var currentNetWorkType : String = NetWorkType . UnKnow
19+ var currentIsOnline : Bool = true
1920
2021extension NWPathMonitor : NetworkMonitor {
21- var isOnline : Bool {
22- currentPath. status == . satisfied
23- }
24-
22+ var isOnline : Bool { currentIsOnline }
2523 var netWorkType : String { currentNetWorkType }
2624
2725 func startMonitoring( using queue: DispatchQueue ) {
2826 start ( queue: queue)
2927 pathUpdateHandler = { path in
28+ currentIsOnline = path. status == . satisfied
3029 if path. usesInterfaceType ( . wifi) {
3130 currentNetWorkType = NetWorkType . Wifi
3231 } else if path. usesInterfaceType ( . cellular) {
Original file line number Diff line number Diff line change 88enum PackageInfo {
99 /// the clickstream analytics iOS sdk version
1010 /// note: update and align the version with new tag version before committing new tag
11- static let version = " 0.5.1 "
11+ static let version = " 0.5.2 "
1212}
You can’t perform that action at this time.
0 commit comments