Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to RxSwift 5. #195

Merged
merged 12 commits into from
May 2, 2019
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2
5.0
4 changes: 2 additions & 2 deletions Action.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Pod::Spec.new do |s|
s.source_files = "Sources/**/*.{swift}"

s.frameworks = "Foundation"
s.dependency "RxSwift", "~> 4.0"
s.dependency "RxCocoa", "~> 4.0"
s.dependency "RxSwift", "~> 5.0"
s.dependency "RxCocoa", "~> 5.0"

s.watchos.exclude_files = "Control+Action.swift", "Button+Action.swift", "UIBarButtonItem+Action.swift", "UIAlertAction+Action.swift"
s.osx.exclude_files = "UIBarButtonItem+Action.swift", "UIAlertAction+Action.swift"
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "ReactiveX/RxSwift" ~> 4.4.2
github "ReactiveX/RxSwift" ~> 5.0
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "Quick/Nimble" "v8.0.1"
github "Quick/Quick" "v2.1.0"
github "ReactiveX/RxSwift" "4.5.0"
github "ReactiveX/RxSwift" "5.0.1"
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git",
"state": {
"branch": null,
"revision": "12cccb171ad9038251af6883807f0290c1d75a5b",
"version": "4.0.0"
"revision": "b3e888b4972d9bc76495dd74d30a8c7fad4b9395",
"version": "5.0.1"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["Action"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "4.0.0")
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "5.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Action/Action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class Action<Input, Element> {
public convenience init<O: ObservableConvertibleType>(
enabledIf: Observable<Bool> = Observable.just(true),
workFactory: @escaping (Input) -> O
) where O.E == Element {
) where O.Element == Element {
self.init(enabledIf: enabledIf) {
workFactory($0).asObservable()
}
Expand Down
Loading