Add iOS Share Extension

This commit is contained in:
Leon Böttger committed 2025-08-17 19:03:47 +02:00
1 parent 13ce7522a7
commit 406247d968
13 files changed
+602 -147

No files matched your search

@@ -198,7 +198,7 @@ class InboundNearbyConnection: NearbyConnection {
} else if let url = URL(string: urlStr) {
#if os(macOS)
NSWorkspace.shared.open(url)
#elseif os(iOS)
#elseif os(iOS) && !EXTENSION
UIApplication.shared.open(url, options: [:], completionHandler: nil)
#endif
}
@@ -18,7 +18,9 @@ import CryptoKit
public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearbyConnectionDelegate, OutboundNearbyConnectionDelegate {
#if !EXTENSION
private let sleepManager = SleepManager.shared
#endif
private var tcpListener: NWListener
private var mdnsServices: [NetService] = []
private var incomingConnections: [String: InboundNearbyConnection] = [:]