handle version in keyValueToSocketIOClientOption
This commit is contained in:
parent
162eb3d649
commit
2c78e36ebd
@ -1,7 +1,7 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "Socket.IO-Client-Swift"
|
s.name = "Socket.IO-Client-Swift"
|
||||||
s.module_name = "SocketIO"
|
s.module_name = "SocketIO"
|
||||||
s.version = "16.0.0"
|
s.version = "16.0.1"
|
||||||
s.summary = "Socket.IO-client for iOS and OS X"
|
s.summary = "Socket.IO-client for iOS and OS X"
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
Socket.IO-client for iOS and OS X.
|
Socket.IO-client for iOS and OS X.
|
||||||
@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|||||||
s.requires_arc = true
|
s.requires_arc = true
|
||||||
s.source = {
|
s.source = {
|
||||||
:git => "https://github.com/socketio/socket.io-client-swift.git",
|
:git => "https://github.com/socketio/socket.io-client-swift.git",
|
||||||
:tag => 'v16.0.0',
|
:tag => 'v16.0.1',
|
||||||
:submodules => true
|
:submodules => true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,9 @@ extension Dictionary where Key == String, Value == Any {
|
|||||||
return compress ? .compress : nil
|
return compress ? .compress : nil
|
||||||
case let ("enableSOCKSProxy", enable as Bool):
|
case let ("enableSOCKSProxy", enable as Bool):
|
||||||
return .enableSOCKSProxy(enable)
|
return .enableSOCKSProxy(enable)
|
||||||
default:
|
case let ("version", version as Int):
|
||||||
|
return .version(SocketIOVersion(rawValue: version) ?? .three)
|
||||||
|
case _:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user