Skip to content

Commit 81f96ad

Browse files
committed
Prepare version 5.2.0
1 parent 0817efe commit 81f96ad

File tree

4 files changed

+96
-112
lines changed

4 files changed

+96
-112
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. The format
33

44
This product uses [Semantic Versioning](https://semver.org/).
55

6+
## 5.2.0
7+
* [#226](https://github.com/davidstump/SwiftPhoenixClient/pull/226) Adds `URLResponse` as an optional value in `socket.onError` callbacks to allow for checking status codes from the server when the Socket connection errors out. See Examples in PR for more details
68

79
## 5.1.0
810
* Improves reconnection logic around a heartbeat timeout

Gemfile.lock

+90-84
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,60 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.3)
5-
activesupport (4.2.11.1)
6-
i18n (~> 0.7)
7-
minitest (~> 5.1)
8-
thread_safe (~> 0.3, >= 0.3.4)
9-
tzinfo (~> 1.1)
10-
addressable (2.8.0)
11-
public_suffix (>= 2.0.2, < 5.0)
4+
CFPropertyList (3.0.6)
5+
rexml
6+
activesupport (7.0.4.2)
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
i18n (>= 1.6, < 2)
9+
minitest (>= 5.1)
10+
tzinfo (~> 2.0)
11+
addressable (2.8.1)
12+
public_suffix (>= 2.0.2, < 6.0)
1213
artifactory (3.0.15)
1314
atomos (0.1.3)
14-
aws-eventstream (1.1.1)
15-
aws-partitions (1.489.0)
16-
aws-sdk-core (3.119.1)
15+
aws-eventstream (1.2.0)
16+
aws-partitions (1.716.0)
17+
aws-sdk-core (3.170.0)
1718
aws-eventstream (~> 1, >= 1.0.2)
18-
aws-partitions (~> 1, >= 1.239.0)
19-
aws-sigv4 (~> 1.1)
20-
jmespath (~> 1.0)
21-
aws-sdk-kms (1.46.0)
22-
aws-sdk-core (~> 3, >= 3.119.0)
19+
aws-partitions (~> 1, >= 1.651.0)
20+
aws-sigv4 (~> 1.5)
21+
jmespath (~> 1, >= 1.6.1)
22+
aws-sdk-kms (1.62.0)
23+
aws-sdk-core (~> 3, >= 3.165.0)
2324
aws-sigv4 (~> 1.1)
24-
aws-sdk-s3 (1.99.0)
25-
aws-sdk-core (~> 3, >= 3.119.0)
25+
aws-sdk-s3 (1.119.1)
26+
aws-sdk-core (~> 3, >= 3.165.0)
2627
aws-sdk-kms (~> 1)
27-
aws-sigv4 (~> 1.1)
28-
aws-sigv4 (1.2.4)
28+
aws-sigv4 (~> 1.4)
29+
aws-sigv4 (1.5.2)
2930
aws-eventstream (~> 1, >= 1.0.2)
3031
babosa (1.0.4)
31-
claide (1.0.3)
32-
clamp (1.3.0)
32+
claide (1.1.0)
33+
clamp (1.3.2)
3334
colored (1.2)
3435
colored2 (3.1.2)
3536
commander (4.6.0)
3637
highline (~> 2.0.0)
37-
concurrent-ruby (1.1.5)
38+
concurrent-ruby (1.2.0)
3839
declarative (0.0.20)
3940
digest-crc (0.6.4)
4041
rake (>= 12.0.0, < 14.0.0)
4142
domain_name (0.5.20190701)
4243
unf (>= 0.0.5, < 1.0.0)
43-
dotenv (2.7.6)
44-
emoji_regex (3.2.2)
45-
excon (0.85.0)
46-
faraday (1.7.0)
44+
dotenv (2.8.1)
45+
emoji_regex (3.2.3)
46+
excon (0.99.0)
47+
faraday (1.10.3)
4748
faraday-em_http (~> 1.0)
4849
faraday-em_synchrony (~> 1.0)
4950
faraday-excon (~> 1.1)
50-
faraday-httpclient (~> 1.0.1)
51+
faraday-httpclient (~> 1.0)
52+
faraday-multipart (~> 1.0)
5153
faraday-net_http (~> 1.0)
52-
faraday-net_http_persistent (~> 1.1)
54+
faraday-net_http_persistent (~> 1.0)
5355
faraday-patron (~> 1.0)
5456
faraday-rack (~> 1.0)
55-
multipart-post (>= 1.2, < 3)
57+
faraday-retry (~> 1.0)
5658
ruby2_keywords (>= 0.0.4)
5759
faraday-cookie_jar (0.0.7)
5860
faraday (>= 0.8.0)
@@ -61,14 +63,17 @@ GEM
6163
faraday-em_synchrony (1.0.0)
6264
faraday-excon (1.1.0)
6365
faraday-httpclient (1.0.1)
66+
faraday-multipart (1.0.4)
67+
multipart-post (~> 2)
6468
faraday-net_http (1.0.1)
6569
faraday-net_http_persistent (1.2.0)
6670
faraday-patron (1.0.0)
6771
faraday-rack (1.0.0)
68-
faraday_middleware (1.1.0)
72+
faraday-retry (1.0.3)
73+
faraday_middleware (1.2.0)
6974
faraday (~> 1.0)
70-
fastimage (2.2.5)
71-
fastlane (2.191.0)
75+
fastimage (2.2.6)
76+
fastlane (2.212.0)
7277
CFPropertyList (>= 2.3, < 4.0.0)
7378
addressable (>= 2.8, < 3.0.0)
7479
artifactory (~> 3.0)
@@ -94,6 +99,7 @@ GEM
9499
mini_magick (>= 4.9.4, < 5.0.0)
95100
multipart-post (~> 2.0.0)
96101
naturally (~> 2.2)
102+
optparse (~> 0.1.1)
97103
plist (>= 3.1.0, < 4.0.0)
98104
rubyzip (>= 2.0.0, < 3.0.0)
99105
security (= 0.1.3)
@@ -107,9 +113,9 @@ GEM
107113
xcpretty (~> 0.3.0)
108114
xcpretty-travis-formatter (>= 0.0.3)
109115
gh_inspector (1.1.3)
110-
google-apis-androidpublisher_v3 (0.10.0)
111-
google-apis-core (>= 0.4, < 2.a)
112-
google-apis-core (0.4.1)
116+
google-apis-androidpublisher_v3 (0.34.0)
117+
google-apis-core (>= 0.9.1, < 2.a)
118+
google-apis-core (0.11.0)
113119
addressable (~> 2.5, >= 2.5.1)
114120
googleauth (>= 0.16.2, < 2.a)
115121
httpclient (>= 2.8.1, < 3.a)
@@ -118,58 +124,59 @@ GEM
118124
retriable (>= 2.0, < 4.a)
119125
rexml
120126
webrick
121-
google-apis-iamcredentials_v1 (0.7.0)
122-
google-apis-core (>= 0.4, < 2.a)
123-
google-apis-playcustomapp_v1 (0.5.0)
124-
google-apis-core (>= 0.4, < 2.a)
125-
google-apis-storage_v1 (0.6.0)
126-
google-apis-core (>= 0.4, < 2.a)
127+
google-apis-iamcredentials_v1 (0.17.0)
128+
google-apis-core (>= 0.11.0, < 2.a)
129+
google-apis-playcustomapp_v1 (0.12.0)
130+
google-apis-core (>= 0.9.1, < 2.a)
131+
google-apis-storage_v1 (0.19.0)
132+
google-apis-core (>= 0.9.0, < 2.a)
127133
google-cloud-core (1.6.0)
128134
google-cloud-env (~> 1.0)
129135
google-cloud-errors (~> 1.0)
130-
google-cloud-env (1.5.0)
131-
faraday (>= 0.17.3, < 2.0)
132-
google-cloud-errors (1.1.0)
133-
google-cloud-storage (1.34.1)
134-
addressable (~> 2.5)
136+
google-cloud-env (1.6.0)
137+
faraday (>= 0.17.3, < 3.0)
138+
google-cloud-errors (1.3.0)
139+
google-cloud-storage (1.44.0)
140+
addressable (~> 2.8)
135141
digest-crc (~> 0.4)
136142
google-apis-iamcredentials_v1 (~> 0.1)
137-
google-apis-storage_v1 (~> 0.1)
143+
google-apis-storage_v1 (~> 0.19.0)
138144
google-cloud-core (~> 1.6)
139145
googleauth (>= 0.16.2, < 2.a)
140146
mini_mime (~> 1.0)
141-
googleauth (0.17.0)
142-
faraday (>= 0.17.3, < 2.0)
147+
googleauth (1.3.0)
148+
faraday (>= 0.17.3, < 3.a)
143149
jwt (>= 1.4, < 3.0)
144150
memoist (~> 0.16)
145151
multi_json (~> 1.11)
146152
os (>= 0.9, < 2.0)
147-
signet (~> 0.14)
153+
signet (>= 0.16, < 2.a)
148154
highline (2.0.3)
149-
http-cookie (1.0.4)
155+
http-cookie (1.0.5)
150156
domain_name (~> 0.5)
151157
httpclient (2.8.3)
152-
i18n (0.9.5)
158+
i18n (1.12.0)
153159
concurrent-ruby (~> 1.0)
154-
jmespath (1.4.0)
155-
json (2.5.1)
156-
jwt (2.2.3)
160+
jmespath (1.6.2)
161+
json (2.6.3)
162+
jwt (2.7.0)
157163
memoist (0.16.2)
158-
mini_magick (4.11.0)
159-
mini_mime (1.1.1)
160-
mini_portile2 (2.4.0)
161-
minitest (5.11.3)
164+
mini_magick (4.12.0)
165+
mini_mime (1.1.2)
166+
minitest (5.17.0)
162167
multi_json (1.15.0)
163168
multipart-post (2.0.0)
164169
nanaimo (0.3.0)
165170
naturally (2.2.1)
166-
nokogiri (1.10.7)
167-
mini_portile2 (~> 2.4.0)
168-
os (1.1.1)
169-
plist (3.6.0)
170-
public_suffix (4.0.6)
171+
nokogiri (1.14.2-x86_64-darwin)
172+
racc (~> 1.4)
173+
optparse (0.1.1)
174+
os (1.1.4)
175+
plist (3.7.0)
176+
public_suffix (5.0.1)
177+
racc (1.6.2)
171178
rake (13.0.6)
172-
representable (3.1.1)
179+
representable (3.2.0)
173180
declarative (< 0.1.0)
174181
trailblazer-option (>= 0.1.1, < 0.2.0)
175182
uber (< 0.2.0)
@@ -179,39 +186,38 @@ GEM
179186
ruby2_keywords (0.0.5)
180187
rubyzip (2.3.2)
181188
security (0.1.3)
182-
signet (0.15.0)
183-
addressable (~> 2.3)
184-
faraday (>= 0.17.3, < 2.0)
189+
signet (0.17.0)
190+
addressable (~> 2.8)
191+
faraday (>= 0.17.5, < 3.a)
185192
jwt (>= 1.5, < 3.0)
186193
multi_json (~> 1.10)
187-
simctl (1.6.8)
194+
simctl (1.6.10)
188195
CFPropertyList
189196
naturally
190-
slather (2.4.7)
197+
slather (2.7.4)
191198
CFPropertyList (>= 2.2, < 4)
192-
activesupport (>= 4.0.2, < 5)
199+
activesupport
193200
clamp (~> 1.3)
194-
nokogiri (~> 1.8)
195-
xcodeproj (~> 1.7)
201+
nokogiri (>= 1.13.9)
202+
xcodeproj (~> 1.21)
196203
terminal-notifier (2.0.0)
197204
terminal-table (1.8.0)
198205
unicode-display_width (~> 1.1, >= 1.1.1)
199-
thread_safe (0.3.6)
200-
trailblazer-option (0.1.1)
206+
trailblazer-option (0.1.2)
201207
tty-cursor (0.7.1)
202208
tty-screen (0.8.1)
203209
tty-spinner (0.9.3)
204210
tty-cursor (~> 0.7)
205-
tzinfo (1.2.5)
206-
thread_safe (~> 0.1)
211+
tzinfo (2.0.6)
212+
concurrent-ruby (~> 1.0)
207213
uber (0.1.0)
208214
unf (0.1.4)
209215
unf_ext
210-
unf_ext (0.0.7.7)
211-
unicode-display_width (1.7.0)
212-
webrick (1.7.0)
216+
unf_ext (0.0.8.2)
217+
unicode-display_width (1.8.0)
218+
webrick (1.8.1)
213219
word_wrap (1.0.0)
214-
xcodeproj (1.21.0)
220+
xcodeproj (1.22.0)
215221
CFPropertyList (>= 2.3.3, < 4.0)
216222
atomos (~> 0.1.3)
217223
claide (>= 1.0.2, < 2.0)
@@ -224,11 +230,11 @@ GEM
224230
xcpretty (~> 0.2, >= 0.0.7)
225231

226232
PLATFORMS
227-
ruby
233+
x86_64-darwin-19
228234

229235
DEPENDENCIES
230236
fastlane
231237
slather
232238

233239
BUNDLED WITH
234-
1.17.2
240+
2.2.16

README.md

+3-27
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,12 @@ where as `ChatRoomViewController` is a more "complete" example which targets
2525
dwyl's [phoenix-chat-example](https://github.com/dwyl/phoenix-chat-example) Heroku app.
2626

2727

28-
## Modules
29-
30-
31-
Prior to v5.0.0, SwiftPhoenixClient came bundled with RxSwift and Starscream extensions. These have been (or are in the process of being) broken
32-
out into separate repositories so they can be excluded if desired.
33-
3428
### SwiftPhoenixClient
3529

3630
The core module which provides the Phoenix Channels and Presence logic. It also
3731
uses URLSession's default WebSocket implementation which has a minimum iOS target
3832
of 13.0.
3933

40-
### StarscreamSwiftPhoenixClient
41-
42-
If you are targeting iOS < 13.0, or if you you prefer to use [Starscream](https://github.com/daltoniam/Starscream), then
43-
you will need to also use the Starscream module to connect to your server.
44-
45-
Please see the StarscreamSwiftPhoenixClient repository for details
46-
47-
Coming soon.
48-
49-
50-
### RxSwift
51-
52-
If you are also using RxSwift in your project, then this module provides
53-
extensions for you to use to observe events on a channel.
54-
55-
Please see the [RxSwiftPhoenixClient](https://github.com/dsrees/RxSwiftPhoenixClient) repo for more details.
56-
57-
5834

5935
## Installation
6036

@@ -65,7 +41,7 @@ Podfile. Keep in mind that in order to use Swift Phoenix Client, the minimum iOS
6541
target must be '9.0'
6642

6743
```RUBY
68-
pod "SwiftPhoenixClient", '~> 5.1'
44+
pod "SwiftPhoenixClient", '~> 5.2'
6945
```
7046

7147
and running `pod install`. From there you will need to add `import SwiftPhoenixClient` in any class you want it to be used.
@@ -76,7 +52,7 @@ If you use Carthage to manage your dependencies, simply add
7652
SwiftPhoenixClient to your `Cartfile`:
7753

7854
```
79-
github "davidstump/SwiftPhoenixClient" ~> 5.1
55+
github "davidstump/SwiftPhoenixClient" ~> 5.2
8056
```
8157

8258
Then run `carthage update`.
@@ -92,7 +68,7 @@ _Note: Instructions below are for using **SwiftPM** without the Xcode UI. It's t
9268
To integrate using Apple's Swift package manager, without Xcode integration, add the following as a dependency to your `Package.swift`:
9369

9470
```swift
95-
.package(url: "https://github.com/davidstump/SwiftPhoenixClient.git", .upToNextMajor(from: "5.1.0"))
71+
.package(url: "https://github.com/davidstump/SwiftPhoenixClient.git", .upToNextMajor(from: "5.2.0"))
9672
```
9773

9874
and then specify `"SwiftPhoenixClient"` as a dependency of the Target in which you wish to use SwiftPhoenixClient.

SwiftPhoenixClient.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "SwiftPhoenixClient"
11-
s.version = "5.1.0"
11+
s.version = "5.2.0"
1212
s.summary = "Connect your Phoenix and iOS applications through WebSockets!"
1313
s.swift_version = "5.0"
1414
s.description = <<-EOS

0 commit comments

Comments
 (0)