From a353050af16ec75a8ce4d2e6be1b2b961bce237e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 16 Dec 2023 20:50:39 +0100 Subject: [PATCH] Create cross-platform SwiftUI Demo - Autogen apps/extensions Info.plist - Avoid . in bundle identifiers of extensions - Normalize demo version - Beware of extension runpath - Drop host app Closes #399 --- CHANGELOG.md | 4 + Demo/Demo/DemoTunnel.plist | 22 - .../OpenVPNPacketTunnelProvider.swift | 0 .../WireGuardPacketTunnelProvider.swift | 0 Demo/Demo/{ => UI}/Configuration.swift | 17 + .../AppDelegate.swift => UI/DemoApp.swift} | 30 +- Demo/Demo/UI/DemoView.swift | 82 ++ Demo/Demo/UI/Notifier.swift | 70 ++ Demo/Demo/UI/OpenVPNView.swift | 126 +++ Demo/Demo/UI/WireGuardView.swift | 112 +++ Demo/Demo/iOS/AppDelegate.swift | 68 -- Demo/Demo/iOS/Base.lproj/Main.storyboard | 322 ------ Demo/Demo/iOS/Demo.plist | 45 - Demo/Demo/iOS/OpenVPNViewController.swift | 196 ---- Demo/Demo/iOS/WireGuardViewController.swift | 148 --- Demo/Demo/macOS/Base.lproj/Main.storyboard | 937 ----------------- Demo/Demo/macOS/Demo.plist | 34 - Demo/Demo/macOS/OpenVPNViewController.swift | 177 ---- Demo/Demo/macOS/WireGuardViewController.swift | 148 --- .../AccentColor.colorset/Contents.json | 11 + .../Content.imageset/Contents.json | 11 + .../Back.imagestacklayer/Contents.json | 6 + .../Contents.json | 17 + .../Content.imageset/Contents.json | 11 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 11 + .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 + .../Back.imagestacklayer/Contents.json | 6 + .../App Icon.imagestack/Contents.json | 17 + .../Content.imageset/Contents.json | 16 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 + .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 32 + .../Contents.json | 16 + .../Top Shelf Image.imageset/Contents.json | 16 + Demo/Demo/tvOS/Assets.xcassets/Contents.json | 6 + .../tvOS/Demo.entitlements} | 8 +- Demo/Demo/tvOS/DemoTunnel.entitlements | 18 + Demo/Host/AppDelegate.swift | 71 -- .../AppIcon.appiconset/Contents.json | 93 -- Demo/Host/Base.lproj/LaunchScreen.storyboard | 25 - Demo/Host/Base.lproj/Main.storyboard | 24 - Demo/Host/Info.plist | 45 - Demo/Host/ViewController.swift | 40 - Demo/TunnelKit.xcodeproj/project.pbxproj | 947 +++++++++++++----- .../xcschemes/TunnelKitDemo-iOS.xcscheme | 2 +- .../xcschemes/TunnelKitDemo-macOS.xcscheme | 2 +- .../xcschemes/TunnelKitDemo-tvOS.xcscheme | 77 ++ .../TunnelKitDemoOpenVPNTunnel-iOS.xcscheme | 2 +- .../TunnelKitDemoOpenVPNTunnel-macOS.xcscheme | 2 +- .../TunnelKitDemoOpenVPNTunnel-tvOS.xcscheme | 95 ++ .../TunnelKitDemoWireGuardTunnel-iOS.xcscheme | 2 +- ...unnelKitDemoWireGuardTunnel-macOS.xcscheme | 2 +- ...TunnelKitDemoWireGuardTunnel-tvOS.xcscheme | 96 ++ .../xcschemes/TunnelKitHost.xcscheme | 2 +- 57 files changed, 1630 insertions(+), 2693 deletions(-) rename Demo/Demo/{ => Tunnel}/OpenVPNPacketTunnelProvider.swift (100%) rename Demo/Demo/{ => Tunnel}/WireGuardPacketTunnelProvider.swift (100%) rename Demo/Demo/{ => UI}/Configuration.swift (91%) rename Demo/Demo/{macOS/AppDelegate.swift => UI/DemoApp.swift} (54%) create mode 100644 Demo/Demo/UI/DemoView.swift create mode 100644 Demo/Demo/UI/Notifier.swift create mode 100644 Demo/Demo/UI/OpenVPNView.swift create mode 100644 Demo/Demo/UI/WireGuardView.swift delete mode 100644 Demo/Demo/iOS/AppDelegate.swift delete mode 100644 Demo/Demo/iOS/Base.lproj/Main.storyboard delete mode 100644 Demo/Demo/iOS/Demo.plist delete mode 100644 Demo/Demo/iOS/OpenVPNViewController.swift delete mode 100644 Demo/Demo/iOS/WireGuardViewController.swift delete mode 100644 Demo/Demo/macOS/Base.lproj/Main.storyboard delete mode 100644 Demo/Demo/macOS/Demo.plist delete mode 100644 Demo/Demo/macOS/OpenVPNViewController.swift delete mode 100644 Demo/Demo/macOS/WireGuardViewController.swift create mode 100644 Demo/Demo/tvOS/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 Demo/Demo/tvOS/Assets.xcassets/Contents.json rename Demo/{Host/Host.entitlements => Demo/tvOS/Demo.entitlements} (54%) create mode 100644 Demo/Demo/tvOS/DemoTunnel.entitlements delete mode 100644 Demo/Host/AppDelegate.swift delete mode 100644 Demo/Host/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Demo/Host/Base.lproj/LaunchScreen.storyboard delete mode 100644 Demo/Host/Base.lproj/Main.storyboard delete mode 100644 Demo/Host/Info.plist delete mode 100644 Demo/Host/ViewController.swift create mode 100644 Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemo-tvOS.xcscheme create mode 100644 Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoOpenVPNTunnel-tvOS.xcscheme create mode 100644 Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoWireGuardTunnel-tvOS.xcscheme diff --git a/CHANGELOG.md b/CHANGELOG.md index d82a3c0..2d2a3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support for Apple TV. [#337](https://github.com/passepartoutvpn/tunnelkit/issues/337) - Attach user data to VPN configuration. [#400](https://github.com/passepartoutvpn/tunnelkit/pull/400) +### Changed + +- Demo rewritten in SwiftUI. [#399](https://github.com/passepartoutvpn/tunnelkit/issues/399) + ## 6.2.0 (2023-12-14) ### Changed diff --git a/Demo/Demo/DemoTunnel.plist b/Demo/Demo/DemoTunnel.plist index c219de1..3059459 100644 --- a/Demo/Demo/DemoTunnel.plist +++ b/Demo/Demo/DemoTunnel.plist @@ -2,26 +2,6 @@ - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - TunnelKitDemoTunnel - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - XPC! - CFBundleShortVersionString - 5.0.0 - CFBundleVersion - 1 - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) NSExtension NSExtensionPointIdentifier @@ -29,7 +9,5 @@ NSExtensionPrincipalClass $(PRODUCT_MODULE_NAME).PacketTunnelProvider - NSHumanReadableCopyright - Copyright (c) 2023 Davide De Rosa. All rights reserved. diff --git a/Demo/Demo/OpenVPNPacketTunnelProvider.swift b/Demo/Demo/Tunnel/OpenVPNPacketTunnelProvider.swift similarity index 100% rename from Demo/Demo/OpenVPNPacketTunnelProvider.swift rename to Demo/Demo/Tunnel/OpenVPNPacketTunnelProvider.swift diff --git a/Demo/Demo/WireGuardPacketTunnelProvider.swift b/Demo/Demo/Tunnel/WireGuardPacketTunnelProvider.swift similarity index 100% rename from Demo/Demo/WireGuardPacketTunnelProvider.swift rename to Demo/Demo/Tunnel/WireGuardPacketTunnelProvider.swift diff --git a/Demo/Demo/Configuration.swift b/Demo/Demo/UI/Configuration.swift similarity index 91% rename from Demo/Demo/Configuration.swift rename to Demo/Demo/UI/Configuration.swift index 1e73782..fa26ac2 100644 --- a/Demo/Demo/Configuration.swift +++ b/Demo/Demo/UI/Configuration.swift @@ -28,6 +28,23 @@ import TunnelKitCore import TunnelKitOpenVPN import TunnelKitWireGuard +#if os(macOS) +let appGroup = "DTDYD63ZX9.group.com.algoritmico.TunnelKit.Demo" +private let bundleComponent = "macos" +#elseif os(iOS) +let appGroup = "group.com.algoritmico.TunnelKit.Demo" +private let bundleComponent = "ios" +#else +let appGroup = "group.com.algoritmico.TunnelKit.Demo" +private let bundleComponent = "tvos" +#endif + +enum TunnelIdentifier { + static let openVPN = "com.algoritmico.\(bundleComponent).TunnelKit.Demo.OpenVPN-Tunnel" + + static let wireGuard = "com.algoritmico.\(bundleComponent).TunnelKit.Demo.WireGuard-Tunnel" +} + extension OpenVPN { struct DemoConfiguration { static let ca = OpenVPN.CryptoContainer(pem: """ diff --git a/Demo/Demo/macOS/AppDelegate.swift b/Demo/Demo/UI/DemoApp.swift similarity index 54% rename from Demo/Demo/macOS/AppDelegate.swift rename to Demo/Demo/UI/DemoApp.swift index 75157df..358b3e9 100644 --- a/Demo/Demo/macOS/AppDelegate.swift +++ b/Demo/Demo/UI/DemoApp.swift @@ -1,8 +1,8 @@ // -// AppDelegate.swift +// DemoApp.swift // Demo // -// Created by Davide De Rosa on 10/15/17. +// Created by Davide De Rosa on 12/16/23. // Copyright (c) 2023 Davide De Rosa. All rights reserved. // // https://github.com/keeshux @@ -23,25 +23,13 @@ // along with TunnelKit. If not, see . // -import Cocoa -import SwiftyBeaver +import SwiftUI -private let log = SwiftyBeaver.self - -@NSApplicationMain -class AppDelegate: NSObject, NSApplicationDelegate { - - func applicationDidFinishLaunching(_ aNotification: Notification) { - let logDestination = ConsoleDestination() - logDestination.minLevel = .debug - logDestination.format = "$DHH:mm:ss$d $L $N.$F:$l - $M" - log.addDestination(logDestination) - - // Insert code here to initialize your application +@main +struct DemoApp: App { + var body: some Scene { + WindowGroup { + DemoView() + } } - - func applicationWillTerminate(_ aNotification: Notification) { - // Insert code here to tear down your application - } - } diff --git a/Demo/Demo/UI/DemoView.swift b/Demo/Demo/UI/DemoView.swift new file mode 100644 index 0000000..f639396 --- /dev/null +++ b/Demo/Demo/UI/DemoView.swift @@ -0,0 +1,82 @@ +// +// DemoView.swift +// Demo +// +// Created by Davide De Rosa on 12/16/23. +// Copyright (c) 2023 Davide De Rosa. All rights reserved. +// +// https://github.com/keeshux +// +// This file is part of TunnelKit. +// +// TunnelKit is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// TunnelKit is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with TunnelKit. If not, see . +// + +import SwiftUI +import TunnelKitCore +import TunnelKitManager + +struct DemoView: View { + private let vpn = NetworkExtensionVPN() + + private let keychain = Keychain(group: appGroup) + + private let notifier = Notifier() + + @State private var vpnStatus: VPNStatus = .disconnected + + var body: some View { + TabView { + OpenVPNView(vpn: vpn, vpnStatus: vpnStatus, keychain: keychain) + .tabItem { + Text("OpenVPN") + } + + WireGuardView(vpn: vpn, vpnStatus: vpnStatus) + .tabItem { + Text("WireGuard") + } + } + .task { + notifier.didChange = didChangeStatus + notifier.registerNotifications() + await vpn.prepare() + } + } +} + +private extension DemoView { + private func didChangeStatus(_ vpnStatus: VPNStatus) { + self.vpnStatus = vpnStatus + } +} + +extension VPNStatus { + func actionText(for vpnStatus: VPNStatus) -> String { + switch vpnStatus { + case .connected, .connecting: + return "Disconnect" + + case .disconnected: + return "Connect" + + case .disconnecting: + return "Disconnecting" + } + } +} + +#Preview { + DemoView() +} diff --git a/Demo/Demo/UI/Notifier.swift b/Demo/Demo/UI/Notifier.swift new file mode 100644 index 0000000..3502b92 --- /dev/null +++ b/Demo/Demo/UI/Notifier.swift @@ -0,0 +1,70 @@ +// +// Notifier.swift +// Demo +// +// Created by Davide De Rosa on 12/16/23. +// Copyright (c) 2023 Davide De Rosa. All rights reserved. +// +// https://github.com/keeshux +// +// This file is part of TunnelKit. +// +// TunnelKit is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// TunnelKit is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with TunnelKit. If not, see . +// + +import Foundation +import TunnelKitManager + +final class Notifier { + var didChange: ((VPNStatus) -> Void)? + + private var didRegister = false + + init() { + // + } + + deinit { + NotificationCenter.default.removeObserver(self) + } + + func registerNotifications() { + guard !didRegister else { + return + } + NotificationCenter.default.addObserver( + self, + selector: #selector(VPNStatusDidChange(notification:)), + name: VPNNotification.didChangeStatus, + object: nil + ) + NotificationCenter.default.addObserver( + self, + selector: #selector(VPNDidFail(notification:)), + name: VPNNotification.didFail, + object: nil + ) + didRegister = true + } + + @objc private func VPNStatusDidChange(notification: Notification) { + let vpnStatus = notification.vpnStatus + print("VPNStatusDidChange: \(vpnStatus)") + didChange?(vpnStatus) + } + + @objc private func VPNDidFail(notification: Notification) { + print("VPNStatusDidFail: \(notification.vpnError.localizedDescription)") + } +} diff --git a/Demo/Demo/UI/OpenVPNView.swift b/Demo/Demo/UI/OpenVPNView.swift new file mode 100644 index 0000000..01d0709 --- /dev/null +++ b/Demo/Demo/UI/OpenVPNView.swift @@ -0,0 +1,126 @@ +// +// OpenVPNView.swift +// Demo +// +// Created by Davide De Rosa on 12/16/23. +// Copyright (c) 2023 Davide De Rosa. All rights reserved. +// +// https://github.com/keeshux +// +// This file is part of TunnelKit. +// +// TunnelKit is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// TunnelKit is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with TunnelKit. If not, see . +// + +import SwiftUI +import TunnelKitOpenVPN +import TunnelKitManager + +struct OpenVPNView: View { + let vpn: NetworkExtensionVPN + + let vpnStatus: VPNStatus + + let keychain: Keychain + + @State private var server = "nl-free-50" + + @State private var domain = "protonvpn.net" + + @State private var portText = "80" + + @State private var username = "" + + @State private var password = "" + + var body: some View { + List { + formView + buttonView + } + } +} + +private extension OpenVPNView { + var formView: some View { + Section { + TextField("Server", text: $server) + TextField("Domain", text: $domain) + TextField("Port", text: $portText) + TextField("Username", text: $username) + TextField("Password", text: $password) + } + } + + var buttonView: some View { + Section { + Button(vpnStatus.actionText(for: vpnStatus)) { + switch vpnStatus { + case .disconnected: + connect() + + case .connected, .connecting, .disconnecting: + disconnect() + } + } + } + } + + func connect() { + let hostname = ((domain == "") ? server : [server, domain].joined(separator: ".")) + let port = UInt16(portText)! + + let credentials = OpenVPN.Credentials(username, password) + var builder = OpenVPN.DemoConfiguration.make(params: .init( + title: "TunnelKit.OpenVPN", + appGroup: appGroup, + hostname: hostname, + port: port, + socketType: .udp + )) + builder.username = credentials.username + + let passwordReference: Data + do { + passwordReference = try keychain.set(password: credentials.password, for: credentials.username, context: TunnelIdentifier.openVPN) + } catch { + print("Keychain failure: \(error)") + return + } + + let cfg = builder + Task { + var extra = NetworkExtensionExtra() + extra.passwordReference = passwordReference + try await vpn.reconnect( + TunnelIdentifier.openVPN, + configuration: cfg, + extra: extra, + after: .seconds(2) + ) + } + } + + func disconnect() { + Task { + await vpn.disconnect() + } + } +} + +#Preview { + OpenVPNView(vpn: NetworkExtensionVPN(), + vpnStatus: .disconnected, + keychain: Keychain(group: appGroup)) +} diff --git a/Demo/Demo/UI/WireGuardView.swift b/Demo/Demo/UI/WireGuardView.swift new file mode 100644 index 0000000..ed894c4 --- /dev/null +++ b/Demo/Demo/UI/WireGuardView.swift @@ -0,0 +1,112 @@ +// +// WireGuardView.swift +// Demo +// +// Created by Davide De Rosa on 12/16/23. +// Copyright (c) 2023 Davide De Rosa. All rights reserved. +// +// https://github.com/keeshux +// +// This file is part of TunnelKit. +// +// TunnelKit is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// TunnelKit is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with TunnelKit. If not, see . +// + +import SwiftUI +import TunnelKitManager +import TunnelKitWireGuard + +struct WireGuardView: View { + let vpn: NetworkExtensionVPN + + let vpnStatus: VPNStatus + + @State private var clientPrivateKey = "" + + @State private var clientAddress = "192.168.30.2/32" + + @State private var serverPublicKey = "" + + @State private var serverAddress = "" + + @State private var serverPort = "" + + var body: some View { + List { + formView + buttonView + } + } +} + +private extension WireGuardView { + var formView: some View { + Section { + TextField("Client private key", text: $clientPrivateKey) + TextField("Client address", text: $clientAddress) + TextField("Server public key", text: $serverPublicKey) + TextField("Server address", text: $serverAddress) + TextField("Server port", text: $serverPort) + } + } + + var buttonView: some View { + Section { + Button(vpnStatus.actionText(for: vpnStatus)) { + switch vpnStatus { + case .disconnected: + connect() + + case .connected, .connecting, .disconnecting: + disconnect() + } + } + } + } + + func connect() { + guard let cfg = WireGuard.DemoConfiguration.make(params: .init( + title: "TunnelKit.WireGuard", + appGroup: appGroup, + clientPrivateKey: clientPrivateKey, + clientAddress: clientAddress, + serverPublicKey: serverPublicKey, + serverAddress: serverAddress, + serverPort: serverPort + )) else { + print("Configuration incomplete") + return + } + + Task { + try await vpn.reconnect( + TunnelIdentifier.wireGuard, + configuration: cfg, + extra: nil, + after: .seconds(2) + ) + } + } + + func disconnect() { + Task { + await vpn.disconnect() + } + } +} + +#Preview { + WireGuardView(vpn: NetworkExtensionVPN(), + vpnStatus: .disconnected) +} diff --git a/Demo/Demo/iOS/AppDelegate.swift b/Demo/Demo/iOS/AppDelegate.swift deleted file mode 100644 index dce65af..0000000 --- a/Demo/Demo/iOS/AppDelegate.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// AppDelegate.swift -// Demo -// -// Created by Davide De Rosa on 2/11/17. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/keeshux -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// - -import UIKit -import NetworkExtension -import SwiftyBeaver - -private let log = SwiftyBeaver.self - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - let logDestination = ConsoleDestination() - logDestination.minLevel = .debug - logDestination.format = "$DHH:mm:ss$d $L $N.$F:$l - $M" - log.addDestination(logDestination) - - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(_ application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } -} diff --git a/Demo/Demo/iOS/Base.lproj/Main.storyboard b/Demo/Demo/iOS/Base.lproj/Main.storyboard deleted file mode 100644 index d5b2052..0000000 --- a/Demo/Demo/iOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,322 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demo/Demo/iOS/Demo.plist b/Demo/Demo/iOS/Demo.plist deleted file mode 100644 index 91387ee..0000000 --- a/Demo/Demo/iOS/Demo.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 5.0.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Demo/Demo/iOS/OpenVPNViewController.swift b/Demo/Demo/iOS/OpenVPNViewController.swift deleted file mode 100644 index dd6ef35..0000000 --- a/Demo/Demo/iOS/OpenVPNViewController.swift +++ /dev/null @@ -1,196 +0,0 @@ -// -// OpenVPNViewController.swift -// Demo -// -// Created by Davide De Rosa on 2/11/17. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/keeshux -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// - -import UIKit -import TunnelKitCore -import TunnelKitManager -import TunnelKitOpenVPN - -private let appGroup = "group.com.algoritmico.TunnelKit.Demo" - -private let tunnelIdentifier = "com.algoritmico.ios.TunnelKit.Demo.OpenVPN.Tunnel" - -class OpenVPNViewController: UIViewController { - @IBOutlet var textUsername: UITextField! - - @IBOutlet var textPassword: UITextField! - - @IBOutlet var textServer: UITextField! - - @IBOutlet var textDomain: UITextField! - - @IBOutlet var textPort: UITextField! - - @IBOutlet var switchTCP: UISwitch! - - @IBOutlet var buttonConnection: UIButton! - - @IBOutlet var textLog: UITextView! - - private let vpn = NetworkExtensionVPN() - - private var vpnStatus: VPNStatus = .disconnected - - private let keychain = Keychain(group: appGroup) - - private var cfg: OpenVPN.ProviderConfiguration? - - override func viewDidLoad() { - super.viewDidLoad() - - textServer.text = "nl-free-50" - textDomain.text = "protonvpn.net" - textPort.text = "80" - switchTCP.isOn = false - textUsername.text = "" - textPassword.text = "" - - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNStatusDidChange(notification:)), - name: VPNNotification.didChangeStatus, - object: nil - ) - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNDidFail(notification:)), - name: VPNNotification.didFail, - object: nil - ) - - Task { - await vpn.prepare() - } - -// testFetchRef() - } - - @IBAction func connectionClicked(_ sender: Any) { - switch vpnStatus { - case .disconnected: - connect() - - case .connected, .connecting, .disconnecting: - disconnect() - } - } - - @IBAction func tcpClicked(_ sender: Any) { - } - - func connect() { - let server = textServer.text! - let domain = textDomain.text! - let hostname = ((domain == "") ? server : [server, domain].joined(separator: ".")) - let port = UInt16(textPort.text!)! - let socketType: SocketType = switchTCP.isOn ? .tcp : .udp - - let credentials = OpenVPN.Credentials(textUsername.text!, textPassword.text!) - cfg = OpenVPN.DemoConfiguration.make(params: .init( - title: "TunnelKit.OpenVPN", - appGroup: appGroup, - hostname: hostname, - port: port, - socketType: socketType - )) - cfg?.username = credentials.username - - let passwordReference: Data - do { - passwordReference = try keychain.set(password: credentials.password, for: credentials.username, context: tunnelIdentifier) - } catch { - print("Keychain failure: \(error)") - return - } - - Task { - var extra = NetworkExtensionExtra() - extra.passwordReference = passwordReference - try await vpn.reconnect( - tunnelIdentifier, - configuration: cfg!, - extra: extra, - after: .seconds(2) - ) - } - } - - func disconnect() { - Task { - await vpn.disconnect() - } - } - - @IBAction func displayLog() { - guard let cfg = cfg else { - return - } - guard let url = cfg.urlForDebugLog else { - return - } - textLog.text = try? String(contentsOf: url) - } - - func updateButton() { - switch vpnStatus { - case .connected, .connecting: - buttonConnection.setTitle("Disconnect", for: .normal) - - case .disconnected: - buttonConnection.setTitle("Connect", for: .normal) - - case .disconnecting: - buttonConnection.setTitle("Disconnecting", for: .normal) - } - } - - @objc private func VPNStatusDidChange(notification: Notification) { - vpnStatus = notification.vpnStatus - print("VPNStatusDidChange: \(vpnStatus)") - updateButton() - } - - @objc private func VPNDidFail(notification: Notification) { - print("VPNStatusDidFail: \(notification.vpnError.localizedDescription)") - } - -// private func testFetchRef() { -// let keychain = Keychain(group: appGroup) -// let username = "foo" -// let password = "bar" -// -// guard let ref = try? keychain.set(password: password, for: username, context: tunnelIdentifier) else { -// print("Couldn't set password") -// return -// } -// guard let fetchedPassword = try? Keychain.password(forReference: ref) else { -// print("Couldn't fetch password") -// return -// } -// -// print("\(username) -> \(password)") -// print("\(username) -> \(fetchedPassword)") -// } -} diff --git a/Demo/Demo/iOS/WireGuardViewController.swift b/Demo/Demo/iOS/WireGuardViewController.swift deleted file mode 100644 index ff8c5f9..0000000 --- a/Demo/Demo/iOS/WireGuardViewController.swift +++ /dev/null @@ -1,148 +0,0 @@ -// -// WireGuardViewController.swift -// Demo -// -// Created by Davide De Rosa on 11/22/21. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/keeshux -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// - -import UIKit -import TunnelKitManager -import TunnelKitWireGuard - -private let appGroup = "group.com.algoritmico.TunnelKit.Demo" - -private let tunnelIdentifier = "com.algoritmico.ios.TunnelKit.Demo.WireGuard.Tunnel" - -class WireGuardViewController: UIViewController { - @IBOutlet var textClientPrivateKey: UITextField! - - @IBOutlet var textAddress: UITextField! - - @IBOutlet var textServerPublicKey: UITextField! - - @IBOutlet var textServerAddress: UITextField! - - @IBOutlet var textServerPort: UITextField! - - @IBOutlet var buttonConnection: UIButton! - - private let vpn = NetworkExtensionVPN() - - private var vpnStatus: VPNStatus = .disconnected - - override func viewDidLoad() { - super.viewDidLoad() - - textClientPrivateKey.placeholder = "client private key" - textAddress.placeholder = "client address" - textServerPublicKey.placeholder = "server public key" - textServerAddress.placeholder = "server address" - textServerPort.placeholder = "server port" - - textAddress.text = "192.168.30.2/32" - - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNStatusDidChange(notification:)), - name: VPNNotification.didChangeStatus, - object: nil - ) - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNDidFail(notification:)), - name: VPNNotification.didFail, - object: nil - ) - - Task { - await vpn.prepare() - } - } - - @IBAction func connectionClicked(_ sender: Any) { - switch vpnStatus { - case .disconnected: - connect() - - case .connected, .connecting, .disconnecting: - disconnect() - } - } - - func connect() { - let clientPrivateKey = textClientPrivateKey.text! - let clientAddress = textAddress.text! - let serverPublicKey = textServerPublicKey.text! - let serverAddress = textServerAddress.text! - let serverPort = textServerPort.text! - - guard let cfg = WireGuard.DemoConfiguration.make(params: .init( - title: "TunnelKit.WireGuard", - appGroup: appGroup, - clientPrivateKey: clientPrivateKey, - clientAddress: clientAddress, - serverPublicKey: serverPublicKey, - serverAddress: serverAddress, - serverPort: serverPort - )) else { - print("Configuration incomplete") - return - } - - Task { - try await vpn.reconnect( - tunnelIdentifier, - configuration: cfg, - extra: nil, - after: .seconds(2) - ) - } - } - - func disconnect() { - Task { - await vpn.disconnect() - } - } - - func updateButton() { - switch vpnStatus { - case .connected, .connecting: - buttonConnection.setTitle("Disconnect", for: .normal) - - case .disconnected: - buttonConnection.setTitle("Connect", for: .normal) - - case .disconnecting: - buttonConnection.setTitle("Disconnecting", for: .normal) - } - } - - @objc private func VPNStatusDidChange(notification: Notification) { - vpnStatus = notification.vpnStatus - print("VPNStatusDidChange: \(notification.vpnStatus)") - updateButton() - } - - @objc private func VPNDidFail(notification: Notification) { - print("VPNStatusDidFail: \(notification.vpnError.localizedDescription)") - } -} diff --git a/Demo/Demo/macOS/Base.lproj/Main.storyboard b/Demo/Demo/macOS/Base.lproj/Main.storyboard deleted file mode 100644 index 6d45cc8..0000000 --- a/Demo/Demo/macOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,937 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demo/Demo/macOS/Demo.plist b/Demo/Demo/macOS/Demo.plist deleted file mode 100644 index 10175e1..0000000 --- a/Demo/Demo/macOS/Demo.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 5.0.0 - CFBundleVersion - 1 - LSApplicationCategoryType - public.app-category.productivity - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSHumanReadableCopyright - Copyright (c) 2023 Davide De Rosa. All rights reserved. - NSMainStoryboardFile - Main - NSPrincipalClass - NSApplication - - diff --git a/Demo/Demo/macOS/OpenVPNViewController.swift b/Demo/Demo/macOS/OpenVPNViewController.swift deleted file mode 100644 index d504338..0000000 --- a/Demo/Demo/macOS/OpenVPNViewController.swift +++ /dev/null @@ -1,177 +0,0 @@ -// -// OpenVPNViewController.swift -// Demo -// -// Created by Davide De Rosa on 10/15/17. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/keeshux -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// - -import Cocoa -import TunnelKitCore -import TunnelKitManager -import TunnelKitOpenVPN - -private let appGroup = "DTDYD63ZX9.group.com.algoritmico.TunnelKit.Demo" - -private let tunnelIdentifier = "com.algoritmico.macos.TunnelKit.Demo.OpenVPN.Tunnel" - -class OpenVPNViewController: NSViewController { - @IBOutlet var textUsername: NSTextField! - - @IBOutlet var textPassword: NSTextField! - - @IBOutlet var textServer: NSTextField! - - @IBOutlet var textDomain: NSTextField! - - @IBOutlet var textPort: NSTextField! - - @IBOutlet var buttonConnection: NSButton! - - private let vpn = NetworkExtensionVPN() - - private var vpnStatus: VPNStatus = .disconnected - - private let keychain = Keychain(group: appGroup) - - private var cfg: OpenVPN.ProviderConfiguration? - - override func viewDidLoad() { - super.viewDidLoad() - - textServer.stringValue = "nl-free-50" - textDomain.stringValue = "protonvpn.net" - textPort.stringValue = "80" - textUsername.stringValue = "" - textPassword.stringValue = "" - - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNStatusDidChange(notification:)), - name: VPNNotification.didChangeStatus, - object: nil - ) - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNDidFail(notification:)), - name: VPNNotification.didFail, - object: nil - ) - - Task { - await vpn.prepare() - } - -// testFetchRef() - } - - @IBAction func connectionClicked(_ sender: Any) { - switch vpnStatus { - case .disconnected: - connect() - - case .connected, .connecting, .disconnecting: - disconnect() - } - } - - func connect() { - let server = textServer.stringValue - let domain = textDomain.stringValue - let hostname = ((domain == "") ? server : [server, domain].joined(separator: ".")) - let port = UInt16(textPort.stringValue)! - - let credentials = OpenVPN.Credentials(textUsername.stringValue, textPassword.stringValue) - cfg = OpenVPN.DemoConfiguration.make(params: .init( - title: "TunnelKit.OpenVPN", - appGroup: appGroup, - hostname: hostname, - port: port, - socketType: .udp - )) - cfg?.username = credentials.username - - let passwordReference: Data - do { - passwordReference = try keychain.set(password: credentials.password, for: credentials.username, context: tunnelIdentifier) - } catch { - print("Keychain failure: \(error)") - return - } - - Task { - var extra = NetworkExtensionExtra() - extra.passwordReference = passwordReference - try await vpn.reconnect( - tunnelIdentifier, - configuration: cfg!, - extra: extra, - after: .seconds(2) - ) - } - } - - func disconnect() { - Task { - await vpn.disconnect() - } - } - - func updateButton() { - switch vpnStatus { - case .connected, .connecting: - buttonConnection.title = "Disconnect" - - case .disconnected: - buttonConnection.title = "Connect" - - case .disconnecting: - buttonConnection.title = "Disconnecting" - } - } - - @objc private func VPNStatusDidChange(notification: Notification) { - vpnStatus = notification.vpnStatus - print("VPNStatusDidChange: \(vpnStatus)") - updateButton() - } - - @objc private func VPNDidFail(notification: Notification) { - print("VPNStatusDidFail: \(notification.vpnError.localizedDescription)") - } - -// private func testFetchRef() { -// let keychain = Keychain(group: appGroup) -// let username = "foo" -// let password = "bar" -// -// guard let ref = try? keychain.set(password: password, for: username, context: tunnelIdentifier) else { -// print("Couldn't set password") -// return -// } -// guard let fetchedPassword = try? Keychain.password(forReference: ref) else { -// print("Couldn't fetch password") -// return -// } -// -// print("\(username) -> \(password)") -// print("\(username) -> \(fetchedPassword)") -// } -} diff --git a/Demo/Demo/macOS/WireGuardViewController.swift b/Demo/Demo/macOS/WireGuardViewController.swift deleted file mode 100644 index 2b4120b..0000000 --- a/Demo/Demo/macOS/WireGuardViewController.swift +++ /dev/null @@ -1,148 +0,0 @@ -// -// WireGuardViewController.swift -// Demo -// -// Created by Davide De Rosa on 11/22/21. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/keeshux -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// - -import Cocoa -import TunnelKitManager -import TunnelKitWireGuard - -private let appGroup = "DTDYD63ZX9.group.com.algoritmico.TunnelKit.Demo" - -private let tunnelIdentifier = "com.algoritmico.macos.TunnelKit.Demo.WireGuard.Tunnel" - -class WireGuardViewController: NSViewController { - @IBOutlet var textClientPrivateKey: NSTextField! - - @IBOutlet var textAddress: NSTextField! - - @IBOutlet var textServerPublicKey: NSTextField! - - @IBOutlet var textServerAddress: NSTextField! - - @IBOutlet var textServerPort: NSTextField! - - @IBOutlet var buttonConnection: NSButton! - - private let vpn = NetworkExtensionVPN() - - private var vpnStatus: VPNStatus = .disconnected - - override func viewDidLoad() { - super.viewDidLoad() - - textClientPrivateKey.placeholderString = "client private key" - textAddress.placeholderString = "client address" - textServerPublicKey.placeholderString = "server public key" - textServerAddress.placeholderString = "server address" - textServerPort.placeholderString = "server port" - - textAddress.stringValue = "192.168.30.2/32" - - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNStatusDidChange(notification:)), - name: VPNNotification.didChangeStatus, - object: nil - ) - NotificationCenter.default.addObserver( - self, - selector: #selector(VPNDidFail(notification:)), - name: VPNNotification.didFail, - object: nil - ) - - Task { - await vpn.prepare() - } - } - - @IBAction func connectionClicked(_ sender: Any) { - switch vpnStatus { - case .disconnected: - connect() - - case .connected, .connecting, .disconnecting: - disconnect() - } - } - - func connect() { - let clientPrivateKey = textClientPrivateKey.stringValue - let clientAddress = textAddress.stringValue - let serverPublicKey = textServerPublicKey.stringValue - let serverAddress = textServerAddress.stringValue - let serverPort = textServerPort.stringValue - - guard let cfg = WireGuard.DemoConfiguration.make(params: .init( - title: "TunnelKit.WireGuard", - appGroup: appGroup, - clientPrivateKey: clientPrivateKey, - clientAddress: clientAddress, - serverPublicKey: serverPublicKey, - serverAddress: serverAddress, - serverPort: serverPort - )) else { - print("Configuration incomplete") - return - } - - Task { - try await vpn.reconnect( - tunnelIdentifier, - configuration: cfg, - extra: nil, - after: .seconds(2) - ) - } - } - - func disconnect() { - Task { - await vpn.disconnect() - } - } - - func updateButton() { - switch vpnStatus { - case .connected, .connecting: - buttonConnection.title = "Disconnect" - - case .disconnected: - buttonConnection.title = "Connect" - - case .disconnecting: - buttonConnection.title = "Disconnecting" - } - } - - @objc private func VPNStatusDidChange(notification: Notification) { - vpnStatus = notification.vpnStatus - print("VPNStatusDidChange: \(vpnStatus)") - updateButton() - } - - @objc private func VPNDidFail(notification: Notification) { - print("VPNStatusDidFail: \(notification.vpnError.localizedDescription)") - } -} diff --git a/Demo/Demo/tvOS/Assets.xcassets/AccentColor.colorset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json new file mode 100644 index 0000000..de59d88 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json new file mode 100644 index 0000000..de59d88 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 0000000..f47ba43 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,32 @@ +{ + "assets" : [ + { + "filename" : "App Icon - App Store.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "1280x768" + }, + { + "filename" : "App Icon.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "400x240" + }, + { + "filename" : "Top Shelf Image Wide.imageset", + "idiom" : "tv", + "role" : "top-shelf-image-wide", + "size" : "2320x720" + }, + { + "filename" : "Top Shelf Image.imageset", + "idiom" : "tv", + "role" : "top-shelf-image", + "size" : "1920x720" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Demo/tvOS/Assets.xcassets/Contents.json b/Demo/Demo/tvOS/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Demo/tvOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Host/Host.entitlements b/Demo/Demo/tvOS/Demo.entitlements similarity index 54% rename from Demo/Host/Host.entitlements rename to Demo/Demo/tvOS/Demo.entitlements index 52fdfc0..277e3de 100644 --- a/Demo/Host/Host.entitlements +++ b/Demo/Demo/tvOS/Demo.entitlements @@ -2,13 +2,17 @@ + com.apple.developer.networking.networkextension + + packet-tunnel-provider + com.apple.security.application-groups - group.com.algoritmico.TunnelKit + group.com.algoritmico.TunnelKit.Demo keychain-access-groups - $(AppIdentifierPrefix)group.com.algoritmico.TunnelKit + $(AppIdentifierPrefix)group.com.algoritmico.TunnelKit.Demo diff --git a/Demo/Demo/tvOS/DemoTunnel.entitlements b/Demo/Demo/tvOS/DemoTunnel.entitlements new file mode 100644 index 0000000..8694555 --- /dev/null +++ b/Demo/Demo/tvOS/DemoTunnel.entitlements @@ -0,0 +1,18 @@ + + + + + com.apple.developer.networking.networkextension + + packet-tunnel-provider + + com.apple.security.application-groups + + group.com.algoritmico.TunnelKit.Demo + + keychain-access-groups + + $(AppIdentifierPrefix)group.com.algoritmico.TunnelKit.Demo + + + diff --git a/Demo/Host/AppDelegate.swift b/Demo/Host/AppDelegate.swift deleted file mode 100644 index d9d0145..0000000 --- a/Demo/Host/AppDelegate.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// AppDelegate.swift -// TunnelKitHost -// -// Created by Davide De Rosa on 9/24/17. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/passepartoutvpn -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// -// This file incorporates work covered by the following copyright and -// permission notice: -// -// Copyright (c) 2018-Present Private Internet Access -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(_ application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } - -} diff --git a/Demo/Host/Assets.xcassets/AppIcon.appiconset/Contents.json b/Demo/Host/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 1d060ed..0000000 --- a/Demo/Host/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Demo/Host/Base.lproj/LaunchScreen.storyboard b/Demo/Host/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f83f6fd..0000000 --- a/Demo/Host/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demo/Host/Base.lproj/Main.storyboard b/Demo/Host/Base.lproj/Main.storyboard deleted file mode 100644 index 03c13c2..0000000 --- a/Demo/Host/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demo/Host/Info.plist b/Demo/Host/Info.plist deleted file mode 100644 index 91387ee..0000000 --- a/Demo/Host/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 5.0.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Demo/Host/ViewController.swift b/Demo/Host/ViewController.swift deleted file mode 100644 index eb2eb13..0000000 --- a/Demo/Host/ViewController.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// ViewController.swift -// TunnelKitHost -// -// Created by Davide De Rosa on 9/24/17. -// Copyright (c) 2023 Davide De Rosa. All rights reserved. -// -// https://github.com/passepartoutvpn -// -// This file is part of TunnelKit. -// -// TunnelKit is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// TunnelKit is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with TunnelKit. If not, see . -// -// This file incorporates work covered by the following copyright and -// permission notice: -// -// Copyright (c) 2018-Present Private Internet Access -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -import UIKit - -class ViewController: UIViewController { -} diff --git a/Demo/TunnelKit.xcodeproj/project.pbxproj b/Demo/TunnelKit.xcodeproj/project.pbxproj index c2e3052..8633953 100644 --- a/Demo/TunnelKit.xcodeproj/project.pbxproj +++ b/Demo/TunnelKit.xcodeproj/project.pbxproj @@ -3,46 +3,61 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ - 0E05418725A2334500EFC5FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05414B25A231D500EFC5FF /* AppDelegate.swift */; }; - 0E05418825A2334500EFC5FF /* OpenVPNViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05414425A231D500EFC5FF /* OpenVPNViewController.swift */; }; 0E05418925A2334500EFC5FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E05414525A231D500EFC5FF /* Assets.xcassets */; }; - 0E05418A25A2334900EFC5FF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E05414825A231D500EFC5FF /* Main.storyboard */; }; 0E05418B25A2334900EFC5FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E05414625A231D500EFC5FF /* LaunchScreen.storyboard */; }; 0E0541A125A2343500EFC5FF /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; - 0E0541A925A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 0E05419F25A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E0541A925A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E05419F25A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 0E0541D125A2354500EFC5FF /* OpenVPNPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */; }; 0E0541D825A2355000EFC5FF /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413425A231D500EFC5FF /* Configuration.swift */; }; - 0E05425825A2392E00EFC5FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05414125A231D500EFC5FF /* AppDelegate.swift */; }; - 0E05425925A2392E00EFC5FF /* OpenVPNViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413C25A231D500EFC5FF /* OpenVPNViewController.swift */; }; 0E05426125A2393300EFC5FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E05413D25A231D500EFC5FF /* Assets.xcassets */; }; - 0E05426925A2393B00EFC5FF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E05413E25A231D500EFC5FF /* Main.storyboard */; }; 0E05427825A239C600EFC5FF /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; - 0E05428025A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 0E05427725A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E05428025A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E05427725A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 0E0542B925A23A8100EFC5FF /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413425A231D500EFC5FF /* Configuration.swift */; }; 0E0542C225A23A8400EFC5FF /* OpenVPNPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */; }; - 0E1108AC1F77B9F900A92462 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1108AB1F77B9F900A92462 /* AppDelegate.swift */; }; - 0E1108AE1F77B9F900A92462 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1108AD1F77B9F900A92462 /* ViewController.swift */; }; - 0E1108B11F77B9F900A92462 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E1108AF1F77B9F900A92462 /* Main.storyboard */; }; - 0E1108B31F77B9F900A92462 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E1108B21F77B9F900A92462 /* Assets.xcassets */; }; - 0E1108B61F77B9F900A92462 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E1108B41F77B9F900A92462 /* LaunchScreen.storyboard */; }; + 0E0CBA7C2B2DDA81008F1446 /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413425A231D500EFC5FF /* Configuration.swift */; }; + 0E0CBA7D2B2DE79A008F1446 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E9FFE0F2B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E0CBA802B2DE79A008F1446 /* TunnelKitDemoWireGuardTunnel-tvOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E9FFE1E2B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E0CBA892B2E15F4008F1446 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E0CBA882B2E15F4008F1446 /* Notifier.swift */; }; + 0E1178C12B2E1A8B005A8432 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E0CBA882B2E15F4008F1446 /* Notifier.swift */; }; + 0E1178C22B2E1A8C005A8432 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E0CBA882B2E15F4008F1446 /* Notifier.swift */; }; + 0E1178C72B2E1C9C005A8432 /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C42B2E1C9C005A8432 /* DemoView.swift */; }; + 0E1178C82B2E1C9C005A8432 /* OpenVPNView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C52B2E1C9C005A8432 /* OpenVPNView.swift */; }; + 0E1178C92B2E1C9C005A8432 /* WireGuardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C62B2E1C9C005A8432 /* WireGuardView.swift */; }; + 0E1178CC2B2E2B4F005A8432 /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C42B2E1C9C005A8432 /* DemoView.swift */; }; + 0E1178CD2B2E2B4F005A8432 /* OpenVPNView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C52B2E1C9C005A8432 /* OpenVPNView.swift */; }; + 0E1178CE2B2E2B4F005A8432 /* WireGuardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C62B2E1C9C005A8432 /* WireGuardView.swift */; }; + 0E1178CF2B2E2B4F005A8432 /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C42B2E1C9C005A8432 /* DemoView.swift */; }; + 0E1178D02B2E2B4F005A8432 /* OpenVPNView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C52B2E1C9C005A8432 /* OpenVPNView.swift */; }; + 0E1178D12B2E2B4F005A8432 /* WireGuardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E1178C62B2E1C9C005A8432 /* WireGuardView.swift */; }; + 0E1178D42B2E2C69005A8432 /* DemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED1A5EC2B2A6AE400A0EA90 /* DemoApp.swift */; }; + 0E1178D52B2E2C69005A8432 /* DemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED1A5EC2B2A6AE400A0EA90 /* DemoApp.swift */; }; 0E80FA5127396F5F000F5A45 /* TunnelKitOpenVPNAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E80FA5027396F5F000F5A45 /* TunnelKitOpenVPNAppExtension */; }; 0E80FA5327396F66000F5A45 /* TunnelKitOpenVPNAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E80FA5227396F66000F5A45 /* TunnelKitOpenVPNAppExtension */; }; - 0E81EB4C274BACF200E5F2D3 /* WireGuardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E81EB4B274BACF200E5F2D3 /* WireGuardViewController.swift */; }; - 0E81EB4F274BAE0A00E5F2D3 /* WireGuardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E81EB4D274BAE0400E5F2D3 /* WireGuardViewController.swift */; }; 0E81EB51274BB02100E5F2D3 /* TunnelKitWireGuard in Frameworks */ = {isa = PBXBuildFile; productRef = 0E81EB50274BB02100E5F2D3 /* TunnelKitWireGuard */; }; 0E81EB53274BB02600E5F2D3 /* TunnelKitWireGuard in Frameworks */ = {isa = PBXBuildFile; productRef = 0E81EB52274BB02600E5F2D3 /* TunnelKitWireGuard */; }; 0E833A85274BC39C008EA397 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; 0E833A96274BC3B1008EA397 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; 0E833AA3274BC480008EA397 /* TunnelKitWireGuardAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E833AA2274BC480008EA397 /* TunnelKitWireGuardAppExtension */; }; 0E833AA5274BC484008EA397 /* TunnelKitWireGuardAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E833AA4274BC484008EA397 /* TunnelKitWireGuardAppExtension */; }; - 0E833AAA274BC5BA008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 0E833A95274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 0E833AAB274BC5C2008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 0E833A84274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E833AAA274BC5BA008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E833A95274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0E833AAB274BC5C2008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0E833A84274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 0E833AAD274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */; }; 0E833AAE274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */; }; + 0E9FFE072B2D8746002C93D7 /* OpenVPNPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */; }; + 0E9FFE092B2D8746002C93D7 /* TunnelKitOpenVPNAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E9FFE052B2D8746002C93D7 /* TunnelKitOpenVPNAppExtension */; }; + 0E9FFE0A2B2D8746002C93D7 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; + 0E9FFE162B2D8750002C93D7 /* WireGuardPacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */; }; + 0E9FFE182B2D8750002C93D7 /* TunnelKitWireGuardAppExtension in Frameworks */ = {isa = PBXBuildFile; productRef = 0E9FFE142B2D8750002C93D7 /* TunnelKitWireGuardAppExtension */; }; + 0E9FFE192B2D8750002C93D7 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */; }; + 0E9FFE252B2D88BD002C93D7 /* DemoTunnel.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = 0E9FFE242B2D88BD002C93D7 /* DemoTunnel.entitlements */; }; + 0ED1A5ED2B2A6AE400A0EA90 /* DemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED1A5EC2B2A6AE400A0EA90 /* DemoApp.swift */; }; + 0ED1A5F12B2A6AE600A0EA90 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0ED1A5F02B2A6AE600A0EA90 /* Assets.xcassets */; }; + 0ED1A5F92B2A6B7C00A0EA90 /* TunnelKitOpenVPN in Frameworks */ = {isa = PBXBuildFile; productRef = 0ED1A5F82B2A6B7C00A0EA90 /* TunnelKitOpenVPN */; }; + 0ED1A5FB2B2A6B7C00A0EA90 /* TunnelKitWireGuard in Frameworks */ = {isa = PBXBuildFile; productRef = 0ED1A5FA2B2A6B7C00A0EA90 /* TunnelKitWireGuard */; }; 0EFD5B312727250500C7D5FD /* TunnelKitOpenVPN in Frameworks */ = {isa = PBXBuildFile; productRef = 0EFD5B302727250500C7D5FD /* TunnelKitOpenVPN */; }; 0EFD5B332727250B00C7D5FD /* TunnelKitOpenVPN in Frameworks */ = {isa = PBXBuildFile; productRef = 0EFD5B322727250B00C7D5FD /* TunnelKitOpenVPN */; }; /* End PBXBuildFile section */ @@ -62,6 +77,20 @@ remoteGlobalIDString = 0E05427625A239C600EFC5FF; remoteInfo = Tunnel; }; + 0E0CBA7E2B2DE79A008F1446 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0E17D7F01F730D9F009EE129 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0E9FFE042B2D8746002C93D7; + remoteInfo = "TunnelKitDemoOpenVPNTunnel-tvOS"; + }; + 0E0CBA812B2DE79A008F1446 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0E17D7F01F730D9F009EE129 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0E9FFE112B2D8750002C93D7; + remoteInfo = "TunnelKitDemoWireGuardTunnel-tvOS"; + }; 0E833A8B274BC39C008EA397 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0E17D7F01F730D9F009EE129 /* Project object */; @@ -90,31 +119,38 @@ remoteGlobalIDString = 0EDD211D274BB4CF006833D1; remoteInfo = "TunnelKitDemoWireGuardKitGo-iOS"; }; + 0E9FFE262B2D89C4002C93D7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0E17D7F01F730D9F009EE129 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0E9FFE002B2D8717002C93D7; + remoteInfo = "TunnelKitDemoWireGuardKitGo-tvOS"; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - 0E0541AD25A2343500EFC5FF /* Embed App Extensions */ = { + 0E0541AD25A2343500EFC5FF /* Embed Foundation Extensions */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 13; files = ( - 0E833AAB274BC5C2008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex in Embed App Extensions */, - 0E0541A925A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex in Embed App Extensions */, + 0E833AAB274BC5C2008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex in Embed Foundation Extensions */, + 0E0541A925A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex in Embed Foundation Extensions */, ); - name = "Embed App Extensions"; + name = "Embed Foundation Extensions"; runOnlyForDeploymentPostprocessing = 0; }; - 0E05428425A239C600EFC5FF /* Embed App Extensions */ = { + 0E05428425A239C600EFC5FF /* Embed Foundation Extensions */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 13; files = ( - 0E833AAA274BC5BA008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex in Embed App Extensions */, - 0E05428025A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex in Embed App Extensions */, + 0E833AAA274BC5BA008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex in Embed Foundation Extensions */, + 0E05428025A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex in Embed Foundation Extensions */, ); - name = "Embed App Extensions"; + name = "Embed Foundation Extensions"; runOnlyForDeploymentPostprocessing = 0; }; 0E05438525A240E400EFC5FF /* Embed Frameworks */ = { @@ -137,67 +173,51 @@ name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; - 0ECAF84C246697DA00D8266A /* Embed Frameworks */ = { + 0E0CBA832B2DE79A008F1446 /* Embed Foundation Extensions */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; - dstSubfolderSpec = 10; + dstSubfolderSpec = 13; files = ( + 0E0CBA7D2B2DE79A008F1446 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex in Embed Foundation Extensions */, + 0E0CBA802B2DE79A008F1446 /* TunnelKitDemoWireGuardTunnel-tvOS.appex in Embed Foundation Extensions */, ); - name = "Embed Frameworks"; + name = "Embed Foundation Extensions"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 0E05413025A231D500EFC5FF /* DemoTunnel.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DemoTunnel.entitlements; sourceTree = ""; }; - 0E05413225A231D500EFC5FF /* DemoTunnel.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = DemoTunnel.plist; sourceTree = ""; }; 0E05413425A231D500EFC5FF /* Configuration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Configuration.swift; sourceTree = ""; }; 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenVPNPacketTunnelProvider.swift; sourceTree = ""; }; 0E05413925A231D500EFC5FF /* DemoTunnel.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DemoTunnel.entitlements; sourceTree = ""; }; - 0E05413C25A231D500EFC5FF /* OpenVPNViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenVPNViewController.swift; sourceTree = ""; }; 0E05413D25A231D500EFC5FF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 0E05413F25A231D500EFC5FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 0E05414025A231D500EFC5FF /* Demo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Demo.entitlements; sourceTree = ""; }; - 0E05414125A231D500EFC5FF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 0E05414225A231D500EFC5FF /* Demo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Demo.plist; sourceTree = ""; }; - 0E05414425A231D500EFC5FF /* OpenVPNViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenVPNViewController.swift; sourceTree = ""; }; 0E05414525A231D500EFC5FF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 0E05414725A231D500EFC5FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 0E05414925A231D500EFC5FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 0E05414A25A231D500EFC5FF /* Demo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Demo.entitlements; sourceTree = ""; }; - 0E05414B25A231D500EFC5FF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 0E05414C25A231D500EFC5FF /* Demo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Demo.plist; sourceTree = ""; }; 0E05416925A232FD00EFC5FF /* TunnelKitDemo-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TunnelKitDemo-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 0E05419F25A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoOpenVPNTunnel-iOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; }; 0E05422C25A236EB00EFC5FF /* TunnelKitDemo-macOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TunnelKitDemo-macOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 0E05427725A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoOpenVPNTunnel-macOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; - 0E1108A91F77B9F900A92462 /* TunnelKitHost.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TunnelKitHost.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 0E1108AB1F77B9F900A92462 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 0E1108AD1F77B9F900A92462 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 0E1108B01F77B9F900A92462 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 0E1108B21F77B9F900A92462 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 0E1108B51F77B9F900A92462 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 0E1108B71F77B9F900A92462 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0E0CBA882B2E15F4008F1446 /* Notifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notifier.swift; sourceTree = ""; }; + 0E1178C42B2E1C9C005A8432 /* DemoView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DemoView.swift; sourceTree = ""; }; + 0E1178C52B2E1C9C005A8432 /* OpenVPNView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenVPNView.swift; sourceTree = ""; }; + 0E1178C62B2E1C9C005A8432 /* WireGuardView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WireGuardView.swift; sourceTree = ""; }; 0E26B05627272767008FB1E7 /* tunnelkit */ = {isa = PBXFileReference; lastKnownFileType = folder; name = tunnelkit; path = ..; sourceTree = ""; }; - 0E411B9F2271FA3300E0852C /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libresolv.tbd; sourceTree = DEVELOPER_DIR; }; 0E411BA12271FA3C00E0852C /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; }; - 0E81EB4B274BACF200E5F2D3 /* WireGuardViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WireGuardViewController.swift; sourceTree = ""; }; - 0E81EB4D274BAE0400E5F2D3 /* WireGuardViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WireGuardViewController.swift; sourceTree = ""; }; 0E833A84274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoWireGuardTunnel-iOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 0E833A95274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoWireGuardTunnel-macOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WireGuardPacketTunnelProvider.swift; sourceTree = ""; }; - 0E85A25B202CCA3D0059E9F9 /* Host.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Host.entitlements; sourceTree = ""; }; - 44612F27B9EF890AF8B926DB /* Pods_ios_TunnelKit_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ios_TunnelKit_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 488FA71CA2DC38D2FDF7D1D8 /* Pods_ios_TunnelKitDemoTunnel_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ios_TunnelKitDemoTunnel_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 4EF702DD650A65FCBA51506A /* Pods_macos_TunnelKit_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_macos_TunnelKit_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 501B04C95D9A457FFA483C3B /* Pods_macos_TunnelKitDemo_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_macos_TunnelKitDemo_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A49801900FA52CE67047623B /* Pods_macos_TunnelKitDemoTunnel_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_macos_TunnelKitDemoTunnel_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - B24169970F957D36C9D0765C /* Pods_ios_TunnelKitDemo_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ios_TunnelKitDemo_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - C34F78A0C56932A2127E6C81 /* Pods_ios_TunnelKitTests_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ios_TunnelKitTests_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D383BA02D6881FDBEF55562A /* Pods_macos_TunnelKitTests_macOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_macos_TunnelKitTests_macOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D3B8B90F61D2F5537A5C0691 /* Pods_ios_TunnelKitHost.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ios_TunnelKitHost.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 0E9FFDFF2B2CB8FB002C93D7 /* Demo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Demo.entitlements; sourceTree = ""; }; + 0E9FFE0F2B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoOpenVPNTunnel-tvOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0E9FFE1E2B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "TunnelKitDemoWireGuardTunnel-tvOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0E9FFE242B2D88BD002C93D7 /* DemoTunnel.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DemoTunnel.entitlements; sourceTree = ""; }; + 0ED1A5EA2B2A6AE400A0EA90 /* TunnelKitDemo-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TunnelKitDemo-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0ED1A5EC2B2A6AE400A0EA90 /* DemoApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoApp.swift; sourceTree = ""; }; + 0ED1A5F02B2A6AE600A0EA90 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -237,13 +257,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0E1108A61F77B9F900A92462 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 0E833A81274BC39C008EA397 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -262,6 +275,33 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0E9FFE082B2D8746002C93D7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E9FFE092B2D8746002C93D7 /* TunnelKitOpenVPNAppExtension in Frameworks */, + 0E9FFE0A2B2D8746002C93D7 /* NetworkExtension.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0E9FFE172B2D8750002C93D7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E9FFE182B2D8750002C93D7 /* TunnelKitWireGuardAppExtension in Frameworks */, + 0E9FFE192B2D8750002C93D7 /* NetworkExtension.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0ED1A5E72B2A6AE400A0EA90 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0ED1A5FB2B2A6B7C00A0EA90 /* TunnelKitWireGuard in Frameworks */, + 0ED1A5F92B2A6B7C00A0EA90 /* TunnelKitOpenVPN in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -270,10 +310,9 @@ children = ( 0E05414325A231D500EFC5FF /* iOS */, 0E05413B25A231D500EFC5FF /* macOS */, - 0E05413225A231D500EFC5FF /* DemoTunnel.plist */, - 0E05413425A231D500EFC5FF /* Configuration.swift */, - 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */, - 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */, + 0ED1A5EB2B2A6AE400A0EA90 /* tvOS */, + 0E1178C32B2E1C62005A8432 /* UI */, + 0E1178D22B2E2B91005A8432 /* Tunnel */, ); path = Demo; sourceTree = ""; @@ -283,12 +322,7 @@ children = ( 0E05414025A231D500EFC5FF /* Demo.entitlements */, 0E05413025A231D500EFC5FF /* DemoTunnel.entitlements */, - 0E05414225A231D500EFC5FF /* Demo.plist */, - 0E05414125A231D500EFC5FF /* AppDelegate.swift */, - 0E05413C25A231D500EFC5FF /* OpenVPNViewController.swift */, - 0E81EB4D274BAE0400E5F2D3 /* WireGuardViewController.swift */, 0E05413D25A231D500EFC5FF /* Assets.xcassets */, - 0E05413E25A231D500EFC5FF /* Main.storyboard */, ); path = macOS; sourceTree = ""; @@ -298,29 +332,32 @@ children = ( 0E05414A25A231D500EFC5FF /* Demo.entitlements */, 0E05413925A231D500EFC5FF /* DemoTunnel.entitlements */, - 0E05414C25A231D500EFC5FF /* Demo.plist */, - 0E05414B25A231D500EFC5FF /* AppDelegate.swift */, - 0E05414425A231D500EFC5FF /* OpenVPNViewController.swift */, - 0E81EB4B274BACF200E5F2D3 /* WireGuardViewController.swift */, 0E05414525A231D500EFC5FF /* Assets.xcassets */, 0E05414625A231D500EFC5FF /* LaunchScreen.storyboard */, - 0E05414825A231D500EFC5FF /* Main.storyboard */, ); path = iOS; sourceTree = ""; }; - 0E1108AA1F77B9F900A92462 /* Host */ = { + 0E1178C32B2E1C62005A8432 /* UI */ = { isa = PBXGroup; children = ( - 0E85A25B202CCA3D0059E9F9 /* Host.entitlements */, - 0E1108AB1F77B9F900A92462 /* AppDelegate.swift */, - 0E1108AD1F77B9F900A92462 /* ViewController.swift */, - 0E1108AF1F77B9F900A92462 /* Main.storyboard */, - 0E1108B21F77B9F900A92462 /* Assets.xcassets */, - 0E1108B41F77B9F900A92462 /* LaunchScreen.storyboard */, - 0E1108B71F77B9F900A92462 /* Info.plist */, + 0E05413425A231D500EFC5FF /* Configuration.swift */, + 0ED1A5EC2B2A6AE400A0EA90 /* DemoApp.swift */, + 0E1178C42B2E1C9C005A8432 /* DemoView.swift */, + 0E0CBA882B2E15F4008F1446 /* Notifier.swift */, + 0E1178C52B2E1C9C005A8432 /* OpenVPNView.swift */, + 0E1178C62B2E1C9C005A8432 /* WireGuardView.swift */, ); - path = Host; + path = UI; + sourceTree = ""; + }; + 0E1178D22B2E2B91005A8432 /* Tunnel */ = { + isa = PBXGroup; + children = ( + 0E05413825A231D500EFC5FF /* OpenVPNPacketTunnelProvider.swift */, + 0E833AAC274BC64F008EA397 /* WireGuardPacketTunnelProvider.swift */, + ); + path = Tunnel; sourceTree = ""; }; 0E17D7EF1F730D9F009EE129 = { @@ -328,7 +365,6 @@ children = ( 0EFD5B28272723F000C7D5FD /* Packages */, 0E05412B25A231D500EFC5FF /* Demo */, - 0E1108AA1F77B9F900A92462 /* Host */, 0E17D7FA1F730D9F009EE129 /* Products */, 1B27D1F0B446D5907FAF40E1 /* Frameworks */, ); @@ -337,17 +373,29 @@ 0E17D7FA1F730D9F009EE129 /* Products */ = { isa = PBXGroup; children = ( - 0E1108A91F77B9F900A92462 /* TunnelKitHost.app */, 0E05416925A232FD00EFC5FF /* TunnelKitDemo-iOS.app */, 0E05419F25A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS.appex */, 0E05422C25A236EB00EFC5FF /* TunnelKitDemo-macOS.app */, 0E05427725A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex */, 0E833A84274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS.appex */, 0E833A95274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex */, + 0ED1A5EA2B2A6AE400A0EA90 /* TunnelKitDemo-tvOS.app */, + 0E9FFE0F2B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex */, + 0E9FFE1E2B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS.appex */, ); name = Products; sourceTree = ""; }; + 0ED1A5EB2B2A6AE400A0EA90 /* tvOS */ = { + isa = PBXGroup; + children = ( + 0E9FFDFF2B2CB8FB002C93D7 /* Demo.entitlements */, + 0E9FFE242B2D88BD002C93D7 /* DemoTunnel.entitlements */, + 0ED1A5F02B2A6AE600A0EA90 /* Assets.xcassets */, + ); + path = tvOS; + sourceTree = ""; + }; 0EFD5B28272723F000C7D5FD /* Packages */ = { isa = PBXGroup; children = ( @@ -359,18 +407,8 @@ 1B27D1F0B446D5907FAF40E1 /* Frameworks */ = { isa = PBXGroup; children = ( - 0E411B9F2271FA3300E0852C /* libresolv.tbd */, 0E411BA12271FA3C00E0852C /* libresolv.tbd */, 0E0541A025A2343500EFC5FF /* NetworkExtension.framework */, - 44612F27B9EF890AF8B926DB /* Pods_ios_TunnelKit_iOS.framework */, - D3B8B90F61D2F5537A5C0691 /* Pods_ios_TunnelKitHost.framework */, - C34F78A0C56932A2127E6C81 /* Pods_ios_TunnelKitTests_iOS.framework */, - 4EF702DD650A65FCBA51506A /* Pods_macos_TunnelKit_macOS.framework */, - D383BA02D6881FDBEF55562A /* Pods_macos_TunnelKitTests_macOS.framework */, - B24169970F957D36C9D0765C /* Pods_ios_TunnelKitDemo_iOS.framework */, - 488FA71CA2DC38D2FDF7D1D8 /* Pods_ios_TunnelKitDemoTunnel_iOS.framework */, - 501B04C95D9A457FFA483C3B /* Pods_macos_TunnelKitDemo_macOS.framework */, - A49801900FA52CE67047623B /* Pods_macos_TunnelKitDemoTunnel_macOS.framework */, ); name = Frameworks; sourceTree = ""; @@ -391,6 +429,66 @@ name = "TunnelKitDemoWireGuardKitGo-macOS"; passBuildSettingsInEnvironment = 1; productName = "TunnelKitDemoWireGuardKitGo-macOS"; + productSettingsXML = " + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + +"; + }; + 0E9FFE002B2D8717002C93D7 /* TunnelKitDemoWireGuardKitGo-tvOS */ = { + isa = PBXLegacyTarget; + buildArgumentsString = "$(ACTION)"; + buildConfigurationList = 0E9FFE012B2D8717002C93D7 /* Build configuration list for PBXLegacyTarget "TunnelKitDemoWireGuardKitGo-tvOS" */; + buildPhases = ( + ); + buildToolPath = "$(PROJECT_DIR)/../Scripts/build_wireguard_go_bridge.sh"; + buildWorkingDirectory = ""; + dependencies = ( + ); + name = "TunnelKitDemoWireGuardKitGo-tvOS"; + passBuildSettingsInEnvironment = 1; + productName = "TunnelKitDemoWireGuardKitGo-macOS"; + productSettingsXML = " + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + +"; }; 0EDD211D274BB4CF006833D1 /* TunnelKitDemoWireGuardKitGo-iOS */ = { isa = PBXLegacyTarget; @@ -405,6 +503,29 @@ name = "TunnelKitDemoWireGuardKitGo-iOS"; passBuildSettingsInEnvironment = 1; productName = "TunnelKitDemoWireGuardKitGo-iOS"; + productSettingsXML = " + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + +"; }; /* End PBXLegacyTarget section */ @@ -416,7 +537,7 @@ 0E05416525A232FD00EFC5FF /* Sources */, 0E05416625A232FD00EFC5FF /* Frameworks */, 0E05416725A232FD00EFC5FF /* Resources */, - 0E0541AD25A2343500EFC5FF /* Embed App Extensions */, + 0E0541AD25A2343500EFC5FF /* Embed Foundation Extensions */, 0E05438525A240E400EFC5FF /* Embed Frameworks */, 0EB5A56B29F1C9C8005313B3 /* SwiftLint */, ); @@ -462,7 +583,7 @@ 0E05422825A236EB00EFC5FF /* Sources */, 0E05422925A236EB00EFC5FF /* Frameworks */, 0E05422A25A236EB00EFC5FF /* Resources */, - 0E05428425A239C600EFC5FF /* Embed App Extensions */, + 0E05428425A239C600EFC5FF /* Embed Foundation Extensions */, 0E05438825A240E900EFC5FF /* Embed Frameworks */, 0EB5A56A29F1C8FC005313B3 /* SwiftLint */, ); @@ -501,24 +622,6 @@ productReference = 0E05427725A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS.appex */; productType = "com.apple.product-type.app-extension"; }; - 0E1108A81F77B9F900A92462 /* TunnelKitHost */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0E1108B81F77B9F900A92462 /* Build configuration list for PBXNativeTarget "TunnelKitHost" */; - buildPhases = ( - 0E1108A51F77B9F900A92462 /* Sources */, - 0E1108A61F77B9F900A92462 /* Frameworks */, - 0E1108A71F77B9F900A92462 /* Resources */, - 0ECAF84C246697DA00D8266A /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = TunnelKitHost; - productName = PIATunnelHost; - productReference = 0E1108A91F77B9F900A92462 /* TunnelKitHost.app */; - productType = "com.apple.product-type.application"; - }; 0E833A83274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS */ = { isa = PBXNativeTarget; buildConfigurationList = 0E833A8E274BC39C008EA397 /* Build configuration list for PBXNativeTarget "TunnelKitDemoWireGuardTunnel-iOS" */; @@ -561,14 +664,81 @@ productReference = 0E833A95274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS.appex */; productType = "com.apple.product-type.app-extension"; }; + 0E9FFE042B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0E9FFE0C2B2D8746002C93D7 /* Build configuration list for PBXNativeTarget "TunnelKitDemoOpenVPNTunnel-tvOS" */; + buildPhases = ( + 0E9FFE062B2D8746002C93D7 /* Sources */, + 0E9FFE082B2D8746002C93D7 /* Frameworks */, + 0E9FFE0B2B2D8746002C93D7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "TunnelKitDemoOpenVPNTunnel-tvOS"; + packageProductDependencies = ( + 0E9FFE052B2D8746002C93D7 /* TunnelKitOpenVPNAppExtension */, + ); + productName = Tunnel; + productReference = 0E9FFE0F2B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS.appex */; + productType = "com.apple.product-type.app-extension"; + }; + 0E9FFE112B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0E9FFE1B2B2D8750002C93D7 /* Build configuration list for PBXNativeTarget "TunnelKitDemoWireGuardTunnel-tvOS" */; + buildPhases = ( + 0E9FFE152B2D8750002C93D7 /* Sources */, + 0E9FFE172B2D8750002C93D7 /* Frameworks */, + 0E9FFE1A2B2D8750002C93D7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 0E9FFE272B2D89C4002C93D7 /* PBXTargetDependency */, + ); + name = "TunnelKitDemoWireGuardTunnel-tvOS"; + packageProductDependencies = ( + 0E9FFE142B2D8750002C93D7 /* TunnelKitWireGuardAppExtension */, + ); + productName = "TunnelKitDemoWireGuardTunnel-macOS"; + productReference = 0E9FFE1E2B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS.appex */; + productType = "com.apple.product-type.app-extension"; + }; + 0ED1A5E92B2A6AE400A0EA90 /* TunnelKitDemo-tvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0ED1A5F52B2A6AE600A0EA90 /* Build configuration list for PBXNativeTarget "TunnelKitDemo-tvOS" */; + buildPhases = ( + 0ED1A5E62B2A6AE400A0EA90 /* Sources */, + 0ED1A5E72B2A6AE400A0EA90 /* Frameworks */, + 0ED1A5E82B2A6AE400A0EA90 /* Resources */, + 0E0CBA832B2DE79A008F1446 /* Embed Foundation Extensions */, + 0E0CBA842B2DE948008F1446 /* SwiftLint */, + ); + buildRules = ( + ); + dependencies = ( + 0E0CBA7F2B2DE79A008F1446 /* PBXTargetDependency */, + 0E0CBA822B2DE79A008F1446 /* PBXTargetDependency */, + ); + name = "TunnelKitDemo-tvOS"; + packageProductDependencies = ( + 0ED1A5F82B2A6B7C00A0EA90 /* TunnelKitOpenVPN */, + 0ED1A5FA2B2A6B7C00A0EA90 /* TunnelKitWireGuard */, + ); + productName = "TunnelKitDemo-tvOS"; + productReference = 0ED1A5EA2B2A6AE400A0EA90 /* TunnelKitDemo-tvOS.app */; + productType = "com.apple.product-type.application"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 0E17D7F01F730D9F009EE129 /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 1310; - LastUpgradeCheck = 1230; + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 1510; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = "Davide De Rosa"; TargetAttributes = { 0E05416825A232FD00EFC5FF = { @@ -587,19 +757,6 @@ CreatedOnToolsVersion = 12.3; ProvisioningStyle = Automatic; }; - 0E1108A81F77B9F900A92462 = { - CreatedOnToolsVersion = 9.0; - LastSwiftMigration = 1020; - ProvisioningStyle = Automatic; - SystemCapabilities = { - com.apple.ApplicationGroups.iOS = { - enabled = 1; - }; - com.apple.Keychain = { - enabled = 1; - }; - }; - }; 0E81EB54274BB0D000E5F2D3 = { CreatedOnToolsVersion = 13.1; }; @@ -611,6 +768,9 @@ CreatedOnToolsVersion = 13.1; LastSwiftMigration = 1310; }; + 0ED1A5E92B2A6AE400A0EA90 = { + CreatedOnToolsVersion = 15.1; + }; 0EDD211D274BB4CF006833D1 = { CreatedOnToolsVersion = 13.1; }; @@ -629,15 +789,18 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 0E1108A81F77B9F900A92462 /* TunnelKitHost */, 0E05416825A232FD00EFC5FF /* TunnelKitDemo-iOS */, 0E05422B25A236EB00EFC5FF /* TunnelKitDemo-macOS */, + 0ED1A5E92B2A6AE400A0EA90 /* TunnelKitDemo-tvOS */, 0E05419E25A2343500EFC5FF /* TunnelKitDemoOpenVPNTunnel-iOS */, 0E05427625A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS */, + 0E9FFE042B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS */, 0E833A83274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS */, 0E833A94274BC3B1008EA397 /* TunnelKitDemoWireGuardTunnel-macOS */, + 0E9FFE112B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS */, 0EDD211D274BB4CF006833D1 /* TunnelKitDemoWireGuardKitGo-iOS */, 0E81EB54274BB0D000E5F2D3 /* TunnelKitDemoWireGuardKitGo-macOS */, + 0E9FFE002B2D8717002C93D7 /* TunnelKitDemoWireGuardKitGo-tvOS */, ); }; /* End PBXProject section */ @@ -647,7 +810,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 0E05418A25A2334900EFC5FF /* Main.storyboard in Resources */, 0E05418B25A2334900EFC5FF /* LaunchScreen.storyboard in Resources */, 0E05418925A2334500EFC5FF /* Assets.xcassets in Resources */, ); @@ -665,7 +827,6 @@ buildActionMask = 2147483647; files = ( 0E05426125A2393300EFC5FF /* Assets.xcassets in Resources */, - 0E05426925A2393B00EFC5FF /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -676,16 +837,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0E1108A71F77B9F900A92462 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0E1108B61F77B9F900A92462 /* LaunchScreen.storyboard in Resources */, - 0E1108B31F77B9F900A92462 /* Assets.xcassets in Resources */, - 0E1108B11F77B9F900A92462 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 0E833A82274BC39C008EA397 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -700,9 +851,50 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0E9FFE0B2B2D8746002C93D7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0E9FFE1A2B2D8750002C93D7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0ED1A5E82B2A6AE400A0EA90 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E9FFE252B2D88BD002C93D7 /* DemoTunnel.entitlements in Resources */, + 0ED1A5F12B2A6AE600A0EA90 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 0E0CBA842B2DE948008F1446 /* SwiftLint */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = SwiftLint; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "PATH=\"/opt/homebrew/bin:${PATH}\"\nif which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n"; + }; 0EB5A56A29F1C8FC005313B3 /* SwiftLint */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -746,10 +938,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 0E1178C22B2E1A8C005A8432 /* Notifier.swift in Sources */, 0E0541D825A2355000EFC5FF /* Configuration.swift in Sources */, - 0E81EB4C274BACF200E5F2D3 /* WireGuardViewController.swift in Sources */, - 0E05418825A2334500EFC5FF /* OpenVPNViewController.swift in Sources */, - 0E05418725A2334500EFC5FF /* AppDelegate.swift in Sources */, + 0E1178D52B2E2C69005A8432 /* DemoApp.swift in Sources */, + 0E1178CF2B2E2B4F005A8432 /* DemoView.swift in Sources */, + 0E1178D12B2E2B4F005A8432 /* WireGuardView.swift in Sources */, + 0E1178D02B2E2B4F005A8432 /* OpenVPNView.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -765,10 +959,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 0E1178C12B2E1A8B005A8432 /* Notifier.swift in Sources */, 0E0542B925A23A8100EFC5FF /* Configuration.swift in Sources */, - 0E81EB4F274BAE0A00E5F2D3 /* WireGuardViewController.swift in Sources */, - 0E05425825A2392E00EFC5FF /* AppDelegate.swift in Sources */, - 0E05425925A2392E00EFC5FF /* OpenVPNViewController.swift in Sources */, + 0E1178D42B2E2C69005A8432 /* DemoApp.swift in Sources */, + 0E1178CC2B2E2B4F005A8432 /* DemoView.swift in Sources */, + 0E1178CE2B2E2B4F005A8432 /* WireGuardView.swift in Sources */, + 0E1178CD2B2E2B4F005A8432 /* OpenVPNView.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -780,15 +976,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0E1108A51F77B9F900A92462 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0E1108AE1F77B9F900A92462 /* ViewController.swift in Sources */, - 0E1108AC1F77B9F900A92462 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 0E833A80274BC39C008EA397 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -805,6 +992,35 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0E9FFE062B2D8746002C93D7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E9FFE072B2D8746002C93D7 /* OpenVPNPacketTunnelProvider.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0E9FFE152B2D8750002C93D7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E9FFE162B2D8750002C93D7 /* WireGuardPacketTunnelProvider.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0ED1A5E62B2A6AE400A0EA90 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0E0CBA7C2B2DDA81008F1446 /* Configuration.swift in Sources */, + 0E0CBA892B2E15F4008F1446 /* Notifier.swift in Sources */, + 0E1178C72B2E1C9C005A8432 /* DemoView.swift in Sources */, + 0ED1A5ED2B2A6AE400A0EA90 /* DemoApp.swift in Sources */, + 0E1178C82B2E1C9C005A8432 /* OpenVPNView.swift in Sources */, + 0E1178C92B2E1C9C005A8432 /* WireGuardView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -818,6 +1034,16 @@ target = 0E05427625A239C600EFC5FF /* TunnelKitDemoOpenVPNTunnel-macOS */; targetProxy = 0E05427E25A239C600EFC5FF /* PBXContainerItemProxy */; }; + 0E0CBA7F2B2DE79A008F1446 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0E9FFE042B2D8746002C93D7 /* TunnelKitDemoOpenVPNTunnel-tvOS */; + targetProxy = 0E0CBA7E2B2DE79A008F1446 /* PBXContainerItemProxy */; + }; + 0E0CBA822B2DE79A008F1446 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0E9FFE112B2D8750002C93D7 /* TunnelKitDemoWireGuardTunnel-tvOS */; + targetProxy = 0E0CBA812B2DE79A008F1446 /* PBXContainerItemProxy */; + }; 0E833A8C274BC39C008EA397 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 0E833A83274BC39C008EA397 /* TunnelKitDemoWireGuardTunnel-iOS */; @@ -838,17 +1064,14 @@ target = 0EDD211D274BB4CF006833D1 /* TunnelKitDemoWireGuardKitGo-iOS */; targetProxy = 0E833AA8274BC49B008EA397 /* PBXContainerItemProxy */; }; + 0E9FFE272B2D89C4002C93D7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0E9FFE002B2D8717002C93D7 /* TunnelKitDemoWireGuardKitGo-tvOS */; + targetProxy = 0E9FFE262B2D89C4002C93D7 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ - 0E05413E25A231D500EFC5FF /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0E05413F25A231D500EFC5FF /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; 0E05414625A231D500EFC5FF /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( @@ -857,30 +1080,6 @@ name = LaunchScreen.storyboard; sourceTree = ""; }; - 0E05414825A231D500EFC5FF /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0E05414925A231D500EFC5FF /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 0E1108AF1F77B9F900A92462 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0E1108B01F77B9F900A92462 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 0E1108B41F77B9F900A92462 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 0E1108B51F77B9F900A92462 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -893,7 +1092,7 @@ CODE_SIGN_ENTITLEMENTS = Demo/iOS/Demo.entitlements; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = DTDYD63ZX9; - INFOPLIST_FILE = "$(SRCROOT)/Demo/iOS/Demo.plist"; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -915,7 +1114,7 @@ CODE_SIGN_ENTITLEMENTS = Demo/iOS/Demo.entitlements; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = DTDYD63ZX9; - INFOPLIST_FILE = "$(SRCROOT)/Demo/iOS/Demo.plist"; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -934,6 +1133,7 @@ CODE_SIGN_ENTITLEMENTS = Demo/iOS/DemoTunnel.entitlements; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = DTDYD63ZX9; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -942,7 +1142,7 @@ ); MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKit.Demo.OpenVPN.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.ios.TunnelKit.Demo.OpenVPN-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -956,6 +1156,7 @@ CODE_SIGN_ENTITLEMENTS = Demo/iOS/DemoTunnel.entitlements; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = DTDYD63ZX9; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -963,7 +1164,7 @@ "@executable_path/../../Frameworks", ); MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKit.Demo.OpenVPN.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.ios.TunnelKit.Demo.OpenVPN-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; @@ -980,9 +1181,9 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; - INFOPLIST_FILE = "$(SRCROOT)/Demo/macOS/Demo.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", @@ -992,6 +1193,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; }; name = Debug; }; @@ -1005,9 +1208,9 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; - INFOPLIST_FILE = "$(SRCROOT)/Demo/macOS/Demo.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", @@ -1016,6 +1219,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; }; name = Release; }; @@ -1026,8 +1231,10 @@ CODE_SIGN_ENTITLEMENTS = Demo/macOS/DemoTunnel.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1036,7 +1243,7 @@ ); MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo.OpenVPN.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.macos.TunnelKit.Demo.OpenVPN-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; SKIP_INSTALL = YES; @@ -1050,8 +1257,10 @@ CODE_SIGN_ENTITLEMENTS = Demo/macOS/DemoTunnel.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -1059,51 +1268,13 @@ "@executable_path/../../../../Frameworks", ); MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo.OpenVPN.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.macos.TunnelKit.Demo.OpenVPN-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; SKIP_INSTALL = YES; }; name = Release; }; - 0E1108B91F77B9F900A92462 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Host/Host.entitlements; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = DTDYD63ZX9; - INFOPLIST_FILE = "$(SRCROOT)/Host/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKitHost; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 0E1108BA1F77B9F900A92462 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Host/Host.entitlements; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = DTDYD63ZX9; - INFOPLIST_FILE = "$(SRCROOT)/Host/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKitHost; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; 0E17D7FF1F730D9F009EE129 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1157,8 +1328,10 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MACOSX_DEPLOYMENT_TARGET = 12.0; + MARKETING_VERSION = 6.0.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; PATH = "${PATH}:/opt/homebrew/bin"; @@ -1166,6 +1339,7 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; + TVOS_DEPLOYMENT_TARGET = 17.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -1218,14 +1392,17 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MACOSX_DEPLOYMENT_TARGET = 12.0; + MARKETING_VERSION = 6.0.0; MTL_ENABLE_DEBUG_INFO = NO; PATH = "${PATH}:/opt/homebrew/bin"; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_VERSION = 5.0; + TVOS_DEPLOYMENT_TARGET = 17.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -1236,6 +1413,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; @@ -1245,6 +1423,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; @@ -1258,18 +1437,17 @@ CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_ENTITLEMENTS = Demo/iOS/DemoTunnel.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = DTDYD63ZX9; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKit.Demo.WireGuard.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.ios.TunnelKit.Demo.WireGuard-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1287,17 +1465,16 @@ CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_ENTITLEMENTS = Demo/iOS/DemoTunnel.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = DTDYD63ZX9; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.TunnelKit.Demo.WireGuard.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.ios.TunnelKit.Demo.WireGuard-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1315,22 +1492,19 @@ CODE_SIGN_ENTITLEMENTS = Demo/macOS/DemoTunnel.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; - INFOPLIST_KEY_CFBundleDisplayName = "TunnelKitDemoWireGuardTunnel-macOS"; - INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2021 Davide De Rosa. All rights reserved."; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); - MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo.WireGuard.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.macos.TunnelKit.Demo.WireGuard-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; SKIP_INSTALL = YES; @@ -1349,21 +1523,18 @@ CODE_SIGN_ENTITLEMENTS = Demo/macOS/DemoTunnel.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = DTDYD63ZX9; ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Demo/DemoTunnel.plist; - INFOPLIST_KEY_CFBundleDisplayName = "TunnelKitDemoWireGuardTunnel-macOS"; - INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2021 Davide De Rosa. All rights reserved."; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); - MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.macos.TunnelKit.Demo.WireGuard.Tunnel; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.macos.TunnelKit.Demo.WireGuard-Tunnel"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; SKIP_INSTALL = YES; @@ -1372,6 +1543,203 @@ }; name = Release; }; + 0E9FFE022B2D8717002C93D7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + }; + name = Debug; + }; + 0E9FFE032B2D8717002C93D7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + }; + name = Release; + }; + 0E9FFE0D2B2D8746002C93D7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/DemoTunnel.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Demo/DemoTunnel.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.tvos.TunnelKit.Demo.OpenVPN-Tunnel"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 0E9FFE0E2B2D8746002C93D7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/DemoTunnel.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Demo/DemoTunnel.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.tvos.TunnelKit.Demo.OpenVPN-Tunnel"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + }; + name = Release; + }; + 0E9FFE1C2B2D8750002C93D7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/DemoTunnel.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Demo/DemoTunnel.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@executable_path/../../../../Frameworks", + ); + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.tvos.TunnelKit.Demo.WireGuard-Tunnel"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 0E9FFE1D2B2D8750002C93D7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/DemoTunnel.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEAD_CODE_STRIPPING = YES; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Demo/DemoTunnel.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@executable_path/../../../../Frameworks", + ); + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.algoritmico.tvos.TunnelKit.Demo.WireGuard-Tunnel"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 0ED1A5F62B2A6AE600A0EA90 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/Demo.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_PREVIEWS = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIUserInterfaceStyle = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.tvos.TunnelKit.Demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SDKROOT = appletvos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 3; + }; + name = Debug; + }; + 0ED1A5F72B2A6AE600A0EA90 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_ENTITLEMENTS = Demo/tvOS/Demo.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + ENABLE_PREVIEWS = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIUserInterfaceStyle = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.tvos.TunnelKit.Demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SDKROOT = appletvos; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 3; + }; + name = Release; + }; 0EDD211F274BB4CF006833D1 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1427,15 +1795,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 0E1108B81F77B9F900A92462 /* Build configuration list for PBXNativeTarget "TunnelKitHost" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0E1108B91F77B9F900A92462 /* Debug */, - 0E1108BA1F77B9F900A92462 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 0E17D7F31F730D9F009EE129 /* Build configuration list for PBXProject "TunnelKit" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -1472,6 +1831,42 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 0E9FFE012B2D8717002C93D7 /* Build configuration list for PBXLegacyTarget "TunnelKitDemoWireGuardKitGo-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0E9FFE022B2D8717002C93D7 /* Debug */, + 0E9FFE032B2D8717002C93D7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0E9FFE0C2B2D8746002C93D7 /* Build configuration list for PBXNativeTarget "TunnelKitDemoOpenVPNTunnel-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0E9FFE0D2B2D8746002C93D7 /* Debug */, + 0E9FFE0E2B2D8746002C93D7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0E9FFE1B2B2D8750002C93D7 /* Build configuration list for PBXNativeTarget "TunnelKitDemoWireGuardTunnel-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0E9FFE1C2B2D8750002C93D7 /* Debug */, + 0E9FFE1D2B2D8750002C93D7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0ED1A5F52B2A6AE600A0EA90 /* Build configuration list for PBXNativeTarget "TunnelKitDemo-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0ED1A5F62B2A6AE600A0EA90 /* Debug */, + 0ED1A5F72B2A6AE600A0EA90 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 0EDD211E274BB4CF006833D1 /* Build configuration list for PBXLegacyTarget "TunnelKitDemoWireGuardKitGo-iOS" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -1508,6 +1903,22 @@ isa = XCSwiftPackageProductDependency; productName = TunnelKitWireGuardAppExtension; }; + 0E9FFE052B2D8746002C93D7 /* TunnelKitOpenVPNAppExtension */ = { + isa = XCSwiftPackageProductDependency; + productName = TunnelKitOpenVPNAppExtension; + }; + 0E9FFE142B2D8750002C93D7 /* TunnelKitWireGuardAppExtension */ = { + isa = XCSwiftPackageProductDependency; + productName = TunnelKitWireGuardAppExtension; + }; + 0ED1A5F82B2A6B7C00A0EA90 /* TunnelKitOpenVPN */ = { + isa = XCSwiftPackageProductDependency; + productName = TunnelKitOpenVPN; + }; + 0ED1A5FA2B2A6B7C00A0EA90 /* TunnelKitWireGuard */ = { + isa = XCSwiftPackageProductDependency; + productName = TunnelKitWireGuard; + }; 0EFD5B302727250500C7D5FD /* TunnelKitOpenVPN */ = { isa = XCSwiftPackageProductDependency; productName = TunnelKitOpenVPN; diff --git a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemo-iOS.xcscheme b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemo-iOS.xcscheme index f2bbda4..c37a108 100644 --- a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemo-iOS.xcscheme +++ b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemo-iOS.xcscheme @@ -1,6 +1,6 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoOpenVPNTunnel-iOS.xcscheme b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoOpenVPNTunnel-iOS.xcscheme index b102911..4ce9e57 100644 --- a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoOpenVPNTunnel-iOS.xcscheme +++ b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoOpenVPNTunnel-iOS.xcscheme @@ -1,6 +1,6 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoWireGuardTunnel-iOS.xcscheme b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoWireGuardTunnel-iOS.xcscheme index d5801ea..b453b68 100644 --- a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoWireGuardTunnel-iOS.xcscheme +++ b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitDemoWireGuardTunnel-iOS.xcscheme @@ -1,6 +1,6 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitHost.xcscheme b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitHost.xcscheme index a1b9175..cd3c2f4 100644 --- a/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitHost.xcscheme +++ b/Demo/TunnelKit.xcodeproj/xcshareddata/xcschemes/TunnelKitHost.xcscheme @@ -1,6 +1,6 @@