diff --git a/README.md b/README.md index f1cd3ab..9755d4a 100644 --- a/README.md +++ b/README.md @@ -61,27 +61,23 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{ Checkout the [FAQs](https://nuclearace.github.io/Socket.IO-Client-Swift/faq.html) for commonly asked questions. ## Installation -Requires Swift 3/Xcode 8.x +Requires Swift 4/Xcode 9.x -If you need swift 2.3 use the swift2.3 tag (Pre-Swift 3 support is no longer maintained) +If you need Swift 2.3 use the [swift2.3 tag](https://github.com/socketio/socket.io-client-swift/releases/tag/swift2.3) (Pre-Swift 4 support is no longer maintained) -If you need swift 2.2 use 7.x. - -If you need Swift 2.1 use v5.5.0. - -If you need Swift 1.2 use v2.4.5. - -If you need Swift 1.1 use v1.5.2. +If you need Swift 3.x use v11.1.3. ### Swift Package Manager Add the project as a dependency to your Package.swift: ```swift +// swift-tools-version:4.0 + import PackageDescription let package = Package( name: "YourSocketIOProject", dependencies: [ - .Package(url: "https://github.com/socketio/socket.io-client-swift", majorVersion: 11) + .package(url: "https://github.com/socketio/socket.io-client-swift", .upToNextMajor(from: "12.0.0")) ] ) ``` @@ -91,8 +87,8 @@ Then import `import SocketIO`. ### Carthage Add these line to your `Cartfile`: ``` -github "nuclearace/Starscream" ~> 8.0.5 -github "socketio/socket.io-client-swift" ~> 11.1.3 # Or latest version +github "nuclearace/Starscream" ~> 8.0.7 +github "socketio/socket.io-client-swift" ~> 12.0.0 # Or latest version ``` Run `carthage update --platform ios,macosx`. @@ -104,7 +100,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`: use_frameworks! target 'YourApp' do - pod 'Socket.IO-Client-Swift', '~> 11.1.3' # Or latest version + pod 'Socket.IO-Client-Swift', '~> 12.0.0' # Or latest version end ``` diff --git a/Socket.IO-Client-Swift.podspec b/Socket.IO-Client-Swift.podspec index eae9b3e..d757230 100644 --- a/Socket.IO-Client-Swift.podspec +++ b/Socket.IO-Client-Swift.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Socket.IO-Client-Swift" s.module_name = "SocketIO" - s.version = "11.1.3" + s.version = "12.0.0" s.summary = "Socket.IO-client for iOS and OS X" s.description = <<-DESC Socket.IO-client for iOS and OS X. @@ -17,12 +17,12 @@ Pod::Spec.new do |s| s.requires_arc = true s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", - :tag => 'v11.1.3', + :tag => 'v12.0.0', :submodules => true } s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' } s.source_files = "Source/SocketIO/**/*.swift", "Source/SocketIO/*.swift" - s.dependency "StarscreamSocketIO", "~> 8.0.5" + s.dependency "StarscreamSocketIO", "~> 8.0.7" end diff --git a/docs/Classes.html b/docs/Classes.html index 09de957..6399722 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -129,10 +129,10 @@ Typealiases
@@ -155,9 +155,9 @@
-
+
- SocketEngine
+ SocketEngine
SocketEnginePollable
-
+
- SocketAckEmitter
+ SocketAckEmitter
@@ -218,9 +218,9 @@ See SocketEnginePollable
-
+
- OnAckCallback
+ OnAckCallback
@@ -256,9 +256,9 @@ Example:
-
+
- SocketAnyEvent
+ SocketAnyEvent
@@ -288,9 +288,9 @@ Example:
-
+
- SocketIOClient
+ SocketIOClient
@@ -324,9 +324,9 @@ Example:
@@ -372,8 +372,8 @@ manager["room1"]?.emit("hello")