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)
vpnManager = VPNManager(
appManager: appManager,
profileManager: profileManager,
providerManager: providerManager,
strategy: VPNManager.MockStrategy()
)
let strategy = VPNManager.MockStrategy()
#else
vpnManager = VPNManager(
appManager: appManager,
profileManager: profileManager,
providerManager: providerManager,
strategy: VPNManager.TunnelKitStrategy(
let strategy = VPNManager.TunnelKitStrategy(
appGroup: Constants.App.appGroupId,
tunnelBundleIdentifier: Constants.App.tunnelBundleId
)
)
#endif
vpnManager = VPNManager(
appManager: appManager,
profileManager: profileManager,
providerManager: providerManager,
strategy: strategy
)
// app