-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'move-the-ip-overrides-in-the-vpn-settings-instead-of-it…
…-ios-557'
- Loading branch information
Showing
26 changed files
with
296 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// VPNSettingsCoordinator.swift | ||
// MullvadVPN | ||
// | ||
// Created by Jon Petersson on 2024-03-18. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import MullvadSettings | ||
import MullvadTypes | ||
import Routing | ||
import UIKit | ||
|
||
class VPNSettingsCoordinator: Coordinator, Presenting, SettingsChildCoordinator { | ||
private let navigationController: UINavigationController | ||
private let interactorFactory: SettingsInteractorFactory | ||
private let ipOverrideRepository: IPOverrideRepositoryProtocol | ||
|
||
var presentationContext: UIViewController { | ||
navigationController | ||
} | ||
|
||
init( | ||
navigationController: UINavigationController, | ||
interactorFactory: SettingsInteractorFactory, | ||
ipOverrideRepository: IPOverrideRepositoryProtocol | ||
) { | ||
self.navigationController = navigationController | ||
self.interactorFactory = interactorFactory | ||
self.ipOverrideRepository = ipOverrideRepository | ||
} | ||
|
||
func start(animated: Bool) { | ||
let controller = VPNSettingsViewController( | ||
interactor: interactorFactory.makeVPNSettingsInteractor(), | ||
alertPresenter: AlertPresenter(context: self) | ||
) | ||
|
||
controller.delegate = self | ||
|
||
navigationController.pushViewController(controller, animated: animated) | ||
} | ||
} | ||
|
||
extension VPNSettingsCoordinator: VPNSettingsViewControllerDelegate { | ||
func showIPOverrides() { | ||
let coordinator = IPOverrideCoordinator( | ||
navigationController: navigationController, | ||
repository: ipOverrideRepository, | ||
tunnelManager: interactorFactory.tunnelManager | ||
) | ||
|
||
addChild(coordinator) | ||
coordinator.start(animated: true) | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
ios/MullvadVPN/View controllers/Preferences/PreferencesDataSourceDelegate.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.