Strip VPNManager initialization

This commit is contained in:
Davide De Rosa 2022-06-01 21:12:42 +02:00
parent 1fd4fd4689
commit b873e5e279
1 changed files with 10 additions and 14 deletions

View File

@ -104,23 +104,19 @@ class AppContext {
) )
#if targetEnvironment(simulator) #if targetEnvironment(simulator)
vpnManager = VPNManager( let strategy = VPNManager.MockStrategy()
appManager: appManager,
profileManager: profileManager,
providerManager: providerManager,
strategy: VPNManager.MockStrategy()
)
#else #else
vpnManager = VPNManager( let strategy = VPNManager.TunnelKitStrategy(
appManager: appManager, appGroup: Constants.App.appGroupId,
profileManager: profileManager, tunnelBundleIdentifier: Constants.App.tunnelBundleId
providerManager: providerManager,
strategy: VPNManager.TunnelKitStrategy(
appGroup: Constants.App.appGroupId,
tunnelBundleIdentifier: Constants.App.tunnelBundleId
)
) )
#endif #endif
vpnManager = VPNManager(
appManager: appManager,
profileManager: profileManager,
providerManager: providerManager,
strategy: strategy
)
// app // app