Skip to content

Commit

Permalink
Version 3.41.11
Browse files Browse the repository at this point in the history
  • Loading branch information
webim committed Aug 22, 2024
1 parent 8017aca commit c71efad
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pod 'WebimMobileSDK'

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

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

## Release notes

* Survey fixed.
* Method `getThumbURL()` fixed.

## Example

Expand Down
4 changes: 2 additions & 2 deletions WebimMobileSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = 'WebimMobileSDK'
s.version = '3.41.10'
s.version = '3.41.11'

s.author = { 'Webim.ru Ltd.' => '[email protected]' }
s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Webim.ru client SDK for iOS.'

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '12.0'
s.swift_version = '5.0'
s.source = { :git => 'https://github.com/webim/webim-client-sdk-ios.git', :tag => s.version.to_s }

Expand Down
2 changes: 1 addition & 1 deletion WebimMobileSDK/Backend/AbstractRequestLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class AbstractRequestLoop {

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

for (key, value) in requestHeader ?? [:] {
requestWithUserAgent.setValue(value, forHTTPHeaderField: key)
Expand Down
4 changes: 2 additions & 2 deletions WebimMobileSDK/Backend/DeltaRequestLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class DeltaRequestLoop: AbstractRequestLoop {
func requestInitialization() {
let url = URL(string: baseURL + ServerPathSuffix.getDelta.rawValue + "?" + getInitializationParameterString())
var request = URLRequest(url: url!)
request.setValue("3.41.10", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.setValue("3.41.11", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.httpMethod = AbstractRequestLoop.HTTPMethods.get.rawValue

do {
Expand All @@ -213,7 +213,7 @@ class DeltaRequestLoop: AbstractRequestLoop {
func requestAccountConfig() {
let url = URL(string: baseURL + ServerPathSuffix.getServerSideSettings.rawValue + "?" + "location=" + location)
var request = URLRequest(url: url!)
request.setValue("3.41.10", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.setValue("3.41.11", forHTTPHeaderField: Parameter.webimSDKVersion.rawValue)
request.httpMethod = AbstractRequestLoop.HTTPMethods.get.rawValue

do {
Expand Down
4 changes: 2 additions & 2 deletions WebimMobileSDK/Implementation/MessageImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,12 @@ final class ImageInfoImpl: ImageInfo {
// MARK: - Methods
// MARK: ImageInfo protocol methods

func getThumbURL() -> URL {
func getThumbURL() -> URL? {
guard let guid = guid,
let currentURLString = fileUrlCreator?.createFileURL(byFilename: filename, guid: guid, isThumb: true),
let thumbURL = URL(string: currentURLString) else {
WebimInternalLogger.shared.log(entry: "Getting Thumb URL from String failure in MessageImpl.\(#function)")
fatalError("Getting Thumb URL from String failure in MessageImpl.\(#function)")
return nil
}
return thumbURL
}
Expand Down
2 changes: 1 addition & 1 deletion WebimMobileSDK/Message.swift
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public protocol ImageInfo {
- copyright:
2017 Webim
*/
func getThumbURL() -> URL
func getThumbURL() -> URL?

/**
- returns:
Expand Down

0 comments on commit c71efad

Please sign in to comment.