refactor: Execute migration to Swift 5

This commit is contained in:
Andrea Busi
2020-07-24 15:41:49 +02:00
parent 64ebda5194
commit 59b12a7d94
3 changed files with 11 additions and 11 deletions
@@ -791,12 +791,12 @@
TargetAttributes = {
8C4B0B7921CACE3F00AED489 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1010;
LastSwiftMigration = 1160;
ProvisioningStyle = Automatic;
};
8CBD3DC12149B9AD0070C963 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1010;
LastSwiftMigration = 1160;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.BackgroundModes = {
@@ -812,7 +812,7 @@
};
8CF12CD021DE49B600613AC5 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1010;
LastSwiftMigration = 1160;
ProvisioningStyle = Automatic;
};
};
@@ -1130,7 +1130,7 @@
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/EQNNotificationService-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
@@ -1148,7 +1148,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/EQNNotificationService-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
@@ -1284,7 +1284,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/Earthquake Network-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
@@ -1308,7 +1308,7 @@
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/Earthquake Network-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
@@ -1327,7 +1327,7 @@
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/EQNNotificationContent-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
@@ -1345,7 +1345,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Earthquake Network/Acquisti in App/EQNNotificationContent-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
@@ -97,7 +97,7 @@ class AcquistiProViewController: UIViewController {
guard
let productID = notification.object as? String,
let _ = products.index(where: { product -> Bool in
let _ = products.firstIndex(where: { product -> Bool in
product.productIdentifier == productID
})
else { return }
@@ -112,7 +112,7 @@ class MasterViewController1: UITableViewController {
@objc func handlePurchaseNotification(_ notification: Notification) {
guard
let productID = notification.object as? String,
let index = products.index(where: { product -> Bool in
let index = products.firstIndex(where: { product -> Bool in
product.productIdentifier == productID
})
else { return }