on master help sign in
Update to Swift 4.2
commitd81e614d1b7571d005e0f5d473feb0e48f333602 authorBrent Whitman <brent@pathym.com> dateFri 13 Jul 2018, 13:31 (8 years ago) parent338fa1e
6 files changed+21−16
.swift-version+1−1 GMStepper.podspec+4−3 GMStepper/GMStepper.swift+1−1 GMStepperExample/GMStepperExample.xcodeproj/project.pbxproj+6−10 GMStepperExample/GMStepperExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist+8 GMStepperExample/GMStepperExample/AppDelegate.swift+1−1
.swift-version+1−1
@@ -1 +1 @@
1−4.0
1+4.2
GMStepper.podspec+4−3
@@ -1,14 +1,15 @@
11Pod::Spec.new do |s|
22 s.name = "GMStepper"
3− s.version = "2.1"
3+ s.version = "2.2"
44 s.summary = "A stepper with a sliding label in the middle."
55 s.homepage = "https://github.com/gmertk/GMStepper"
66 s.screenshots = "https://raw.githubusercontent.com/gmertk/GMStepper/master/Screenshots/screenshot_1.gif"
77 s.license = 'MIT'
8− s.author = { "Gunay Mert Karadogan" => "mertkaradogan@gmail.com" }
8+ s.authors = { "Gunay Mert Karadogan" => "mertkaradogan@gmail.com",
9+ "Brent Whitman" => "brent@pathym.com" }
910 s.source = { :git => "https://github.com/gmertk/GMStepper.git", :tag => s.version.to_s }
1011 s.social_media_url = 'https://twitter.com/gunaymertk'
11− s.platform = :ios, '8.0'
12+ s.platform = :ios, '8.4'
1213 s.requires_arc = true
1314 s.source_files = 'GMStepper/*.swift'
1415end
GMStepper/GMStepper.swift+1−1
@@ -303,7 +303,7 @@ import UIKit
303303
304304 setupNumberFormatter()
305305
306− NotificationCenter.default.addObserver(self, selector: #selector(GMStepper.reset), name: NSNotification.Name.UIApplicationWillResignActive, object: nil)
306+ NotificationCenter.default.addObserver(self, selector: #selector(GMStepper.reset), name: UIApplication.willResignActiveNotification, object: nil)
307307 }
308308
309309 func setupNumberFormatter() {
GMStepperExample/GMStepperExample.xcodeproj/project.pbxproj+6−10
@@ -168,14 +168,14 @@
168168 TargetAttributes = {
169169 3116C0D71DA4DD360015AC69 = {
170170 CreatedOnToolsVersion = 8.0;
171− LastSwiftMigration = 0900;
171+ LastSwiftMigration = 1000;
172172 ProvisioningStyle = Automatic;
173173 TestTargetID = 319C19311B4843EB005EFEE5;
174174 };
175175 319C19311B4843EB005EFEE5 = {
176176 CreatedOnToolsVersion = 6.4;
177177 DevelopmentTeam = 289M6XEDV4;
178− LastSwiftMigration = 0900;
178+ LastSwiftMigration = 1000;
179179 };
180180 };
181181 };
@@ -282,8 +282,7 @@
282282 PRODUCT_BUNDLE_IDENTIFIER = com.gmertk.GMStepperExampleTests;
283283 PRODUCT_NAME = "$(TARGET_NAME)";
284284 SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
285− SWIFT_SWIFT3_OBJC_INFERENCE = On;
286− SWIFT_VERSION = 4.0;
285+ SWIFT_VERSION = 4.2;
287286 TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
288287 };
289288 name = Debug;
@@ -300,8 +299,7 @@
300299 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
301300 PRODUCT_BUNDLE_IDENTIFIER = com.gmertk.GMStepperExampleTests;
302301 PRODUCT_NAME = "$(TARGET_NAME)";
303− SWIFT_SWIFT3_OBJC_INFERENCE = On;
304− SWIFT_VERSION = 4.0;
302+ SWIFT_VERSION = 4.2;
305303 TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
306304 };
307305 name = Release;
@@ -414,8 +412,7 @@
414412 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
415413 PRODUCT_BUNDLE_IDENTIFIER = "com.gunaymert.$(PRODUCT_NAME:rfc1034identifier)";
416414 PRODUCT_NAME = "$(TARGET_NAME)";
417− SWIFT_SWIFT3_OBJC_INFERENCE = Default;
418− SWIFT_VERSION = 4.0;
415+ SWIFT_VERSION = 4.2;
419416 };
420417 name = Debug;
421418 };
@@ -428,8 +425,7 @@
428425 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
429426 PRODUCT_BUNDLE_IDENTIFIER = "com.gunaymert.$(PRODUCT_NAME:rfc1034identifier)";
430427 PRODUCT_NAME = "$(TARGET_NAME)";
431− SWIFT_SWIFT3_OBJC_INFERENCE = Default;
432− SWIFT_VERSION = 4.0;
428+ SWIFT_VERSION = 4.2;
433429 };
434430 name = Release;
435431 };
GMStepperExample/GMStepperExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistnew file+8
@@ -0,0 +1,8 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>IDEDidComputeMac32BitWarning</key>
6+ <true/>
7+</dict>
8+</plist>
GMStepperExample/GMStepperExample/AppDelegate.swift+1−1
@@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414 var window: UIWindow?
1515
1616
17− func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
17+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1818 // Override point for customization after application launch.
1919 return true
2020 }