Skip to content

Commit

Permalink
Version 3.35.3
Browse files Browse the repository at this point in the history
  • Loading branch information
webim committed Aug 17, 2021
1 parent d71f122 commit 50fc809
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ PODS:
- SQLite.swift (0.12.2):
- SQLite.swift/standard (= 0.12.2)
- SQLite.swift/standard (0.12.2)
- WebimClientLibrary (3.35.1):
- WebimClientLibrary (3.35.0):
- SQLite.swift (= 0.12.2)

DEPENDENCIES:
Expand Down Expand Up @@ -151,7 +151,7 @@ SPEC CHECKSUMS:
SlackTextViewController: b854e62c1c156336bc4fd409c6ca79b5773e8f9d
SnapKit: 97b92857e3df3a0c71833cce143274bf6ef8e5eb
SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3
WebimClientLibrary: 4e678bfa7bf6c7d92f1b7c8690aa23d963d3d73a
WebimClientLibrary: 8ba6e754c52846c3194531cf8c889116e944ced2

PODFILE CHECKSUM: a4d281ecdc6f8dea2a6ccfe87b3789dd77cf6683

Expand Down
4 changes: 2 additions & 2 deletions Example/WebimClientLibrary.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@
INFOPLIST_FILE = WebimClientLibrary/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.35.2;
MARKETING_VERSION = 3.35.3;
MODULE_NAME = ExampleApp;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -Xfrontend -warn-long-expression-type-checking=400 -Xfrontend -warn-long-function-bodies=400 -Onone";
PRODUCT_BUNDLE_IDENTIFIER = "ru.webim.Webim-Client";
Expand All @@ -1483,7 +1483,7 @@
INFOPLIST_FILE = WebimClientLibrary/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.35.2;
MARKETING_VERSION = 3.35.3;
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "ru.webim.Webim-Client";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ This library provides [_Webim SDK_ for _iOS_](https://webim.ru/integration/mobil

Add following line for your target in your **Podfile**:
```
pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :branch => 'master', :tag => '3.35.2'
pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :branch => 'master', :tag => '3.35.3'
```
`use_frameworks!` must be specified.

### Carthage

Add following line to your **Cartfile**:
```
github "webim/webim-client-sdk-ios" ~> 3.35.2
github "webim/webim-client-sdk-ios" ~> 3.35.3
```

### Swift Package Manager
Expand All @@ -38,10 +38,7 @@ Trying to integrate _WebimClientLibrary_ into your _Objective-C_ code? Try out o
Previous _Objective-C_ version (version numbers 2.x.x) can be reached from **version2** branch.

## Release notes

* `getLastMessages` bug fixed.
* Data encryption.
* Swift Package Manager support.
* SPM fix.

## Example

Expand Down
2 changes: 1 addition & 1 deletion WebimClientLibrary.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'WebimClientLibrary'
s.version = '3.35.2'
s.version = '3.35.3'

s.author = { 'Webim.ru Ltd.' => '[email protected]' }
s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/'
Expand Down
3 changes: 2 additions & 1 deletion WebimClientLibrary/Backend/AbstractRequestLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
//

import Foundation
import UIKit

/**
Class that handles HTTP-request sending by SDK.
Expand Down Expand Up @@ -101,7 +102,7 @@ class AbstractRequestLoop {

func perform(request: URLRequest) throws -> Data {
var requestWithUesrAngent = request
requestWithUesrAngent.setValue("iOS: Webim-Client 3.35.2; (\(UIDevice.current.model); \(UIDevice.current.systemVersion)); Bundle ID and version: \(Bundle.main.bundleIdentifier ?? "none") \(Bundle.main.infoDictionary?["CFBundleVersion"] ?? "none")", forHTTPHeaderField: "User-Agent")
requestWithUesrAngent.setValue("iOS: Webim-Client 3.35.3; (\(UIDevice.current.model); \(UIDevice.current.systemVersion)); Bundle ID and version: \(Bundle.main.bundleIdentifier ?? "none") \(Bundle.main.infoDictionary?["CFBundleVersion"] ?? "none")", forHTTPHeaderField: "User-Agent")

var errorCounter = 0
var lastHTTPCode = -1
Expand Down
2 changes: 1 addition & 1 deletion WebimClientLibrary/Backend/DeltaRequestLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class DeltaRequestLoop: AbstractRequestLoop {
func requestInitialization() {
let url = URL(string: getDeltaServerURLString() + "?" + getInitializationParameterString())
var request = URLRequest(url: url!)
request.setValue("3.35.2", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.setValue("3.35.3", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.httpMethod = AbstractRequestLoop.HTTPMethods.get.rawValue

do {
Expand Down
3 changes: 2 additions & 1 deletion WebimClientLibrary/Backend/SQLiteHistoryStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ final class SQLiteHistoryStorage: HistoryStorage {
private static let data = Expression<Blob?>(ColumnName.data.rawValue)
private static let canBeReplied = Expression<Bool?>(ColumnName.canBeReplied.rawValue)
private static let quote = Expression<Blob?>(ColumnName.quote.rawValue)
private static let SQLITE_CONSTRAINT: Int = 19


// MARK: - Properties
Expand Down Expand Up @@ -410,7 +411,7 @@ final class SQLiteHistoryStorage: HistoryStorage {
WebimInternalLogger.shared.log(entry: error.localizedDescription,
verbosityLevel: .warning)
}
} catch let Result.error(_, code, _) where code == SQLITE_CONSTRAINT {
} catch let Result.error(_, code, _) where code == SQLiteHistoryStorage.SQLITE_CONSTRAINT {
do {
try update(message: message)

Expand Down
1 change: 1 addition & 0 deletions WebimClientLibrary/Implementation/MessageStreamImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
//

import Foundation
import UIKit

/**
Class that responsible for handling full set of events inside message stream.
Expand Down
1 change: 1 addition & 0 deletions WebimClientLibrary/Implementation/WebimSessionImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
//

import Foundation
import UIKit

// MARK: - Constants
fileprivate enum WMKeychainWrapperName: String {
Expand Down

0 comments on commit 50fc809

Please sign in to comment.