Skip to content

Commit 598cfb1

Browse files
authored
Merge pull request #178 from pusher/cleanup-crash-fix
Cleanup crash fix
2 parents 8eeeb51 + 418d705 commit 598cfb1

36 files changed

+485
-4418
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: objective-c
2-
osx_image: xcode9
2+
osx_image: xcode9.3beta
33
sudo: false
44
env:
5-
- iOS= DST='platform=iOS Simulator,name=iPhone 6S' ACTION=test DEVICE='iPhone 6s (10.0)'
6-
- tvOS= DST='platform=tvOS Simulator,name=Apple TV 1080p' ACTION=test DEVICE='Apple TV 1080p (10.0)'
5+
- iOS= DST='platform=iOS Simulator,name=iPhone X' ACTION=test DEVICE='iPhone X (11.3)'
6+
- tvOS= DST='platform=tvOS Simulator,name=Apple TV 4K' ACTION=test DEVICE='Apple TV 4K (11.3)'
77
- macOS= DST='platform=OS X' ACTION=test
88
before_install:
99
- brew update
@@ -15,11 +15,12 @@ before_install:
1515
brew install carthage;
1616
fi
1717
- gem install xcpretty --no-document
18+
- carthage update --no-use-binaries
1819
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "$DEVICE \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
1920
- echo "$SIMULATOR_ID"
2021
before_deploy:
21-
- carthage build --no-skip-current --project-directory PusherSwift
22-
- carthage archive PusherSwift --project-directory PusherSwift
22+
- carthage build --no-skip-current
23+
- carthage archive PusherSwift
2324
deploy:
2425
provider: releases
2526
api_key:
@@ -37,7 +38,7 @@ script:
3738
echo "$SIMULARTOR_ID";
3839
open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID || true; sleep 20;
3940
fi
40-
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift/PusherSwift.xcodeproj clean build | xcpretty -tc;
41-
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift/PusherSwift.xcodeproj -enableCodeCoverage YES $ACTION | xcpretty -tc;
41+
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift.xcodeproj clean build | xcpretty -tc;
42+
- xcodebuild -scheme PusherSwift -destination "$DST" -project PusherSwift.xcodeproj -enableCodeCoverage YES $ACTION | xcpretty -tc;
4243
after_success:
4344
- sleep 5

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased](https://github.com/pusher/pusher-websocket-swift/compare/5.1.1...HEAD)
88

9+
### Added
10+
11+
- Client will now send a ping to the server if there has been a period of inactivity on the socket. This should help detect some disconnections that previously weren't being noticed.
12+
13+
### Changed
14+
15+
- All dependencies are now defined to be brought in using the appropriate package manager (Carthage or CocoaPods)
16+
- Reconnection strategy has been changed to now attempt reconnecting indefinitely, with an exponential backoff but a maximum interval of 120 seconds between reconnection attempts.
17+
18+
### Removed
19+
20+
- Removed the deprecated `AuthRequestBuilderProtocol` function: `func requestFor(socketID: String, channel: PusherChannel) -> NSMutableURLRequest?`
21+
- `reconnectingWhenNetworkBecomesReachable` connection state
22+
923
## [5.1.1](https://github.com/pusher/pusher-websocket-swift/compare/5.1.0...5.1.1) - 2018-01-22
1024

1125
### Changed

Cartfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
github "krzyzanowskim/CryptoSwift"
2+
github "ashleymills/Reachability.swift"
3+
github "icanzilb/TaskQueue"
4+
5+
# github "daltoniam/Starscream"
6+
github "hamchapman/Starscream"

Cartfile.resolved

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github "ashleymills/Reachability.swift" "v4.1.0"
2+
github "hamchapman/Starscream" "3.0.6"
3+
github "icanzilb/TaskQueue" "1.1.0"
4+
github "krzyzanowskim/CryptoSwift" "0.9.0"

Carthage.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FRAMEWORK_SEARCH_PATHS[sdk=macosx*] = $(SRCROOT)/Carthage/Build/Mac/ $(inherited)
2+
FRAMEWORK_SEARCH_PATHS[sdk=iphone*] = $(SRCROOT)/Carthage/Build/iOS/ $(inherited)
3+
FRAMEWORK_SEARCH_PATHS[sdk=appletv*] = $(SRCROOT)/Carthage/Build/tvOS/ $(inherited)

PusherSwift.podspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Pod::Spec.new do |s|
1111
s.requires_arc = true
1212
s.source_files = 'Sources/*.swift'
1313

14+
s.dependency 'CryptoSwift', '~> 0.9.0'
15+
s.dependency 'ReachabilitySwift', '~> 4.1.0'
16+
s.dependency 'TaskQueue', '~> 1.1.0'
17+
s.dependency 'StarscreamFork', '~> 3.0.6'
18+
1419
s.ios.deployment_target = '8.0'
1520
s.osx.deployment_target = '10.10'
1621
s.tvos.deployment_target = '9.0'

PusherSwift/PusherSwift.xcodeproj/project.pbxproj renamed to PusherSwift.xcodeproj/project.pbxproj

Lines changed: 35 additions & 41 deletions
Large diffs are not rendered by default.

PusherSwift/PusherSwift.xcodeproj/xcshareddata/xcschemes/PusherSwift.xcscheme renamed to PusherSwift.xcodeproj/xcshareddata/xcschemes/PusherSwift.xcscheme

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,9 +26,8 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
30-
shouldUseLaunchSchemeArgsEnv = "YES"
31-
codeCoverageEnabled = "YES">
29+
codeCoverageEnabled = "YES"
30+
shouldUseLaunchSchemeArgsEnv = "YES">
3231
<Testables>
3332
<TestableReference
3433
skipped = "NO">
@@ -57,7 +56,6 @@
5756
buildConfiguration = "Debug"
5857
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5958
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
60-
language = ""
6159
launchStyle = "0"
6260
useCustomWorkingDirectory = "NO"
6361
ignoresPersistentStateOnLaunch = "NO"

PusherSwift.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)