From 3706268bf9f49eae606f9c99458c6989a8cc91bd Mon Sep 17 00:00:00 2001 From: Davide Date: Mon, 23 Dec 2024 22:47:33 +0100 Subject: [PATCH] Drop broken macOS code to get SSID (#1042) Related to #497 --- .../CommonUtils/Extensions/Utils+Network.swift | 12 +----------- Passepartout/App/App.entitlements | 4 ---- Passepartout/Tunnel/Tunnel.entitlements | 2 -- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/Library/Sources/CommonUtils/Extensions/Utils+Network.swift b/Library/Sources/CommonUtils/Extensions/Utils+Network.swift index 015b9a4e..dbdd612e 100644 --- a/Library/Sources/CommonUtils/Extensions/Utils+Network.swift +++ b/Library/Sources/CommonUtils/Extensions/Utils+Network.swift @@ -65,17 +65,7 @@ extension Utils { #if targetEnvironment(simulator) ["My Home Network", "Safe Wi-Fi", "Friend's House"].randomElement() #elseif os(iOS) - await withCheckedContinuation { continuation in - NEHotspotNetwork.fetchCurrent { - guard let network = $0 else { - continuation.resume(with: .success(nil)) - return - } - continuation.resume(with: .success(network.ssid)) - } - } -#elseif os(macOS) - CWWiFiClient.shared().interface()?.ssid() + await NEHotspotNetwork.fetchCurrent()?.ssid #else nil #endif diff --git a/Passepartout/App/App.entitlements b/Passepartout/App/App.entitlements index 67e5030d..0bcdf396 100644 --- a/Passepartout/App/App.entitlements +++ b/Passepartout/App/App.entitlements @@ -32,10 +32,6 @@ com.apple.security.network.client - com.apple.security.network.server - - com.apple.security.personal-information.location - keychain-access-groups $(CFG_KEYCHAIN_GROUP_ID) diff --git a/Passepartout/Tunnel/Tunnel.entitlements b/Passepartout/Tunnel/Tunnel.entitlements index c1217f54..3d8a8e7f 100644 --- a/Passepartout/Tunnel/Tunnel.entitlements +++ b/Passepartout/Tunnel/Tunnel.entitlements @@ -14,8 +14,6 @@ com.apple.security.network.client - com.apple.security.network.server - keychain-access-groups $(CFG_KEYCHAIN_GROUP_ID)