Drop broken macOS code to get SSID (#1042)

Related to #497
This commit is contained in:
Davide 2024-12-23 22:47:33 +01:00 committed by GitHub
parent 5a4efa9d15
commit 3706268bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 17 deletions

View File

@ -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

View File

@ -32,10 +32,6 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.personal-information.location</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>

View File

@ -14,8 +14,6 @@
</array>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>