Skip to content

Commit 6e4af1e

Browse files
committed
Version 3.41.6
1 parent 059fec3 commit 6e4af1e

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

Example/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ target 'WebimMobileSDK_Example' do
99
pod 'WebimMobileWidget', '1.2.1'
1010
pod 'WebimKeyboard', '1.0.2'
1111

12-
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git', :tag => '0.15.0'
1312
pod 'Firebase/Crashlytics'
1413
pod 'Firebase/Analytics'
1514

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.3
22
import PackageDescription
33

44
let package = Package(
@@ -12,9 +12,9 @@ let package = Package(
1212
targets: [
1313
.target(
1414
name: "WebimMobileSDK",
15-
dependencies: ["SQLite"],
15+
dependencies: ["SQLite.swift"],
1616
path: "WebimMobileSDK",
17-
resources: [.copy("WebimMobileSDK/PrivacyInfo.xcprivacy")]
17+
resources: [.copy("PrivacyInfo.xcprivacy")]
1818
)
1919
]
2020
)

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pod 'WebimMobileSDK'
2020

2121
Add following line to your **Cartfile**:
2222
```
23-
github "webim/webim-client-sdk-ios" ~> 3.41.5
23+
github "webim/webim-client-sdk-ios" ~> 3.41.6
2424
```
2525

2626
### Swift Package Manager
@@ -41,9 +41,7 @@ Previous _Objective-C_ version (version numbers 2.x.x) can be reached from **ver
4141

4242
## Release notes
4343

44-
* Privacy Manifest added.
45-
* Group of messages support.
46-
* `SendFileError.maliciousFileDetected` added.
44+
* SPM error fixed.
4745

4846
## Example
4947

WebimMobileSDK.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'WebimMobileSDK'
4-
s.version = '3.41.5'
4+
s.version = '3.41.6'
55

66
s.author = { 'Webim.ru Ltd.' => 'n.lazarev-zubov@webim.ru' }
77
s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/'
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.swift_version = '5.0'
1313
s.source = { :git => 'https://github.com/webim/webim-client-sdk-ios.git', :tag => s.version.to_s }
1414

15-
s.dependency 'SQLite.swift'
15+
s.dependency 'SQLite.swift', '0.15.0'
1616
s.resource_bundles = { 'WebimMobileSDK_Privacy' => 'WebimMobileSDK/PrivacyInfo.xcprivacy' }
1717
s.frameworks = 'Foundation'
1818
s.source_files = 'WebimMobileSDK/**/*'

WebimMobileSDK/Backend/AbstractRequestLoop.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class AbstractRequestLoop {
105105

106106
func perform(request: URLRequest) throws -> Data {
107107
var requestWithUserAgent = request
108-
requestWithUserAgent.setValue("iOS: Webim-Client 3.41.5; (\(UIDevice.current.model); \(UIDevice.current.systemVersion)); Bundle ID and version: \(Bundle.main.bundleIdentifier ?? "none") \(Bundle.main.infoDictionary?["CFBundleVersion"] ?? "none")", forHTTPHeaderField: "User-Agent")
108+
requestWithUserAgent.setValue("iOS: Webim-Client 3.41.6; (\(UIDevice.current.model); \(UIDevice.current.systemVersion)); Bundle ID and version: \(Bundle.main.bundleIdentifier ?? "none") \(Bundle.main.infoDictionary?["CFBundleVersion"] ?? "none")", forHTTPHeaderField: "User-Agent")
109109

110110
for (key, value) in requestHeader ?? [:] {
111111
requestWithUserAgent.setValue(value, forHTTPHeaderField: key)

WebimMobileSDK/Backend/DeltaRequestLoop.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ class DeltaRequestLoop: AbstractRequestLoop {
190190
}
191191

192192
func requestInitialization() {
193-
let url = URL(string: baseURL + ServerPathSuffix.initPath.rawValue + "?" + getInitializationParameterString())
193+
let url = URL(string: baseURL + ServerPathSuffix.getDelta.rawValue + "?" + getInitializationParameterString())
194194
var request = URLRequest(url: url!)
195-
request.setValue("3.41.5", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
195+
request.setValue("3.41.6", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
196196
request.httpMethod = AbstractRequestLoop.HTTPMethods.get.rawValue
197197

198198
do {
@@ -213,7 +213,7 @@ class DeltaRequestLoop: AbstractRequestLoop {
213213
func requestAccountConfig() {
214214
let url = URL(string: baseURL + ServerPathSuffix.getServerSideSettings.rawValue + "?" + "location=" + location)
215215
var request = URLRequest(url: url!)
216-
request.setValue("3.41.5", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
216+
request.setValue("3.41.6", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
217217
request.httpMethod = AbstractRequestLoop.HTTPMethods.get.rawValue
218218

219219
do {

0 commit comments

Comments
 (0)