diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d6316..9fbbb25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. --- -## [master](https://github.com/RxSwiftCommunity/RxSwiftUtilities/tree/master) (Xcode 8 / Swift 3.0 compatible) +## [master](https://github.com/RxSwiftCommunity/RxSwiftUtilities/tree/master) (Xcode 9 / Swift 4 compatible) -*nothing* +* nothing * + +## [2.0.1](https://github.com/RxSwiftCommunity/RxSwiftUtilities/releases/tag/2.0.1) (Xcode 9 / Swift 4 compatible) + +* Update to Swift 4 +* Update to RxSwift 4 + +## [1.0.1](https://github.com/RxSwiftCommunity/RxSwiftUtilities/releases/tag/1.0.1) (Xcode 8 / Swift 3 compatible) + +* Initial project with ActivityIndicator diff --git a/Cartfile b/Cartfile index 221042f..4cb3fb3 100644 --- a/Cartfile +++ b/Cartfile @@ -1 +1 @@ -github "ReactiveX/RxSwift" ~> 3.0 +github "ReactiveX/RxSwift" ~> 4.0 diff --git a/Cartfile.resolved b/Cartfile.resolved index e6f82ff..ba58f14 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "ReactiveX/RxSwift" "3.0.1" +github "ReactiveX/RxSwift" "4.1.2" diff --git a/ExampleApp/ExampleApp.xcodeproj/project.pbxproj b/ExampleApp/ExampleApp.xcodeproj/project.pbxproj index fe3130d..d2bdeac 100644 --- a/ExampleApp/ExampleApp.xcodeproj/project.pbxproj +++ b/ExampleApp/ExampleApp.xcodeproj/project.pbxproj @@ -121,7 +121,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0920; ORGANIZATIONNAME = RxSwiftCommunity; TargetAttributes = { 888CC1F81DE494BB00DAE48A = { @@ -262,7 +262,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -270,7 +272,12 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -311,7 +318,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -319,7 +328,12 @@ CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/ExampleApp/ExampleApp/ActivityIndicatorViewController.swift b/ExampleApp/ExampleApp/ActivityIndicatorViewController.swift index 8b15421..fdf6360 100644 --- a/ExampleApp/ExampleApp/ActivityIndicatorViewController.swift +++ b/ExampleApp/ExampleApp/ActivityIndicatorViewController.swift @@ -30,24 +30,24 @@ class ActivityIndicatorViewController: UITableViewController { [switch1, switch2, switch3].forEach { switchControl in createActivityObservable(switchControl: switchControl, activityIndicator: activityIndicator) .subscribe() - .addDisposableTo(disposeBag) + .disposed(by: disposeBag) } // This will drive the UILabel in the view controller activityIndicator.asDriver() .map { String(describing: $0) } .drive(valueCell.textLabel!.rx.text) - .addDisposableTo(disposeBag) + .disposed(by: disposeBag) // This will drive a UIActivityIndicatorView in the view controller activityIndicator.asDriver() .drive(activityIndicatorView.rx.isAnimating) - .addDisposableTo(disposeBag) + .disposed(by: disposeBag) // This will drive the Network Activity Indicator in the status bar activityIndicator.asDriver() .drive(UIApplication.shared.rx.isNetworkActivityIndicatorVisible) - .addDisposableTo(disposeBag) + .disposed(by: disposeBag) } private func createActivityObservable(switchControl: UISwitch, diff --git a/ExampleApp/ExampleApp/Base.lproj/Main.storyboard b/ExampleApp/ExampleApp/Base.lproj/Main.storyboard index c3d938b..faede20 100644 --- a/ExampleApp/ExampleApp/Base.lproj/Main.storyboard +++ b/ExampleApp/ExampleApp/Base.lproj/Main.storyboard @@ -1,8 +1,11 @@ - + + + + - + @@ -12,7 +15,7 @@ - + @@ -28,7 +31,7 @@ - + @@ -38,11 +41,11 @@ - +