From ff4a1e39450765e6adc646550f4f32a655003541 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 20 Sep 2021 18:50:56 +0200 Subject: [PATCH] Ditch non-scalable VPN.shared --- README.md | 2 -- TunnelKit/Sources/Manager/VPN.swift | 3 --- 2 files changed, 5 deletions(-) diff --git a/README.md b/README.md index 70d2827..1025b34 100644 --- a/README.md +++ b/README.md @@ -164,8 +164,6 @@ This subspec includes convenient classes to control the VPN tunnel from your app - `MockVPNProvider` (default, useful to test on simulator) - `OpenVPNProvider` -Set `VPN.shared` to either of them at app launch time. - ### Protocols/OpenVPN Here you will find the low-level entities on top of which an OpenVPN connection is established. Code is mixed Swift and Obj-C, most of it is not exposed to consumers. The module depends on OpenSSL. diff --git a/TunnelKit/Sources/Manager/VPN.swift b/TunnelKit/Sources/Manager/VPN.swift index d3120ef..15ae8ab 100644 --- a/TunnelKit/Sources/Manager/VPN.swift +++ b/TunnelKit/Sources/Manager/VPN.swift @@ -36,7 +36,4 @@ public class VPN { /// The VPN profile did (re)install. public static let didReinstall = Notification.Name("VPNDidReinstall") - - /// A singleton `VPNProvider` instance (default is a `MockVPNProvider`). Make sure to set this on app launch. - public static var shared: VPNProvider = MockVPNProvider() }