Skip to content

Commit 03ef410

Browse files
committed
pod spec update to 0.1.1
Update readme.md
1 parent cc0fd46 commit 03ef410

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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 = "0.1.0"
5+
s.version = "0.1.1"
66
s.summary = "Implemenation of x-callback-url in swift"
77
s.homepage = "https://github.com/phimage/CallbackURLKit"
88

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CallbackURLKit.registerAction("play") { parameters, ... in
1818
self.player.play()
1919
}
2020
```
21-
Want to interact with one of numerous other applications which implement already [x-callback-url](http://x-callback-url.com/apps/), you can also use this framework.
21+
Want to interact with one of the numerous other applications which implement already [x-callback-url](http://x-callback-url.com/apps/), you can also use this framework.
2222

2323
```swift
2424
CallbackURLKit.performAction("open", URLScheme: "googlechrome-x-callback",
@@ -39,7 +39,7 @@ try Manager.sharedInstance.performAction("actionName", URLScheme: "application-n
3939
parameters: ["key1": "value1"])
4040
```
4141

42-
#### Declare targetd applications URL schemes in iOS9
42+
#### Declare targeted applications URL schemes in iOS9
4343
In iOS 9 you must whitelist any URL schemes your app wants to query in Info.plist under the *LSApplicationQueriesSchemes* key (an array of strings)
4444

4545
![xcode-white-list](http://useyourloaf.com/assets/images/2015/2015-09-06-001.png)
@@ -125,16 +125,16 @@ func handleGetURLEvent(event: NSAppleEventDescriptor!, withReplyEvent: NSAppleEv
125125
}
126126
}
127127
```
128-
Or if you have no other need with URL events you can let manager do all the job by calling into `applicationDidFinishLaunching`
129-
```swift
130-
manager.registerToURLEvent()
131-
```
128+
Or in OSX if you have no other need with URL events you can let manager do all the job by calling into `applicationDidFinishLaunching`
129+
the method `Manager.registerToURLEvent()`
130+
132131

133132
#### Add new action
134133
The client application will interact with your application using the following URL Structure.
134+
135135
`[url-scheme]://x-callback-url/[action]?[x-callback parameters]&[action parameters]`
136136

137-
An action is defined by its name, the url path, and optional action `parameters`.
137+
An action is defined by its name (the url path), and optional action `parameters`.
138138

139139
```swift
140140
manager["myActionName"] = { parameters, success, failure, cancel in

0 commit comments

Comments
 (0)