Skip to content

Commit

Permalink
update for 3.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sergey-K committed Aug 15, 2023
1 parent 565fc52 commit 9ef13c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
15 changes: 9 additions & 6 deletions Core/UDStringExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,19 @@ extension String {
mutating func udConvertUrls() {
var count = 0
var flag = true
var string = self
while count < 9000 && flag {
if let range = self.range(of: "<http") {
let startIndex = range.lowerBound
if let range = string.range(of: "<http") {
var startIndex = range.lowerBound
var isFindEnd = false
var index = 0
while !isFindEnd {
if let searchEndIndex = self.index(startIndex, offsetBy: index, limitedBy: self.endIndex), udIsIndexValid(searchEndIndex) {
if self[searchEndIndex] == ">" {
if let searchEndIndex = string.index(startIndex, offsetBy: index, limitedBy: string.endIndex),
udIsIndexValid(searchEndIndex) {
if string[searchEndIndex] == ">" {
isFindEnd = true
self = self.replacingOccurrences(of: self[searchEndIndex...searchEndIndex], with: "")
self = self.replacingOccurrences(of: self[startIndex...startIndex], with: "")
string = string.replacingOccurrences(of: self[searchEndIndex...searchEndIndex], with: "")
string = string.replacingOccurrences(of: self[startIndex...startIndex], with: "")
}
} else {
isFindEnd = true
Expand All @@ -308,6 +310,7 @@ extension String {
}
count += 1
}
self = string
}

mutating func udConverDoubleLinks() {
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.6",
"version" : "3.4.7",
"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.5;
MARKETING_VERSION = 3.4.7;
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.5;
MARKETING_VERSION = 3.4.7;
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.6'
s.version = '3.4.7'
s.summary = 'A short description of UseDesk.'

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

0 comments on commit 9ef13c5

Please sign in to comment.