Skip to content

Commit 1b79c41

Browse files
committed
Bump to 4.0.0
1 parent 339100e commit 1b79c41

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 4.0.0
4+
5+
* Made code required for push notifications available on macOS platform (i.e. push notifications work on macOS!)
6+
* Removed `PusherConnectionDelegate` and moved all delegate functions into unified `PusherDelegate`
7+
* Renamed most delegate functions:
8+
- `didRegisterForPushNotifications(clientId: String)` -> `registeredForPushNotifications(clientId: String)`
9+
- `didSubscribeToInterest(named name: String)` -> `subscribedToInterest(name: String)`
10+
- `didUnsubscribeFromInterest(named name: String)` -> `unsubscribedFromInterest(name: String)`
11+
- `connectionStateDidChange?(from: oldState, to: newState)` -> `changedConnectionState(from old: ConnectionState, to new: ConnectionState)`
12+
- `subscriptionDidSucceed?(channelName: channelName)` -> `subscribedToChannel(name: String)`
13+
- `subscriptionDidFail?(channelName: channelName, response: response, data: data, error: error)` -> `failedToSubscribeToChannel(name: String, response: URLResponse?, data: String?, error: NSError?)`
14+
* Added macOS Example Swift project that contains an example macOS app to demo push notifications (requires setting up with your own Pusher app)
15+
* Update CryptoSwift and Starscream dependencies
16+
* Made `NativePusher` not be a singleton anymore
17+
* Fixed `taskQueue` crash (#96)
18+
319
## 3.2.0
420

521
* Authentication requests that result in any status code other that 200 or 201 are now treated as failures (previously any 2xx status code was treated as a success)

PusherSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PusherSwift'
3-
s.version = '3.2.0'
3+
s.version = '4.0.0'
44
s.summary = 'A Pusher client library in Swift'
55
s.homepage = 'https://github.com/pusher/pusher-websocket-swift'
66
s.license = 'MIT'

Source/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.2.0</string>
18+
<string>4.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Source/PusherSwift.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010
let PROTOCOL = 7
11-
let VERSION = "3.2.0"
11+
let VERSION = "4.0.0"
1212
let CLIENT_NAME = "pusher-websocket-swift"
1313

1414
@objc open class Pusher: NSObject {

Tests/PusherClientInitializationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import PusherSwift
1010
import XCTest
1111

12-
let VERSION = "3.2.0"
12+
let VERSION = "4.0.0"
1313

1414
class ClientInitializationTests: XCTestCase {
1515
var key: String!

0 commit comments

Comments
 (0)