diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-05-21 15:44:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-05-21 15:44:19 +0200 |
| commit | c3cfd95a07adce3ab9acd0a1c17632231a8b80a2 (patch) | |
| tree | 6a3cf7163972361373e5ac28457cb5f177172a52 | |
| parent | 3f38c0d6af9fe85e349bb8abe07546bae063c7b6 (diff) | |
| parent | c93685d18c43364ef1f9f382de42921412dbe722 (diff) | |
| download | mullvadvpn-c3cfd95a07adce3ab9acd0a1c17632231a8b80a2.tar.xz mullvadvpn-c3cfd95a07adce3ab9acd0a1c17632231a8b80a2.zip | |
Merge branch 'swift-upgrade-project'
18 files changed, 21 insertions, 19 deletions
diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj index 4ec0dcc42a..ac4e13422f 100644 --- a/ios/MullvadVPN.xcodeproj/project.pbxproj +++ b/ios/MullvadVPN.xcodeproj/project.pbxproj @@ -835,7 +835,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 1130; - LastUpgradeCheck = 1130; + LastUpgradeCheck = 1250; ORGANIZATIONNAME = "Mullvad VPN AB"; TargetAttributes = { 58B0A29F238EE67E00BC001D = { @@ -1287,6 +1287,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -1350,6 +1351,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme index effa6427d1..89ed911bfc 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme - LastUpgradeVersion = "1130" + LastUpgradeVersion = "1250" version = "1.7"> <BuildAction parallelizeBuildables = "YES" diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme index dafedb1356..bb6219218c 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme - LastUpgradeVersion = "1130" + LastUpgradeVersion = "1250" version = "1.3"> <BuildAction parallelizeBuildables = "YES" diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNTests.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNTests.xcscheme index 3d05981154..2d99bd4846 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNTests.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNTests.xcscheme @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme - LastUpgradeVersion = "1130" + LastUpgradeVersion = "1250" version = "1.3"> <BuildAction parallelizeBuildables = "YES" diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/PacketTunnel.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/PacketTunnel.xcscheme index 5de677fa63..2e5903036a 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/PacketTunnel.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/PacketTunnel.xcscheme @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme - LastUpgradeVersion = "1130" + LastUpgradeVersion = "1250" wasCreatedForAppExtension = "YES" version = "2.0"> <BuildAction diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/WireGuardGoBridge.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/WireGuardGoBridge.xcscheme index b68c2f954d..32abf197e8 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/WireGuardGoBridge.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/WireGuardGoBridge.xcscheme @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme - LastUpgradeVersion = "1130" + LastUpgradeVersion = "1250" version = "1.3"> <BuildAction parallelizeBuildables = "YES" diff --git a/ios/MullvadVPN/Account.swift b/ios/MullvadVPN/Account.swift index ccbb98f2c7..ec5f88108b 100644 --- a/ios/MullvadVPN/Account.swift +++ b/ios/MullvadVPN/Account.swift @@ -18,7 +18,7 @@ private enum UserDefaultsKeys: String { case accountExpiry = "accountExpiry" } -protocol AccountObserver: class { +protocol AccountObserver: AnyObject { func account(_ account: Account, didUpdateExpiry expiry: Date) func account(_ account: Account, didLoginWithToken token: String, expiry: Date) func accountDidLogout(_ account: Account) diff --git a/ios/MullvadVPN/AccountViewController.swift b/ios/MullvadVPN/AccountViewController.swift index dffa1cda48..a441e6f0d1 100644 --- a/ios/MullvadVPN/AccountViewController.swift +++ b/ios/MullvadVPN/AccountViewController.swift @@ -10,7 +10,7 @@ import StoreKit import UIKit import Logging -protocol AccountViewControllerDelegate: class { +protocol AccountViewControllerDelegate: AnyObject { func accountViewControllerDidLogout(_ controller: AccountViewController) } diff --git a/ios/MullvadVPN/AppStorePaymentManager.swift b/ios/MullvadVPN/AppStorePaymentManager.swift index 4df32e7efb..117de36bc0 100644 --- a/ios/MullvadVPN/AppStorePaymentManager.swift +++ b/ios/MullvadVPN/AppStorePaymentManager.swift @@ -34,7 +34,7 @@ extension Set where Element == AppStoreSubscription { } } -protocol AppStorePaymentObserver: class { +protocol AppStorePaymentObserver: AnyObject { func appStorePaymentManager( _ manager: AppStorePaymentManager, transaction: SKPaymentTransaction, @@ -85,7 +85,7 @@ private class AnyAppStorePaymentObserver: AppStorePaymentObserver, WeakObserverB } } -protocol AppStorePaymentManagerDelegate: class { +protocol AppStorePaymentManagerDelegate: AnyObject { /// Return the account token associated with the payment. /// Usually called for unfinished transactions coming back after the app was restarted. diff --git a/ios/MullvadVPN/ConnectViewController.swift b/ios/MullvadVPN/ConnectViewController.swift index 7c08454901..b2f2260dbf 100644 --- a/ios/MullvadVPN/ConnectViewController.swift +++ b/ios/MullvadVPN/ConnectViewController.swift @@ -18,7 +18,7 @@ class CustomOverlayRenderer: MKOverlayRenderer { } } -protocol ConnectViewControllerDelegate: class { +protocol ConnectViewControllerDelegate: AnyObject { func connectViewControllerShouldShowSelectLocationPicker(_ controller: ConnectViewController) func connectViewControllerShouldConnectTunnel(_ controller: ConnectViewController) func connectViewControllerShouldDisconnectTunnel(_ controller: ConnectViewController) diff --git a/ios/MullvadVPN/CustomNavigationController.swift b/ios/MullvadVPN/CustomNavigationController.swift index 1a7e7bb49d..2f7d29f289 100644 --- a/ios/MullvadVPN/CustomNavigationController.swift +++ b/ios/MullvadVPN/CustomNavigationController.swift @@ -14,7 +14,7 @@ enum NavigationPopTrigger { case interactiveGesture } -protocol ConditionalNavigation: class { +protocol ConditionalNavigation: AnyObject { func shouldPopNavigationItem(_ navigationItem: UINavigationItem, trigger: NavigationPopTrigger) -> Bool } diff --git a/ios/MullvadVPN/LoginViewController.swift b/ios/MullvadVPN/LoginViewController.swift index ebb571814f..1b59c086fc 100644 --- a/ios/MullvadVPN/LoginViewController.swift +++ b/ios/MullvadVPN/LoginViewController.swift @@ -22,7 +22,7 @@ enum LoginState { case success(AuthenticationMethod) } -protocol LoginViewControllerDelegate: class { +protocol LoginViewControllerDelegate: AnyObject { func loginViewController(_ controller: LoginViewController, loginWithAccountToken accountToken: String, completion: @escaping (Result<AccountResponse, Account.Error>) -> Void) func loginViewControllerLoginWithNewAccount(_ controller: LoginViewController, completion: @escaping (Result<AccountResponse, Account.Error>) -> Void) func loginViewControllerDidLogin(_ controller: LoginViewController) diff --git a/ios/MullvadVPN/RelayCache.swift b/ios/MullvadVPN/RelayCache.swift index 7546c51f57..fe07798bbd 100644 --- a/ios/MullvadVPN/RelayCache.swift +++ b/ios/MullvadVPN/RelayCache.swift @@ -42,7 +42,7 @@ enum RelayCacheError: ChainedError { } } -protocol RelayCacheObserver: class { +protocol RelayCacheObserver: AnyObject { func relayCache(_ relayCache: RelayCache, didUpdateCachedRelays cachedRelays: CachedRelays) } diff --git a/ios/MullvadVPN/RootContainerViewController.swift b/ios/MullvadVPN/RootContainerViewController.swift index d692e30835..bfb8e5843c 100644 --- a/ios/MullvadVPN/RootContainerViewController.swift +++ b/ios/MullvadVPN/RootContainerViewController.swift @@ -45,7 +45,7 @@ protocol RootContainment { } -protocol RootContainerViewControllerDelegate: class { +protocol RootContainerViewControllerDelegate: AnyObject { func rootContainerViewControllerShouldShowSettings(_ controller: RootContainerViewController, navigateTo route: SettingsNavigationRoute?, animated: Bool) func rootContainerViewSupportedInterfaceOrientations(_ controller: RootContainerViewController) -> UIInterfaceOrientationMask diff --git a/ios/MullvadVPN/SelectLocationViewController.swift b/ios/MullvadVPN/SelectLocationViewController.swift index 969335454f..18f3b792ae 100644 --- a/ios/MullvadVPN/SelectLocationViewController.swift +++ b/ios/MullvadVPN/SelectLocationViewController.swift @@ -9,7 +9,7 @@ import UIKit import Logging -protocol SelectLocationViewControllerDelegate: class { +protocol SelectLocationViewControllerDelegate: AnyObject { func selectLocationViewController(_ controller: SelectLocationViewController, didSelectRelayLocation relayLocation: RelayLocation) } diff --git a/ios/MullvadVPN/SettingsNavigationController.swift b/ios/MullvadVPN/SettingsNavigationController.swift index e3b4ac4355..59ff50d499 100644 --- a/ios/MullvadVPN/SettingsNavigationController.swift +++ b/ios/MullvadVPN/SettingsNavigationController.swift @@ -20,7 +20,7 @@ enum SettingsDismissReason { case userLoggedOut } -protocol SettingsNavigationControllerDelegate: class { +protocol SettingsNavigationControllerDelegate: AnyObject { func settingsNavigationController(_ controller: SettingsNavigationController, didFinishWithReason reason: SettingsDismissReason) } diff --git a/ios/MullvadVPN/SettingsViewController.swift b/ios/MullvadVPN/SettingsViewController.swift index 723f3c1828..31eef92835 100644 --- a/ios/MullvadVPN/SettingsViewController.swift +++ b/ios/MullvadVPN/SettingsViewController.swift @@ -9,7 +9,7 @@ import Foundation import UIKit -protocol SettingsViewControllerDelegate: class { +protocol SettingsViewControllerDelegate: AnyObject { func settingsViewControllerDidFinish(_ controller: SettingsViewController) } diff --git a/ios/MullvadVPN/TunnelManager.swift b/ios/MullvadVPN/TunnelManager.swift index 63ea678cb5..86ba65e2c4 100644 --- a/ios/MullvadVPN/TunnelManager.swift +++ b/ios/MullvadVPN/TunnelManager.swift @@ -107,7 +107,7 @@ extension TunnelState: CustomStringConvertible, CustomDebugStringConvertible { } } -protocol TunnelObserver: class { +protocol TunnelObserver: AnyObject { func tunnelStateDidChange(tunnelState: TunnelState) func tunnelPublicKeyDidChange(publicKeyWithMetadata: PublicKeyWithMetadata?) } |
