From 92c47e653f38c258affb1055615a2298cbf7152f Mon Sep 17 00:00:00 2001 From: Ashley Mills Date: Wed, 19 Jun 2019 21:14:22 +0100 Subject: [PATCH] Remove use of Connection.none --- Reachability.xcodeproj/project.pbxproj | 2 ++ Sources/Reachability.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Reachability.xcodeproj/project.pbxproj b/Reachability.xcodeproj/project.pbxproj index 392f0760..3d10973c 100644 --- a/Reachability.xcodeproj/project.pbxproj +++ b/Reachability.xcodeproj/project.pbxproj @@ -131,6 +131,7 @@ CA6187611F8D21D700FD5234 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; CA6187621F8D21D700FD5234 /* ReachabilitySwift.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = ReachabilitySwift.podspec; sourceTree = ""; }; CA6187651F8D220200FD5234 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = ""; }; + CA66930222BACD5E001BB352 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -229,6 +230,7 @@ AA7344681BE7678B008AFE69 = { isa = PBXGroup; children = ( + CA66930222BACD5E001BB352 /* Package.swift */, CA1983301F6FD0CD007D2DD1 /* README.md */, CA6187651F8D220200FD5234 /* CHANGELOG.md */, CA6187601F8D21D700FD5234 /* CONTRIBUTING.md */, diff --git a/Sources/Reachability.swift b/Sources/Reachability.swift index b91aa166..6c8ffa2e 100644 --- a/Sources/Reachability.swift +++ b/Sources/Reachability.swift @@ -291,7 +291,7 @@ extension SCNetworkReachabilityFlags { #if targetEnvironment(simulator) return .wifi #else - var connection = Connection.none + var connection = Connection.unavailable if !isConnectionRequiredFlagSet { connection = .wifi