Skip to content

Commit

Permalink
Merge branch 'extract-settings'
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Sep 20, 2023
2 parents f600fd5 + 47e30d0 commit d9fb71a
Show file tree
Hide file tree
Showing 63 changed files with 692 additions and 312 deletions.
502 changes: 392 additions & 110 deletions ios/MullvadVPN.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
Expand Down Expand Up @@ -56,24 +56,23 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
launchStyle = "1"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "58CE5E5F224146200008646E"
BuildableName = "MullvadVPN.app"
BlueprintName = "MullvadVPN"
ReferencedContainer = "container:MullvadVPN.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MullvadTransport
import MullvadTypes
import Operations
import RelayCache
import Settings
import StoreKit
import UIKit
import UserNotifications
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/Containers/Root/RootConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Settings

struct RootDeviceInfoViewModel {
let configuration: RootConfiguration
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/Coordinators/ApplicationCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadREST
import MullvadTypes
import RelayCache
import Routing
import Settings
import UIKit

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import MullvadTypes
import Settings

final class AccountExpiryInAppNotificationProvider: NotificationProvider, InAppNotificationProvider {
private var accountExpiry: Date?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Settings
import UserNotifications

final class AccountExpirySystemNotificationProvider: NotificationProvider, SystemNotificationProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Settings
import UIKit.UIColor
import UIKit.UIFont

Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadREST
import MullvadTypes
import Operations
import RelayCache
import Settings
import UIKit

class SceneDelegate: UIResponder, UIWindowSceneDelegate, SettingsMigrationUIHandler {
Expand Down
49 changes: 0 additions & 49 deletions ios/MullvadVPN/SettingsManager/StoredDeviceData.swift

This file was deleted.

37 changes: 0 additions & 37 deletions ios/MullvadVPN/SettingsManager/TunnelSettingsV2.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import MullvadTypes
import enum NetworkExtension.NEProviderStopReason
import RelayCache
import RelaySelector
import Settings
import TunnelProviderMessaging

final class SimulatorTunnelProviderHost: SimulatorTunnelProviderDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
import MullvadLogging
import MullvadTypes
import Operations
import Settings

class LoadTunnelConfigurationOperation: ResultOperation<Void> {
private let logger = Logger(label: "LoadTunnelConfigurationOperation")
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/RedeemVoucherOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings

class RedeemVoucherOperation: ResultOperation<REST.SubmitVoucherResponse> {
private let logger = Logger(label: "RedeemVoucherOperation")
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/RotateKeyOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings
import class WireGuardKitTypes.PrivateKey

class RotateKeyOperation: ResultOperation<Void> {
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/SetAccountOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings
import class WireGuardKitTypes.PrivateKey
import class WireGuardKitTypes.PublicKey

Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/TunnelBlockObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Settings

final class TunnelBlockObserver: TunnelObserver {
typealias DidLoadConfigurationHandler = (TunnelManager) -> Void
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/TunnelInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import Foundation
import RelayCache
import RelaySelector
import Settings

protocol TunnelInteractor {
// MARK: - Tunnel manipulation
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/TunnelManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import NetworkExtension
import Operations
import RelayCache
import RelaySelector
import Settings
import StoreKit
import TunnelProviderMessaging
import UIKit
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/TunnelObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import Settings

protocol TunnelObserver: AnyObject {
func tunnelManagerDidLoadConfiguration(_ manager: TunnelManager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings

class UpdateAccountDataOperation: ResultOperation<Void> {
private let logger = Logger(label: "UpdateAccountDataOperation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings
import class WireGuardKitTypes.PublicKey

class UpdateDeviceDataOperation: ResultOperation<StoredDeviceData> {
Expand Down
1 change: 1 addition & 0 deletions ios/MullvadVPN/TunnelManager/WgKeyRotation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import MullvadTypes
import Settings
import class WireGuardKitTypes.PrivateKey
import class WireGuardKitTypes.PublicKey

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
import MullvadREST
import MullvadTypes
import Operations
import Settings
import StoreKit

final class AccountInteractor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings
import StoreKit
import UIKit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import MullvadLogging
import Settings

final class LoginInteractor {
private let tunnelManager: TunnelManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MullvadLogging
import MullvadREST
import MullvadTypes
import Operations
import Settings
import StoreKit

final class OutOfTimeInteractor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2021 Mullvad VPN AB. All rights reserved.
//

import Settings
import UIKit

final class PreferencesDataSource: UITableViewDiffableDataSource<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import RelayCache
import Settings

final class PreferencesInteractor {
private let tunnelManager: TunnelManager
Expand Down
Loading

0 comments on commit d9fb71a

Please sign in to comment.