Skip to content

Commit

Permalink
update for 3.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sergey-K committed Sep 26, 2023
1 parent 9ef13c5 commit 9faf4a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
15 changes: 5 additions & 10 deletions Core/UseDeskSDKHelp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UseDeskSDKHelp {
let payload: [String : Any] = [
"sdk" : "iOS",
"type" : "sdk",
"version" : "3.4.7",
"version" : "3.4.8",
"message_limit" : countMessagesOnInit,
"userData" : getUserParameters()
]
Expand Down Expand Up @@ -165,7 +165,6 @@ public extension UIDevice {
}

func udMapToDevice(identifier: String) -> String {
#if os(iOS)
switch identifier {
case "iPod5,1": return "iPod touch (5th generation)"
case "iPod7,1": return "iPod touch (6th generation)"
Expand Down Expand Up @@ -202,6 +201,10 @@ public extension UIDevice {
case "iPhone14,8": return "iPhone 14 Plus"
case "iPhone15,2": return "iPhone 14 Pro"
case "iPhone15,3": return "iPhone 14 Pro Max"
case "iPhone15,4": return "iPhone 15"
case "iPhone15,5": return "iPhone 15 Plus"
case "iPhone16,1": return "iPhone 15 Pro"
case "iPhone16,2": return "iPhone 15 Pro Max"
case "iPhone8,4": return "iPhone SE"
case "iPhone12,8": return "iPhone SE (2nd generation)"
case "iPhone14,6": return "iPhone SE (3rd generation)"
Expand Down Expand Up @@ -244,14 +247,6 @@ public extension UIDevice {
case "i386", "x86_64", "arm64": return "Simulator \(udMapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "iOS"))"
default: return identifier
}
#elseif os(tvOS)
switch identifier {
case "AppleTV5,3": return "Apple TV 4"
case "AppleTV6,2": return "Apple TV 4K"
case "i386", "x86_64": return "Simulator \(udMapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "tvOS"))"
default: return identifier
}
#endif
}

return udMapToDevice(identifier: identifier)
Expand Down
4 changes: 2 additions & 2 deletions Example/UseDesk.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@
INFOPLIST_FILE = "UseDesk/UseDesk-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.4.7;
MARKETING_VERSION = 3.4.8;
MODULE_NAME = ExampleApp;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = UseDeskExampleSDK.ru;
Expand Down Expand Up @@ -622,7 +622,7 @@
INFOPLIST_FILE = "UseDesk/UseDesk-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.4.7;
MARKETING_VERSION = 3.4.8;
MODULE_NAME = ExampleApp;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = UseDeskExampleSDK.ru;
Expand Down
2 changes: 1 addition & 1 deletion UseDesk_SDK_Swift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'UseDesk_SDK_Swift'
s.version = '3.4.7'
s.version = '3.4.8'
s.summary = 'A short description of UseDesk.'

s.homepage = 'https://github.com/usedesk/UseDeskSwift'
Expand Down

0 comments on commit 9faf4a4

Please sign in to comment.