Skip to content

Commit

Permalink
Version 3.24.5
Browse files Browse the repository at this point in the history
  • Loading branch information
webim committed Apr 25, 2019
1 parent 12a7507 commit 76ea2db
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Example/WebimClientLibrary/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.24.4</string>
<string>3.24.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.24.4.1</string>
<string>3.24.5.1</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.24.4</string>
<string>3.24.5</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,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.24.4'
pod 'WebimClientLibrary', :git => 'https://github.com/webim/webim-client-sdk-ios.git', :branch => 'master', :tag => '3.24.5'
```
`use_frameworks!` must be specified.

### Carthage

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

### Additional notes
Expand All @@ -38,8 +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
* Demo redesign.
* Typo correction in `rateOperatorWith(id:rating:completionHandler:)`.
* Int64 in `HistoryRevisionItem`.

## 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.24.4'
s.version = '3.24.5'

s.author = { 'Webim.ru Ltd.' => '[email protected]' }
s.homepage = 'https://webim.ru/integration/mobile-sdk/ios-sdk-howto/'
Expand Down
5 changes: 2 additions & 3 deletions WebimClientLibrary/Backend/DeltaCallback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,8 @@ final class DeltaCallback {
return
}

if let revisionItem = HistoryRevisionItem(jsonDictionary: deltaData) {
historyPoller?.requestHistory(since: revisionItem.getRevision())
}
let revisionItem = HistoryRevisionItem(jsonDictionary: deltaData)
historyPoller?.requestHistory(since: revisionItem.getRevision())
}

private func handleOperatorRateUpdateBy(delta: DeltaItem) {
Expand Down
10 changes: 6 additions & 4 deletions WebimClientLibrary/Backend/Items/HistoryRevisionItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ final class HistoryRevisionItem {
}

// MARK: - Properties
private var revision: Int?
private var revision: Int64

// MARK: - Initialization
init?(jsonDictionary: [String: Any?]) {
if let revision = jsonDictionary[JSONField.revision.rawValue] as? Int {
init(jsonDictionary: [String: Any?]) {
if let revision = jsonDictionary[JSONField.revision.rawValue] as? Int64 {
self.revision = revision
} else {
self.revision = 0
}
}

// MARK: - Methods
func getRevision() -> String {
return String(revision!)
return String(revision)
}
}

0 comments on commit 76ea2db

Please sign in to comment.