Skip to content

Commit 536da3f

Browse files
committed
Merge branch 'pusher-master'
2 parents 5d1b58d + 187003e commit 536da3f

File tree

209 files changed

+28295
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+28295
-668
lines changed

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
language: objective-c
2-
osx_image: xcode10.2
2+
osx_image: xcode11
33
sudo: false
4+
cache:
5+
directories:
6+
- Carthage
47
env:
5-
- iOS= DST='platform=iOS Simulator,name=iPhone X' ACTION=test DEVICE='iPhone X (11.3)'
8+
- iOS= DST='platform=iOS Simulator,name=iPhone 11' ACTION=test DEVICE='iPhone 11 (11.3)'
69
- tvOS= DST='platform=tvOS Simulator,name=Apple TV 4K' ACTION=test DEVICE='Apple TV 4K (11.3)'
710
- macOS= DST='platform=OS X' ACTION=test
811
before_install:
@@ -15,17 +18,20 @@ before_install:
1518
brew install carthage;
1619
fi
1720
- gem install xcpretty --no-document
18-
- carthage bootstrap --no-use-binaries
21+
- carthage bootstrap --no-use-binaries --cache-builds
1922
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "$DEVICE \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
2023
- echo "$SIMULATOR_ID"
2124
before_deploy:
2225
- carthage build --no-skip-current
2326
- carthage archive PusherSwift
27+
- carthage archive PusherSwiftWithEncryption
2428
deploy:
2529
provider: releases
2630
api_key:
2731
secure: cjodA0I5fTEU60M+W1NNCj18EpL7yt3uxLN1aeexN33HfRoo153oi4jV/FWlPtQ4QC5FhFF+Nbc69V2paOSrI4iht+UB2Hb0jYTuHWv8ecYa33GFksl7zD9BCf8D3RZqIagTzJC7Vf0FqKKlspZMwIMAL02Z5uwsp5h4Zjrq8lo=
28-
file: PusherSwift.framework.zip
32+
file:
33+
- PusherSwift.framework.zip
34+
- PusherSwiftWithEncryption.framework.zip
2935
skip_cleanup: true
3036
on:
3137
repo: pusher/pusher-websocket-swift
@@ -35,10 +41,15 @@ script:
3541
- xcodebuild -version
3642
- xcodebuild -workspace PusherSwift.xcworkspace -list
3743
- if [ "$DST" != "platform=OS X" ]; then
38-
echo "$SIMULARTOR_ID";
44+
echo "$SIMULATOR_ID";
3945
open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID || true; sleep 20;
4046
fi
4147
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift.xcodeproj clean build | xcpretty -tc;
4248
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift.xcodeproj -enableCodeCoverage YES $ACTION | xcpretty -tc;
49+
- if [[ "$DST" != "platform=tvOS"* ]]; then
50+
xcodebuild -scheme PusherSwiftWithEncryption -destination "$DST" -project PusherSwift.xcodeproj clean build | xcpretty -tc;
51+
xcodebuild -scheme PusherSwiftWithEncryption -destination "$DST" -project PusherSwift.xcodeproj -enableCodeCoverage YES $ACTION | xcpretty -tc;
52+
fi
4353
after_success:
4454
- sleep 5
55+
- bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased](https://github.com/pusher/pusher-websocket-swift/compare/7.0.0...HEAD)
7+
## [Unreleased](https://github.com/pusher/pusher-websocket-swift/compare/8.0.0...HEAD)
8+
9+
## [8.0.0](https://github.com/pusher/pusher-websocket-swift/compare/7.2.0...8.0.0) - 2020-04-27
10+
11+
### Added
12+
13+
- Added support for [end-to-end encryption](https://pusher.com/docs/channels/using_channels/encrypted-channels). There is a new target: `PusherSwiftWithEncryption` and a new dependency for that target `Sodium`. The original `PusherSwift` target does not require `Sodium` and has all the same features as `PusherSwiftWithEncryption` except the ability to decrypt events. You can find details about how to use `PusherSwiftWithEncryption` in the [README](https://github.com/pusher/pusher-websocket-swift#private-encrypted-channels-beta). As part of this feature, there is a new function in the `PusherDelegate`: `failedToDecryptEvent`, and channel names prefixed with `private-encrypted-` are now interpreted as encrypted channels in both targets.
14+
15+
### Changed
16+
17+
- The `encrypted` parameter for `PusherClientOptions` has been renamed to `useTLS`. Its behavior and default value (`true`) are unchanged.
18+
- Updated to Swift 5.0 and updated dependencies ([@JonathanDowning](https://github.com/JonathanDowning)).
19+
20+
### Removed
21+
22+
- CryptoSwift is no longer a dependency.
23+
24+
## [7.2.0](https://github.com/pusher/pusher-websocket-swift/compare/7.1.0...7.2.0) - 2019-10-18
25+
26+
### Added
27+
28+
- Added support for Swift Package Manager ([@JonathanDowning](https://github.com/JonathanDowning)).
29+
30+
### Fixed
31+
32+
- Fixed a compilation warning caused by incorrect parameter names in documentation comments ([@funkyboy](https://github.com/funkyboy)).
33+
34+
## [7.1.0](https://github.com/pusher/pusher-websocket-swift/compare/7.0.0...7.1.0) - 2019-10-03
35+
36+
### Added
37+
38+
- Added new `bind` functions which accept a callback that receives a `PusherEvent`. A `PusherEvent` represents an event received from the websocket and has properties containing the event name, channel name and data. In addition, `PusherEvent` has a new property, `userId`, which allows you to verify the ID of the user who triggered a client event on a presence channel. You can read more about this feature in [the docs](https://pusher.com/docs/channels/using_channels/events#user-id-in-client-events). All the old `bind` functions are still available for backwards compatibility. The `data` property of `PusherEvent` is not automatically parsed from JSON and you can decide to parse that as required. The parsing behaviour is unchanged for data passed to callbacks bound by the old `bind` functions.
39+
40+
### Changed
41+
42+
- Updated the deployment targets so they are consistent regardless of whether you import the library using CocoaPods or Carthage.
843

944
## [7.0.0](https://github.com/pusher/pusher-websocket-swift/compare/6.1.0...7.0.0) - 2019-04-16
1045

Cartfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "krzyzanowskim/CryptoSwift" ~> 0.15.0
2-
github "ashleymills/Reachability.swift" == 4.3.0
3-
github "daltoniam/Starscream" == 3.0.6
1+
github "ashleymills/Reachability.swift" ~> 5.0.0
2+
github "daltoniam/Starscream" ~> 3.1.0
3+
github "jedisct1/swift-sodium" == 0.8.0

Cartfile.resolved

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "ashleymills/Reachability.swift" "v4.3.0"
2-
github "daltoniam/Starscream" "3.0.6"
3-
github "krzyzanowskim/CryptoSwift" "0.15.0"
1+
github "ashleymills/Reachability.swift" "v5.0.0"
2+
github "daltoniam/Starscream" "3.1.1"
3+
github "jedisct1/swift-sodium" "0.8.0"

Consumption-Tests/.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
# Cartfile's are autogenerated with the `checkout.sh` script
4+
# We do not want to version anything Carthage related to emulate a fresh Carthage checkout
5+
Cartfile
6+
Cartfile.resolved
7+
Carthage
8+
9+
10+
# Podfile's are autogenerated with the `checkout.sh` script
11+
# We do not want to version anything Cocoapods related to emulate a fresh Cocoapods checkout
12+
Podfile
13+
Podfile.lock
14+
Pods
15+
16+
# We do not want to version anything SPM related to emulate a fresh SPM checkout
17+
Package.resolved
18+

Consumption-Tests/Carthage-Latest/Carthage-Latest.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)