Skip to content

Commit 08e9334

Browse files
committed
Update podspec to 2.0.0
1 parent 2fe0932 commit 08e9334

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

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 = "1.2.0"
5+
s.version = "2.0.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: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
C4E32D5E1C398AE5005CD033 /* GoogleChrome.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4E32D4F1C398AAC005CD033 /* GoogleChrome.swift */; };
2626
/* End PBXBuildFile section */
2727

28+
/* Begin PBXContainerItemProxy section */
29+
C445365D1F6F05E20006FFC4 /* PBXContainerItemProxy */ = {
30+
isa = PBXContainerItemProxy;
31+
containerPortal = C4A8D5071C37D84A00DB3306 /* Project object */;
32+
proxyType = 1;
33+
remoteGlobalIDString = C4A8D50F1C37D84A00DB3306;
34+
remoteInfo = CallbackURLKit;
35+
};
36+
/* End PBXContainerItemProxy section */
37+
2838
/* Begin PBXFileReference section */
2939
48D0A1491F0E28CE0019B815 /* Ulysses.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Ulysses.swift; path = Clients/Ulysses.swift; sourceTree = "<group>"; };
3040
C418B1DA1C386C160097FDD9 /* CallbackURLKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CallbackURLKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -218,6 +228,7 @@
218228
buildRules = (
219229
);
220230
dependencies = (
231+
C445365E1F6F05E20006FFC4 /* PBXTargetDependency */,
221232
);
222233
name = CallbackURLKitClients;
223234
productName = CallbackURLKitClients;
@@ -324,6 +335,14 @@
324335
};
325336
/* End PBXSourcesBuildPhase section */
326337

338+
/* Begin PBXTargetDependency section */
339+
C445365E1F6F05E20006FFC4 /* PBXTargetDependency */ = {
340+
isa = PBXTargetDependency;
341+
target = C4A8D50F1C37D84A00DB3306 /* CallbackURLKit */;
342+
targetProxy = C445365D1F6F05E20006FFC4 /* PBXContainerItemProxy */;
343+
};
344+
/* End PBXTargetDependency section */
345+
327346
/* Begin XCBuildConfiguration section */
328347
C418B1E01C386C160097FDD9 /* Debug */ = {
329348
isa = XCBuildConfiguration;
@@ -338,7 +357,7 @@
338357
INFOPLIST_FILE = CallbackURLKitOSX/Info.plist;
339358
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
340359
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
341-
MACOSX_DEPLOYMENT_TARGET = 10.10;
360+
MACOSX_DEPLOYMENT_TARGET = 10.11;
342361
PRODUCT_BUNDLE_IDENTIFIER = fr.phimage.CallbackURLKitOSX;
343362
PRODUCT_NAME = CallbackURLKit;
344363
SDKROOT = macosx;
@@ -361,7 +380,7 @@
361380
INFOPLIST_FILE = CallbackURLKitOSX/Info.plist;
362381
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
363382
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
364-
MACOSX_DEPLOYMENT_TARGET = 10.10;
383+
MACOSX_DEPLOYMENT_TARGET = 10.11;
365384
PRODUCT_BUNDLE_IDENTIFIER = fr.phimage.CallbackURLKitOSX;
366385
PRODUCT_NAME = CallbackURLKit;
367386
SDKROOT = macosx;

Clients/GoogleChrome.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class GoogleChrome: Client {
4545
*/
4646
public func checkInstalled() {
4747
if !self.appInstalled, let url = GoogleChrome.DownloadURL {
48-
Manager.shared.open(url: url)
48+
Manager.open(url: url)
4949
}
5050
}
5151

Sources/Manager.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open class Manager {
3838
var actions: [Action: ActionHandler] = [:]
3939
/// keep request for callback
4040
var requests: [RequestID: Request] = [:]
41-
pecify an URL scheme for callback
41+
4242
open var callbackURLScheme: String?
4343

4444
#if APP_EXTENSIONS
@@ -240,7 +240,10 @@ pecify an URL scheme for callback
240240
return result
241241
}
242242

243-
243+
open static func open(url: Foundation.URL) {
244+
Manager.shared.open(url: url)
245+
}
246+
244247
open func open(url: Foundation.URL) {
245248
#if APP_EXTENSIONS
246249
if let extensionContext = extensionContext {

0 commit comments

Comments
 (0)