Skip to content

Commit e30d2aa

Browse files
committed
Update to swift 4.2
1 parent 0e27eea commit e30d2aa

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0
1+
4.2

CallbackURLKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22

33
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
44
s.name = "CallbackURLKit"
5-
s.version = "2.0.0"
5+
s.version = "2.1.0"
66
s.summary = "Implemenation of x-callback-url in swift"
77
s.homepage = "https://github.com/phimage/CallbackURLKit"
88

CallbackURLKit.xcodeproj/project.pbxproj

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,11 @@
257257
};
258258
C4A8D50F1C37D84A00DB3306 = {
259259
CreatedOnToolsVersion = 7.2;
260-
LastSwiftMigration = 0900;
260+
LastSwiftMigration = 1000;
261261
};
262262
C4E32D551C398AE1005CD033 = {
263263
CreatedOnToolsVersion = 7.2;
264+
LastSwiftMigration = 1000;
264265
};
265266
};
266267
};
@@ -527,8 +528,7 @@
527528
PRODUCT_NAME = "$(TARGET_NAME)";
528529
SKIP_INSTALL = YES;
529530
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
530-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
531-
SWIFT_VERSION = 4.0;
531+
SWIFT_VERSION = 4.2;
532532
};
533533
name = Debug;
534534
};
@@ -548,8 +548,7 @@
548548
PRODUCT_BUNDLE_IDENTIFIER = fr.phimage.CallbackURLKit;
549549
PRODUCT_NAME = "$(TARGET_NAME)";
550550
SKIP_INSTALL = YES;
551-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
552-
SWIFT_VERSION = 4.0;
551+
SWIFT_VERSION = 4.2;
553552
};
554553
name = Release;
555554
};
@@ -568,8 +567,7 @@
568567
PRODUCT_BUNDLE_IDENTIFIER = fr.phimage.CallbackURLKitClients;
569568
PRODUCT_NAME = "$(TARGET_NAME)";
570569
SKIP_INSTALL = YES;
571-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
572-
SWIFT_VERSION = 4.0;
570+
SWIFT_VERSION = 4.2;
573571
};
574572
name = Debug;
575573
};
@@ -588,8 +586,7 @@
588586
PRODUCT_BUNDLE_IDENTIFIER = fr.phimage.CallbackURLKitClients;
589587
PRODUCT_NAME = "$(TARGET_NAME)";
590588
SKIP_INSTALL = YES;
591-
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
592-
SWIFT_VERSION = 4.0;
589+
SWIFT_VERSION = 4.2;
593590
};
594591
name = Release;
595592
};

Sources/Manager.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Foundation
3232
open class Manager {
3333

3434
/// Singletong shared instance
35-
open static let shared = Manager()
35+
public static let shared = Manager()
3636

3737
/// List of action/action closure
3838
var actions: [Action: ActionHandler] = [:]
@@ -151,7 +151,7 @@ open class Manager {
151151
}
152152

153153
/// Handle url with manager shared instance
154-
open static func handleOpen(url: URL) -> Bool {
154+
public static func handleOpen(url: URL) -> Bool {
155155
return self.shared.handleOpen(url: url)
156156
}
157157

@@ -173,13 +173,13 @@ open class Manager {
173173
try client.perform(action: action, parameters: parameters, onSuccess: onSuccess, onFailure: onFailure, onCancel: onCancel)
174174
}
175175

176-
open static func perform(action: Action, urlScheme: String, parameters: Parameters = [:],
176+
public static func perform(action: Action, urlScheme: String, parameters: Parameters = [:],
177177
onSuccess: SuccessCallback? = nil, onFailure: FailureCallback? = nil, onCancel: CancelCallback? = nil) throws {
178178
try Manager.shared.perform(action: action, urlScheme: urlScheme, parameters: parameters, onSuccess: onSuccess, onFailure: onFailure, onCancel: onCancel)
179179
}
180180

181181
/// Utility function to get URL schemes from Info.plist
182-
open static var urlSchemes: [String]? {
182+
public static var urlSchemes: [String]? {
183183
guard let urlTypes = Bundle.main.infoDictionary?["CFBundleURLTypes"] as? [[String: AnyObject]] else {
184184
return nil
185185
}
@@ -246,7 +246,7 @@ open class Manager {
246246
return result
247247
}
248248

249-
open static func open(url: Foundation.URL) {
249+
public static func open(url: Foundation.URL) {
250250
Manager.shared.open(url: url)
251251
}
252252

0 commit comments

Comments
 (0)