Skip to content

Commit

Permalink
update for 3.4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sergey-K committed May 13, 2024
1 parent 72d49c0 commit 84e27c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Core/UDNetworkManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class UDNetworkManager {
}
}

let url = "https://secure.usedesk.ru/widget.js/post"
let url = "https://secure.usedesk.ru/widget.js/post"
request(url: url, parameters: parameters, isJSONEncoding: true, successBlock: { value in
connectBlock(true)
}, errorBlock: errorBlock)
Expand Down Expand Up @@ -162,7 +162,7 @@ public class UDNetworkManager {

public func sendFile(url: String, fileName: String, data: Data, messageId: String? = nil, progressBlock: UDProgressUploadBlock? = nil, connectBlock: UDConnectBlock? = nil, errorBlock: UDErrorBlock? = nil) {
if let currentToken = token {
DispatchQueue.global(qos: .utility).async {
DispatchQueue.global(qos: .utility).async {
AF.upload(multipartFormData: { multipartFormData in
multipartFormData.append(currentToken.data(using: String.Encoding.utf8)!, withName: "chat_token")
multipartFormData.append(data, withName: "file", fileName: fileName)
Expand Down Expand Up @@ -618,7 +618,9 @@ public class UDNetworkManager {
UDSocketResponse.actionFeedbackAnswer(data, feedbackAnswerMessageBlock: feedbackAnswerMessageBlock)

UDSocketResponse.actionAddMessage(data, newMessageBlock: newMessageBlock, feedbackMessageBlock: feedbackMessageBlock, sendAdditionalFieldsBlock: {
wSelf.sendAdditionalFields()
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
wSelf.sendAdditionalFields()
}
}, isSendedAdditionalField: wSelf.isSendedAdditionalField, model: wSelf.model)
}
})
Expand Down
2 changes: 1 addition & 1 deletion 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.12",
"version" : "3.4.13",
"message_limit" : countMessagesOnInit,
"userData" : getUserParameters()
]
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.12;
MARKETING_VERSION = 3.4.13;
MODULE_NAME = ExampleApp;
ONLY_ACTIVE_ARCH = YES;
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.12;
MARKETING_VERSION = 3.4.13;
MODULE_NAME = ExampleApp;
ONLY_ACTIVE_ARCH = YES;
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.12'
s.version = '3.4.13'
s.summary = 'A short description of UseDesk.'

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

0 comments on commit 84e27c7

Please sign in to comment.