Skip to content

Commit 43907a4

Browse files
committed
Merge branch 'development'
* development: (23 commits) only build mac since the other targets aren't used in testing add package resolved file rename method update readme for carthage move carthage update to before_install Document SSLSecurity class update versions; use upstream starscream in podfile dep Go back to Starscream 2.1.1 Fixes Mac build Proof of concept Remove StarScream Fix documentation Don't set configs after connect Allow changing config after init but before connect. Fixes #680 Make a bunch of things public. Fixes #803 More documentation bump starscream dev update version; again work on fixing for latest version update starscream ...
2 parents 8f50c5a + 66d052c commit 43907a4

25 files changed

+691
-290
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
language: objective-c
22
xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder
3-
xcode_scheme: SocketIO-iOS
3+
xcode_scheme: SocketIO-Mac
44
osx_image: xcode9
55
branches:
66
only:
77
- master
88
- development
9-
- swift4.0
109
before_install:
1110
- brew update
12-
- brew outdated xctool || brew upgrade xctool
11+
# - brew outdated xctool || brew upgrade xctool
12+
- brew outdated carthage || brew upgrade carthage
13+
- carthage update --platform macosx
1314
script:
1415
- xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test -quiet
1516
# - xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build-for-testing -quiet

Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "daltoniam/Starscream" ~> 2.0

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "daltoniam/Starscream" "2.1.1"

Package.resolved

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ let package = Package(
88
.library(name: "SocketIO", targets: ["SocketIO"])
99
],
1010
dependencies: [
11-
.package(url: "https://github.com/nuclearace/Starscream", .upToNextMajor(from: "8.0.0")),
11+
.package(url: "https://github.com/daltoniam/Starscream", .upToNextMajor(from: "2.1.1")),
1212
],
1313
targets: [
14-
.target(name: "SocketIO", dependencies: ["StarscreamSocketIO"], exclude: ["Sources/Starscream"])
14+
.target(name: "SocketIO", dependencies: ["Starscream"])
1515
]
1616
)

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,23 @@ let package = Package(
8585
Then import `import SocketIO`.
8686

8787
### Carthage
88-
Add these line to your `Cartfile`:
88+
Add this line to your `Cartfile`:
8989
```
90-
github "nuclearace/Starscream" ~> 8.0.7
91-
github "socketio/socket.io-client-swift" ~> 12.0.0 # Or latest version
90+
github "socketio/socket.io-client-swift" ~> 12.1.0 # Or latest version
9291
```
9392

9493
Run `carthage update --platform ios,macosx`.
9594

95+
Add the `Starscream` and `SocketIO` frameworks to your projects and follow the usual Carthage process.
96+
9697
### CocoaPods 1.0.0 or later
9798
Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
9899

99100
```ruby
100101
use_frameworks!
101102

102103
target 'YourApp' do
103-
pod 'Socket.IO-Client-Swift', '~> 12.0.0' # Or latest version
104+
pod 'Socket.IO-Client-Swift', '~> 12.1.0' # Or latest version
104105
end
105106
```
106107

Socket.IO-Client-Swift.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Socket.IO-Client-Swift"
33
s.module_name = "SocketIO"
4-
s.version = "12.0.0"
4+
s.version = "12.1.0"
55
s.summary = "Socket.IO-client for iOS and OS X"
66
s.description = <<-DESC
77
Socket.IO-client for iOS and OS X.
@@ -17,12 +17,12 @@ Pod::Spec.new do |s|
1717
s.requires_arc = true
1818
s.source = {
1919
:git => "https://github.com/socketio/socket.io-client-swift.git",
20-
:tag => 'v12.0.0',
20+
:tag => 'v12.1.0',
2121
:submodules => true
2222
}
2323
s.pod_target_xcconfig = {
2424
'SWIFT_VERSION' => '4.0'
2525
}
2626
s.source_files = "Source/SocketIO/**/*.swift", "Source/SocketIO/*.swift"
27-
s.dependency "StarscreamSocketIO", "~> 8.0.7"
27+
s.dependency "Starscream", "~> 2.1.1"
2828
end

Socket.IO-Client-Swift.xcodeproj/project.pbxproj

Lines changed: 100 additions & 159 deletions
Large diffs are not rendered by default.

SocketIO-MacTests/SocketObjectiveCTest.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
@import Foundation;
1212
@import XCTest;
1313
@import SocketIO;
14-
@import StarscreamSocketIO;
1514

1615
@interface SocketObjectiveCTest : XCTestCase
1716

@@ -103,7 +102,7 @@ - (void)testSocketManager {
103102

104103
- (void)testSSLSecurity {
105104
SSLSecurity* sec = [[SSLSecurity alloc] initWithUsePublicKeys:0];
106-
sec.isReady = 0;
105+
sec = nil;
107106
}
108107

109108
@end

0 commit comments

Comments
 (0)