From a7dc890877af583b004fa6aa1c1bc41d9c048605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Bru=CC=88ckner?= Date: Tue, 27 Sep 2022 22:41:45 -0700 Subject: [PATCH] Upgrade to Swift 5.0 --- BoardingPassKit.podspec | 4 ++-- BoardingPassKit.xcodeproj/project.pbxproj | 15 ++++++++------- Package.swift | 6 +++++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/BoardingPassKit.podspec b/BoardingPassKit.podspec index 7187e6f..4bc4670 100644 --- a/BoardingPassKit.podspec +++ b/BoardingPassKit.podspec @@ -12,12 +12,12 @@ Pod::Spec.new do |s| s.license = "MPL-2.0" s.author = "Sebastian Brückner" - s.ios.deployment_target = "8.0" + s.ios.deployment_target = "12.0" # s.osx.deployment_target = "10.7" # s.watchos.deployment_target = "2.0" # s.tvos.deployment_target = "9.0" - s.swift_version = '4.2' + s.swift_version = '5.0' s.source = { :git => "https://github.com/invliD/BoardingPassKit.git", :tag => "#{s.version}" } s.source_files = "Sources/**/*.swift" s.requires_arc = true diff --git a/BoardingPassKit.xcodeproj/project.pbxproj b/BoardingPassKit.xcodeproj/project.pbxproj index db85291..45929d6 100644 --- a/BoardingPassKit.xcodeproj/project.pbxproj +++ b/BoardingPassKit.xcodeproj/project.pbxproj @@ -194,7 +194,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1010; + LastUpgradeCheck = 1400; ORGANIZATIONNAME = invliD; TargetAttributes = { 24B3F5051FF3E06F002E489B = { @@ -215,6 +215,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = 24B3F4FC1FF3E06F002E489B; productRefGroup = 24B3F5071FF3E06F002E489B /* Products */; @@ -306,6 +307,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; @@ -332,12 +334,13 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.2; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -368,6 +371,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; @@ -388,10 +392,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.2; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 5.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -417,7 +422,6 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -440,7 +444,6 @@ PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; @@ -455,7 +458,6 @@ PRODUCT_BUNDLE_IDENTIFIER = com.invlid.BoardingPassKitTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -470,7 +472,6 @@ PRODUCT_BUNDLE_IDENTIFIER = com.invlid.BoardingPassKitTests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; diff --git a/Package.swift b/Package.swift index f3c626d..ea82225 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,9 @@ import PackageDescription let package = Package( name: "BoardingPassKit", + platforms: [ + .iOS(.v12) + ], products: [ .library( name: "BoardingPassKit", @@ -18,5 +21,6 @@ let package = Package( name: "BoardingPassKitTests", dependencies: ["BoardingPassKit"], path: "Tests"), - ] + ], + swiftLanguageVersions: [.v5] )