Skip to content

Commit 40c98d5

Browse files
committed
bump version; better spm example
1 parent c8a127a commit 40c98d5

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,15 @@ Add the project as a dependency to your Package.swift:
7575
import PackageDescription
7676
7777
let package = Package(
78-
name: "YourSocketIOProject",
78+
name: "socket.io-test",
79+
products: [
80+
.executable(name: "socket.io-test", targets: ["YourTargetName"])
81+
],
7982
dependencies: [
80-
.package(url: "https://github.com/socketio/socket.io-client-swift", .upToNextMajor(from: "12.0.0"))
83+
.package(url: "https://github.com/socketio/socket.io-client-swift", .upToNextMajor(from: "12.1.0"))
84+
],
85+
targets: [
86+
.target(name: "YourTargetName", dependencies: ["SocketIO"], path: "./Path/To/Your/Sources")
8187
]
8288
)
8389
```
@@ -87,7 +93,7 @@ Then import `import SocketIO`.
8793
### Carthage
8894
Add this line to your `Cartfile`:
8995
```
90-
github "socketio/socket.io-client-swift" ~> 12.1.0 # Or latest version
96+
github "socketio/socket.io-client-swift" ~> 12.1.1 # Or latest version
9197
```
9298

9399
Run `carthage update --platform ios,macosx`.
@@ -101,7 +107,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
101107
use_frameworks!
102108

103109
target 'YourApp' do
104-
pod 'Socket.IO-Client-Swift', '~> 12.1.0' # Or latest version
110+
pod 'Socket.IO-Client-Swift', '~> 12.1.1' # Or latest version
105111
end
106112
```
107113

Socket.IO-Client-Swift.podspec

+2-2
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.1.0"
4+
s.version = "12.1.1"
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,7 +17,7 @@ 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.1.0',
20+
:tag => 'v12.1.1',
2121
:submodules => true
2222
}
2323
s.pod_target_xcconfig = {

0 commit comments

Comments
 (0)