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
+2-22Lines changed: 2 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,6 @@ What else would you want? Head over to one of our example apps:
68
68
69
69
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects and is our recommended method of installing PusherSwift and its dependencies.
70
70
71
-
> If you are looking to use encrypted channels, please read the [specific installation instructions](#cocoapods-1).
72
-
73
71
If you don't already have the Cocoapods gem installed, run the following command:
74
72
75
73
```bash
@@ -106,8 +104,6 @@ Also you'll need to make sure that you've not got the version of PusherSwift loc
106
104
107
105
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
108
106
109
-
> If you are looking to use encrypted channels, please read the [specific installation instructions](#carthage-1).
110
-
111
107
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
112
108
113
109
```bash
@@ -121,10 +117,7 @@ To integrate PusherSwift into your Xcode project using Carthage, specify it in y
121
117
github "pusher/pusher-websocket-swift"
122
118
```
123
119
124
-
Carthage will produce a number of frameworks. Which of those you need to include in you project depends on which features you are using:
125
-
126
-
- If you **are not** using the end-to-end encryption features, you need to include the following framework binaries from the `Carthage/Build` directory: `PusherSwift`
127
-
- If you **are** using the end-to-end encryption features, you need to include the following framework binaries from the `Carthage/Build` directory: `PusherSwiftWithEncryption` and `TweetNacl`
120
+
Carthage will produce a number of frameworks. You need to include the following framework binaries in your project from the `Carthage/Build` directory: `PusherSwift` and `TweetNacl`
128
121
129
122
#### Xcode 12 considerations
130
123
@@ -162,7 +155,7 @@ let package = Package(
162
155
)
163
156
```
164
157
165
-
You will then need to include an `import PusherSwiftWithEncryption` statement in any source files where you wish to use the SDK. (**N.B. When integrating using Swift Package Manager, encrypted channels are supported by default and there is no 'PusherSwift' module**).
158
+
You will then need to include an `import PusherSwift` statement in any source files where you wish to use the SDK.
166
159
167
160
## Configuration
168
161
@@ -639,19 +632,6 @@ The shared secret used to decrypt events is loaded from the same auth endpoint r
639
632
640
633
Because of the requirement to reload the shared secret on demand, you can only use the following [auth methods](#configuration): `endpoint`, `authRequestBuilder`, `authorizer`. It is not possible to pass an instance of `PusherAuth` to the `subscribe` function if you are subscribing to an encrypted channel.
641
634
642
-
### Installation
643
-
644
-
In your Swift files, you will need to import `PusherSwiftWithEncryption` rather than `PusherSwift`. In Objective-C files, you will need to import `PusherSwiftWithEncryption/PusherSwiftWithEncryption-Swift.h` rather than `PusherSwift/PusherSwift-Swift.h`.
645
-
646
-
#### CocoaPods
647
-
Update your Podfile to include `PusherSwiftWithEncryption` instead of `PusherSwift`.
648
-
649
-
#### Carthage
650
-
You do not need to change your Cartfile. However, you will need to import the `PusherSwiftWithEncryption` framework into your project, instead of `PusherSwift`. You will also need to import the `TweetNacl` framework into your project.
651
-
652
-
#### Swift Package Manager
653
-
Encrypted channels are supported by default when integrating using Swift Package Manager. No code or configuration changes are required.
0 commit comments