From dac88ebe9808e5ccf0bedd6e4a811e0fb9c2b7a1 Mon Sep 17 00:00:00 2001 From: Ivan Babkin Date: Fri, 30 Aug 2019 12:22:15 +0300 Subject: [PATCH] Make TotalCountCursor open and not final --- CHANGELOG.md | 4 ++++ LeadKit.podspec | 2 +- Sources/Classes/DataLoading/Cursors/TotalCountCursor.swift | 4 ++-- Sources/Info-iOS.plist | 2 +- Sources/Info-tvOS.plist | 2 +- Sources/Info-watchOS.plist | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2392aa1f..25e9613a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/LeadKit.podspec b/LeadKit.podspec index 04619f0e..c0c7eaae 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -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" diff --git a/Sources/Classes/DataLoading/Cursors/TotalCountCursor.swift b/Sources/Classes/DataLoading/Cursors/TotalCountCursor.swift index 780c66b5..b993b04e 100644 --- a/Sources/Classes/DataLoading/Cursors/TotalCountCursor.swift +++ b/Sources/Classes/DataLoading/Cursors/TotalCountCursor.swift @@ -23,7 +23,7 @@ import RxSwift import RxCocoa -public final class TotalCountCursor: ResettableRxDataSourceCursor { +open class TotalCountCursor: ResettableRxDataSourceCursor { public typealias Element = CursorConfiguration.ResultType.ElementType public typealias ResultType = [Element] @@ -54,7 +54,7 @@ public final class TotalCountCursor Single<[Element]> { + open func loadNextBatch() -> Single<[Element]> { return configuration.resultSingle() .do(onSuccess: { [weak self] listingResult in self?.totalCount = listingResult.totalCount diff --git a/Sources/Info-iOS.plist b/Sources/Info-iOS.plist index f4b179a5..45613ad7 100644 --- a/Sources/Info-iOS.plist +++ b/Sources/Info-iOS.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.9.25 + 0.9.26 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/Sources/Info-tvOS.plist b/Sources/Info-tvOS.plist index f4b179a5..45613ad7 100644 --- a/Sources/Info-tvOS.plist +++ b/Sources/Info-tvOS.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.9.25 + 0.9.26 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/Sources/Info-watchOS.plist b/Sources/Info-watchOS.plist index f4b179a5..45613ad7 100644 --- a/Sources/Info-watchOS.plist +++ b/Sources/Info-watchOS.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.9.25 + 0.9.26 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass