You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,51 @@ Also in `sse-server` folder you will find an extremely simple `node.js` server t
24
24
25
25
### Install
26
26
27
-
You can just drag the `EventSource.swift` file to your project or using CocoaPods:
27
+
EventSource delivers itself as a framework. There are a couple ways to include in your app.
28
+
29
+
#### Cocoapods
30
+
31
+
1) Include EventSource in your `Podfile`:
32
+
`pod 'IKEventSource'`
33
+
34
+
2) Run `pod install`
28
35
29
36
```
30
37
pod 'IKEventSource'
31
38
32
39
```
33
40
34
-
Then import the library:
41
+
3) Import the framework:
35
42
36
43
```
37
44
import IKEventSource
38
45
```
39
46
47
+
#### Carthage
48
+
49
+
1) Include EventSource in your `Cartfile`:
50
+
`github "inaka/EventSource"`
51
+
52
+
2) Run `carthage update --platform 'iOS'`
53
+
54
+
3) In your app target, navigate to the `Link Binary with Libraries` section, and add `EventSource.framework`, which you should be able to find in your `Carthage/Build/iOS` directory
55
+
56
+
4) To your test target, add a `Run Script` to call the Carthage `copy-frameworks` script:
57
+
58
+
`/usr/local/bin/carthage copy-frameworks`
59
+
60
+
Additionally, add as an input file the Event Source framework. The path probably looks something like this:
For further reference see [Carthage's documentation](https://github.com/Carthage/Carthage/blob/master/README.md).
71
+
40
72
#### Javascript API:
41
73
42
74
```JavaScript
@@ -188,6 +220,8 @@ Thanks to all the contributors for pointing out missing stuff or problems and fi
188
220
-[heyzooi](https://github.com/heyzooi)
189
221
-[alexpalman](https://github.com/alexpalman)
190
222
-[robbiet480](https://github.com/robbiet480)
223
+
-[tbaranes](https://github.com/tbaranes)
224
+
-[jwfriese](https://github.com/jwfriese)
191
225
192
226
### Contact Us
193
227
If you find any **bugs** or have a **problem** while using this library, please [open an issue](https://github.com/inaka/EventSource/issues/new) in this repo (or a pull request :)).
0 commit comments