From b42900b63f307b36c5e74fded70b4b17735f10db Mon Sep 17 00:00:00 2001 From: Aleksandar Vacic Date: Mon, 17 Sep 2018 16:51:42 +0200 Subject: [PATCH 1/4] Updated pod spec for Swift 4.2, Xcode 10. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated watchOS deployment target to 3.0 because that’s now minimum for AppStoreConnect. Bumped version. --- SwiftyTimer.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftyTimer.podspec b/SwiftyTimer.podspec index 06db5d9..cee9e10 100644 --- a/SwiftyTimer.podspec +++ b/SwiftyTimer.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.9' s.tvos.deployment_target = '9.0' - s.watchos.deployment_target = '2.0' - + s.watchos.deployment_target = '3.0' s.source_files = 'Sources/*.swift' + s.swift_version = '4.2' end From ed36decb843e5939ca2e67ac88c1d6360ba8a90a Mon Sep 17 00:00:00 2001 From: Aleksandar Vacic Date: Mon, 17 Sep 2018 16:56:39 +0200 Subject: [PATCH 2/4] Updated to Swift 4.2 in build settings --- SwiftyTimer.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftyTimer.xcodeproj/project.pbxproj b/SwiftyTimer.xcodeproj/project.pbxproj index e1f7577..10867a7 100644 --- a/SwiftyTimer.xcodeproj/project.pbxproj +++ b/SwiftyTimer.xcodeproj/project.pbxproj @@ -574,7 +574,7 @@ SKIP_INSTALL = YES; SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 2.0; + WATCHOS_DEPLOYMENT_TARGET = 3.0; }; name = Debug; }; @@ -596,7 +596,7 @@ SKIP_INSTALL = YES; SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 2.0; + WATCHOS_DEPLOYMENT_TARGET = 3.0; }; name = Release; }; From 8b3171612cb3ed227feaa2a2f6680df290541658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Vacic=CC=81?= Date: Wed, 27 Mar 2019 13:30:30 +0100 Subject: [PATCH 3/4] Updates for Swift 5, Xcode 10.2 --- SwiftyTimer.xcodeproj/project.pbxproj | 21 +++++++------------ .../xcschemes/SwiftyTimer OS X.xcscheme | 2 +- .../xcschemes/SwiftyTimer tvOS.xcscheme | 2 +- .../xcschemes/SwiftyTimer watchOS.xcscheme | 2 +- .../xcschemes/SwiftyTimer.xcscheme | 2 +- 5 files changed, 12 insertions(+), 17 deletions(-) diff --git a/SwiftyTimer.xcodeproj/project.pbxproj b/SwiftyTimer.xcodeproj/project.pbxproj index 10867a7..abb8a5e 100644 --- a/SwiftyTimer.xcodeproj/project.pbxproj +++ b/SwiftyTimer.xcodeproj/project.pbxproj @@ -205,12 +205,12 @@ 3E721AB21BF7255C008AF027 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1000; + LastUpgradeCheck = 1020; ORGANIZATIONNAME = "Radosław Pietruszewski"; TargetAttributes = { 3E721ABA1BF7255D008AF027 = { CreatedOnToolsVersion = 7.1; - LastSwiftMigration = 0800; + LastSwiftMigration = 1020; }; 6E7E40891C84B1A20030CEBB = { CreatedOnToolsVersion = 7.2; @@ -225,10 +225,11 @@ }; buildConfigurationList = 3E721AB51BF7255C008AF027 /* Build configuration list for PBXProject "SwiftyTimer" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = 3E721AB11BF7255C008AF027; productRefGroup = 3E721ABC1BF7255D008AF027 /* Products */; @@ -314,6 +315,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -363,7 +365,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -374,6 +376,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -416,7 +419,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; @@ -441,7 +444,6 @@ PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -462,7 +464,6 @@ PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; }; name = Release; }; @@ -485,7 +486,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = macosx; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -508,7 +508,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = macosx; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; }; name = Release; }; @@ -528,7 +527,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = appletvos; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.0; }; @@ -550,7 +548,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = appletvos; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.0; }; @@ -572,7 +569,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = watchos; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 4; WATCHOS_DEPLOYMENT_TARGET = 3.0; }; @@ -594,7 +590,6 @@ PRODUCT_NAME = SwiftyTimer; SDKROOT = watchos; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 4; WATCHOS_DEPLOYMENT_TARGET = 3.0; }; diff --git a/SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer OS X.xcscheme b/SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer OS X.xcscheme index ada9aa8..8e2c0d2 100644 --- a/SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer OS X.xcscheme +++ b/SwiftyTimer.xcodeproj/xcshareddata/xcschemes/SwiftyTimer OS X.xcscheme @@ -1,6 +1,6 @@ Date: Thu, 28 Mar 2019 16:30:21 +0100 Subject: [PATCH 4/4] Updated podspec for Swift 5 --- SwiftyTimer.podspec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SwiftyTimer.podspec b/SwiftyTimer.podspec index cee9e10..a6e5e55 100644 --- a/SwiftyTimer.podspec +++ b/SwiftyTimer.podspec @@ -1,17 +1,20 @@ Pod::Spec.new do |s| s.name = 'SwiftyTimer' - s.version = '2.1.0' + s.version = '2.1.1' s.license = 'MIT' s.summary = 'Swifty API for NSTimer' s.homepage = 'https://github.com/radex/SwiftyTimer' s.authors = { 'Radek Pietruszewski' => 'this.is@radex.io' } s.source = { git: 'https://github.com/radex/SwiftyTimer.git', tag: s.version } - s.swift_version = '4.2' + + s.swift_version = '5.0' s.requires_arc = true + s.swift_versions = ['4.2', '5.0'] + s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.9' s.tvos.deployment_target = '9.0' s.watchos.deployment_target = '3.0' + s.source_files = 'Sources/*.swift' - s.swift_version = '4.2' end