mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-22 08:32:11 +00:00
parent
5a4efa9d15
commit
3706268bf9
@ -65,17 +65,7 @@ extension Utils {
|
|||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
["My Home Network", "Safe Wi-Fi", "Friend's House"].randomElement()
|
["My Home Network", "Safe Wi-Fi", "Friend's House"].randomElement()
|
||||||
#elseif os(iOS)
|
#elseif os(iOS)
|
||||||
await withCheckedContinuation { continuation in
|
await NEHotspotNetwork.fetchCurrent()?.ssid
|
||||||
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()
|
|
||||||
#else
|
#else
|
||||||
nil
|
nil
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.network.server</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.personal-information.location</key>
|
|
||||||
<true/>
|
|
||||||
<key>keychain-access-groups</key>
|
<key>keychain-access-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
||||||
|
@ -14,8 +14,6 @@
|
|||||||
</array>
|
</array>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.network.server</key>
|
|
||||||
<true/>
|
|
||||||
<key>keychain-access-groups</key>
|
<key>keychain-access-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user