handle version in keyValueToSocketIOClientOption

This commit is contained in:
Erik Little 2021-02-16 09:35:11 -05:00
parent 162eb3d649
commit 2c78e36ebd
No known key found for this signature in database
GPG Key ID: 62F837E56F4E9320
2 changed files with 5 additions and 3 deletions

View File

@ -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
} }

View File

@ -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
} }
} }