Merge pull request #216 from TouchInstinct/fix/open_cursor

Make TotalCountCursor open and not final
This commit is contained in:
Ivan Babkin 2019-08-30 12:45:00 +03:00 committed by GitHub
commit 6e1e4de0b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,9 @@
# Changelog
### 0.9.26
- **Add**: possibility to override `loadNextBatch` method from `TotalCountCursor`.
- **Add**: possibility to inherit from `TotalCountCursor`.
### 0.9.25
- **Add**: `queryItems` parameter for `ApiRequestParameters`.
- **Add**: `asQueryItems` method for `Encodable` that converts model to query items array.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.9.24"
s.version = "0.9.26"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -23,7 +23,7 @@
import RxSwift
import RxCocoa
public final class TotalCountCursor<CursorConfiguration: TotalCountCursorConfiguration>: ResettableRxDataSourceCursor {
open class TotalCountCursor<CursorConfiguration: TotalCountCursorConfiguration>: ResettableRxDataSourceCursor {
public typealias Element = CursorConfiguration.ResultType.ElementType
public typealias ResultType = [Element]
@ -54,7 +54,7 @@ public final class TotalCountCursor<CursorConfiguration: TotalCountCursorConfigu
configuration = other.configuration.reset()
}
public func loadNextBatch() -> Single<[Element]> {
open func loadNextBatch() -> Single<[Element]> {
return configuration.resultSingle()
.do(onSuccess: { [weak self] listingResult in
self?.totalCount = listingResult.totalCount

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.25</string>
<string>0.9.26</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.25</string>
<string>0.9.26</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.25</string>
<string>0.9.26</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>