Skip to content

Commit aa83840

Browse files
committed
RxFeedback 4.0.0
1 parent 6d69f9b commit aa83840

File tree

7 files changed

+61
-8
lines changed

7 files changed

+61
-8
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ os:
55
language: generic
66
sudo: required
77
dist: trusty
8-
osx_image: xcode10.2
8+
osx_image: xcode12.2
99
env:
10-
- BUILD="pushd Examples && pod repo update && pod install && set -o pipefail && (xcodebuild -workspace Examples.xcworkspace -scheme Example -destination 'platform=iOS Simulator,name=iPhone 7' build) | xcpretty"
10+
- BUILD="pushd Examples && pod repo update && pod install && set -o pipefail && (xcodebuild -workspace Examples.xcworkspace -scheme Example -destination 'platform=iOS Simulator,name=iPhone 12' build) | xcpretty"
1111
- BUILD="pod repo update && pod lib lint RxFeedback.podspec --verbose"
1212
- BUILD="swift build"
13-
- BUILD="carthage update --platform ios && carthage build --no-skip-current --platform iOS && set -o pipefail && (xcodebuild -project RxFeedback.xcodeproj -scheme RxFeedbackTests -destination 'platform=iOS Simulator,name=iPhone 7' test) | xcpretty"
14-
- BUILD="carthage update --platform tvOS && carthage build --no-skip-current --platform tvOS"
13+
14+
# Carthage is still broken for Xcode 12, until support for XCFrameworks is added
15+
# - BUILD="carthage update --platform ios && carthage build --no-skip-current --platform iOS && set -o pipefail && (xcodebuild -project RxFeedback.xcodeproj -scheme RxFeedbackTests -destination 'platform=iOS Simulator,name=iPhone 7' test) | xcpretty"
16+
# - BUILD="carthage update --platform tvOS && carthage build --no-skip-current --platform tvOS"
1517

1618
script: eval "${BUILD}"
1719

Examples/Examples.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Examples/Examples/GithubPaginatedSearch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ extension URLSession {
220220
.response(request: URLRequest(url: resource))
221221
.retry(3)
222222
.map(Repository.parse)
223-
.retryWhen { errorTrigger in
223+
.retry(when: { errorTrigger in
224224
return errorTrigger.enumerated().flatMap { (attempt, error) -> Observable<Int> in
225225
if attempt >= maxAttempts - 1 {
226226
return Observable.error(error)
@@ -229,7 +229,7 @@ extension URLSession {
229229
return Observable<Int>
230230
.timer(.milliseconds((attempt + 1) * 1000), scheduler: MainScheduler.instance).take(1)
231231
}
232-
}
232+
})
233233
}
234234
}
235235

Examples/Examples/Todo+UI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TodoViewController: UIViewController {
2828
// this dependency would be ideally injected in some way
2929
let synchronize: (Task) -> Single<SyncState> = { task in
3030
return Single<SyncState>.create { single in
31-
let state: SingleEvent<SyncState> = arc4random_uniform(3) != 0 ? .success(.success) : .error(SystemError(""))
31+
let state: SingleEvent<SyncState> = arc4random_uniform(3) != 0 ? .success(.success) : .failure(SystemError(""))
3232
single(state)
3333
return Disposables.create()
3434
}

Examples/Podfile.lock

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
PODS:
2+
- RxCocoa (6.0.0):
3+
- RxRelay (= 6.0.0)
4+
- RxSwift (= 6.0.0)
5+
- RxFeedback (4.0.0):
6+
- RxCocoa (~> 6.0)
7+
- RxSwift (~> 6.0)
8+
- RxRelay (6.0.0):
9+
- RxSwift (= 6.0.0)
10+
- RxSwift (6.0.0)
11+
12+
DEPENDENCIES:
13+
- RxFeedback (from `..`)
14+
15+
SPEC REPOS:
16+
trunk:
17+
- RxCocoa
18+
- RxRelay
19+
- RxSwift
20+
21+
EXTERNAL SOURCES:
22+
RxFeedback:
23+
:path: ".."
24+
25+
SPEC CHECKSUMS:
26+
RxCocoa: 3f79328fafa3645b34600f37c31e64c73ae3a80e
27+
RxFeedback: c762a59b678ed8e30b5c84b6e4e03ad0341d2ecb
28+
RxRelay: 8d593be109c06ea850df027351beba614b012ffb
29+
RxSwift: c14e798c59b9f6e9a2df8fd235602e85cc044295
30+
31+
PODFILE CHECKSUM: 1c64147e23f9070efe02f93aa36b8029d82c504e
32+
33+
COCOAPODS: 1.10.0

RxFeedback.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RxFeedback"
3-
s.version = "3.0.0"
3+
s.version = "4.0.0"
44
s.summary = "Simplest architecture for RxSwift. State + feedback loops."
55
s.description = <<-DESC
66
* Straightforward

0 commit comments

Comments
 (0)