Skip to content

Commit 8588539

Browse files
committed
fix: App crash because of UserDefaults key "version" #450
1 parent 756ac48 commit 8588539

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

CocoaMQTT.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "CocoaMQTT"
3-
s.version = "2.0.3-beta5"
3+
s.version = "2.0.3-beta6"
44
s.summary = "MQTT v3.1.1 client library for iOS and OS X written with Swift 5"
55
s.homepage = "https://github.com/emqx/CocoaMQTT"
66
s.license = { :type => "MIT" }
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.ios.deployment_target = "9.0"
1313
s.tvos.deployment_target = "10.0"
1414
# s.watchos.deployment_target = "2.0"
15-
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.0.3-beta5"}
15+
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.0.3-beta6"}
1616
s.default_subspec = 'Core'
1717

1818
s.subspec 'Core' do |ss|

Example/Example.xcworkspace/contents.xcworkspacedata

-10
This file was deleted.

Example/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

-8
This file was deleted.

Source/CocoaMQTTStorage.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ final class CocoaMQTTStorage: CocoaMQTTStorageProtocol {
6060
}
6161

6262
func setMQTTVersion(_ version : String){
63-
versionDefault.set(version, forKey: "version")
63+
versionDefault.set(version, forKey: "cocoamqtt_mqtt_version")
6464
}
6565

6666
func queryMQTTVersion() -> String{
67-
return versionDefault.string(forKey: "version")!
67+
return versionDefault.string(forKey: "cocoamqtt_mqtt_version")!
6868
}
6969

7070

0 commit comments

Comments
 (0)