diff --git a/CHANGELOG.md b/CHANGELOG.md index bf27174..3a2fcd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [2.1.0] + +### Fixed + +- Misisng public ACL for `rx` namespace. + +## [2.0.0] ### Added - Add SPM. diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 1099303..bc68586 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 50; + objectVersion = 51; objects = { /* Begin PBXBuildFile section */ @@ -117,7 +117,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0930; - LastUpgradeCheck = 0930; + LastUpgradeCheck = 1250; ORGANIZATIONNAME = "Shai Mishali"; TargetAttributes = { 78B88835209E0BCB0023F90B = { @@ -256,6 +256,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -281,7 +282,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -317,6 +318,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -336,7 +338,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/Example/Example/ViewController.swift b/Example/Example/ViewController.swift index 9d40a95..6f1bdac 100644 --- a/Example/Example/ViewController.swift +++ b/Example/Example/ViewController.swift @@ -85,15 +85,15 @@ class ViewController: UIViewController { .withLatestFrom(selectedOption) .map(imageURL) .flatMapLatest { KingfisherManager.shared.rx.retrieveImage(with: $0) } - .observeOn(MainScheduler.instance) - .subscribe(onNext: { [weak self] image in - self?.btnSave.isHidden = false - self?.loader.isHidden = true + .observe(on: MainScheduler.instance) + .subscribe(with: self) { vc, image in + vc.btnSave.isHidden = false + vc.loader.isHidden = true // Save image to Photo Library and redirect UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil) UIApplication.shared.open(URL(string:"photos-redirect://")!) - }) + } .disposed(by: disposeBag) } } diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 10b7335..decb5ee 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,16 +1,18 @@ PODS: - - Fakery (4.1.1) - - Kingfisher (5.7.0) - - RxCocoa (5.0.0): - - RxRelay (~> 5) - - RxSwift (~> 5) - - RxKingfisher (1.0.0): + - Fakery (5.1.0) + - Kingfisher (5.15.8): + - Kingfisher/Core (= 5.15.8) + - Kingfisher/Core (5.15.8) + - RxCocoa (6.2.0): + - RxRelay (= 6.2.0) + - RxSwift (= 6.2.0) + - RxKingfisher (2.1.0): - Kingfisher (~> 5) - - RxCocoa (~> 5) - - RxSwift (~> 5) - - RxRelay (5.0.0): - - RxSwift (~> 5) - - RxSwift (5.0.0) + - RxCocoa (~> 6) + - RxSwift (~> 6) + - RxRelay (6.2.0): + - RxSwift (= 6.2.0) + - RxSwift (6.2.0) DEPENDENCIES: - Fakery @@ -18,7 +20,7 @@ DEPENDENCIES: - RxKingfisher (from `../`) SPEC REPOS: - https://github.com/cocoapods/specs.git: + trunk: - Fakery - Kingfisher - RxCocoa @@ -30,13 +32,13 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - Fakery: d3380c4aa1efe7631c0831d7e26aa9db4491f014 - Kingfisher: c7d211b54f1f30d8060aadab177d52b4349c825b - RxCocoa: fcf32050ac00d801f34a7f71d5e8e7f23026dcd8 - RxKingfisher: 0f07678aca3e6a20143dfba67ec2d2c70d443a9a - RxRelay: 4f7409406a51a55cd88483f21ed898c234d60f18 - RxSwift: 8b0671caa829a763bbce7271095859121cbd895f + Fakery: a90caff00ca5cacde6c161c3eafc72314a03d34d + Kingfisher: a3c03d702433fa6cfedabb2bddbe076fb8f2e902 + RxCocoa: 4baf94bb35f2c0ab31bc0cb9f1900155f646ba42 + RxKingfisher: a602fbf8751d756a7cc6190ddfedc2ce0d301377 + RxRelay: e72dbfd157807478401ef1982e1c61c945c94b2f + RxSwift: d356ab7bee873611322f134c5f9ef379fa183d8f PODFILE CHECKSUM: c2c6711fe7cf93b2a28df5eb886c2eb1ee88e971 -COCOAPODS: 1.7.5 +COCOAPODS: 1.10.1 diff --git a/RxKingfisher.podspec b/RxKingfisher.podspec index 2b9a17a..f159bc9 100644 --- a/RxKingfisher.podspec +++ b/RxKingfisher.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "RxKingfisher" - s.version = "2.0.0" + s.version = "2.1.0" s.summary = "Reactive extension for the Kingfisher image downloading and caching library" s.description = <<-DESC Reactive extension for the Kingfisher image downloading and caching library diff --git a/Sources/RxKingfisher/Kingfisher+Rx.swift b/Sources/RxKingfisher/Kingfisher+Rx.swift index a2e07b5..a19c81a 100644 --- a/Sources/RxKingfisher/Kingfisher+Rx.swift +++ b/Sources/RxKingfisher/Kingfisher+Rx.swift @@ -11,7 +11,7 @@ import RxSwift import Kingfisher extension KingfisherWrapper { - struct Rx { + public struct Rx { private let wrapper: KingfisherWrapper init(_ base: KingfisherWrapper) { @@ -64,7 +64,7 @@ extension KingfisherWrapper { } } -extension KingfisherWrapper where Base == KFCrossPlatformImageView { +public extension KingfisherWrapper where Base == KFCrossPlatformImageView { var rx: KingfisherWrapper.Rx { .init(self) }