Skip to content

Commit

Permalink
fix: App crash because of UserDefaults key "version" #450
Browse files Browse the repository at this point in the history
  • Loading branch information
leeway1208 committed Apr 8, 2022
1 parent 756ac48 commit 8588539
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
4 changes: 2 additions & 2 deletions CocoaMQTT.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CocoaMQTT"
s.version = "2.0.3-beta5"
s.version = "2.0.3-beta6"
s.summary = "MQTT v3.1.1 client library for iOS and OS X written with Swift 5"
s.homepage = "https://github.com/emqx/CocoaMQTT"
s.license = { :type => "MIT" }
Expand All @@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "9.0"
s.tvos.deployment_target = "10.0"
# s.watchos.deployment_target = "2.0"
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.0.3-beta5"}
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.0.3-beta6"}
s.default_subspec = 'Core'

s.subspec 'Core' do |ss|
Expand Down
10 changes: 0 additions & 10 deletions Example/Example.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions Source/CocoaMQTTStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ final class CocoaMQTTStorage: CocoaMQTTStorageProtocol {
}

func setMQTTVersion(_ version : String){
versionDefault.set(version, forKey: "version")
versionDefault.set(version, forKey: "cocoamqtt_mqtt_version")
}

func queryMQTTVersion() -> String{
return versionDefault.string(forKey: "version")!
return versionDefault.string(forKey: "cocoamqtt_mqtt_version")!
}


Expand Down

0 comments on commit 8588539

Please sign in to comment.