Skip to content

Commit

Permalink
RxFeedback 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed Jan 14, 2021
1 parent 6d69f9b commit aa83840
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ os:
language: generic
sudo: required
dist: trusty
osx_image: xcode10.2
osx_image: xcode12.2
env:
- 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"
- 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"
- BUILD="pod repo update && pod lib lint RxFeedback.podspec --verbose"
- BUILD="swift build"
- 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"
- BUILD="carthage update --platform tvOS && carthage build --no-skip-current --platform tvOS"

# Carthage is still broken for Xcode 12, until support for XCFrameworks is added
# - 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"
# - BUILD="carthage update --platform tvOS && carthage build --no-skip-current --platform tvOS"

script: eval "${BUILD}"

Expand Down
10 changes: 10 additions & 0 deletions Examples/Examples.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
4 changes: 2 additions & 2 deletions Examples/Examples/GithubPaginatedSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ extension URLSession {
.response(request: URLRequest(url: resource))
.retry(3)
.map(Repository.parse)
.retryWhen { errorTrigger in
.retry(when: { errorTrigger in
return errorTrigger.enumerated().flatMap { (attempt, error) -> Observable<Int> in
if attempt >= maxAttempts - 1 {
return Observable.error(error)
Expand All @@ -229,7 +229,7 @@ extension URLSession {
return Observable<Int>
.timer(.milliseconds((attempt + 1) * 1000), scheduler: MainScheduler.instance).take(1)
}
}
})
}
}

Expand Down
2 changes: 1 addition & 1 deletion Examples/Examples/Todo+UI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TodoViewController: UIViewController {
// this dependency would be ideally injected in some way
let synchronize: (Task) -> Single<SyncState> = { task in
return Single<SyncState>.create { single in
let state: SingleEvent<SyncState> = arc4random_uniform(3) != 0 ? .success(.success) : .error(SystemError(""))
let state: SingleEvent<SyncState> = arc4random_uniform(3) != 0 ? .success(.success) : .failure(SystemError(""))
single(state)
return Disposables.create()
}
Expand Down
33 changes: 33 additions & 0 deletions Examples/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PODS:
- RxCocoa (6.0.0):
- RxRelay (= 6.0.0)
- RxSwift (= 6.0.0)
- RxFeedback (4.0.0):
- RxCocoa (~> 6.0)
- RxSwift (~> 6.0)
- RxRelay (6.0.0):
- RxSwift (= 6.0.0)
- RxSwift (6.0.0)

DEPENDENCIES:
- RxFeedback (from `..`)

SPEC REPOS:
trunk:
- RxCocoa
- RxRelay
- RxSwift

EXTERNAL SOURCES:
RxFeedback:
:path: ".."

SPEC CHECKSUMS:
RxCocoa: 3f79328fafa3645b34600f37c31e64c73ae3a80e
RxFeedback: c762a59b678ed8e30b5c84b6e4e03ad0341d2ecb
RxRelay: 8d593be109c06ea850df027351beba614b012ffb
RxSwift: c14e798c59b9f6e9a2df8fd235602e85cc044295

PODFILE CHECKSUM: 1c64147e23f9070efe02f93aa36b8029d82c504e

COCOAPODS: 1.10.0
2 changes: 1 addition & 1 deletion RxFeedback.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxFeedback"
s.version = "3.0.0"
s.version = "4.0.0"
s.summary = "Simplest architecture for RxSwift. State + feedback loops."
s.description = <<-DESC
* Straightforward
Expand Down

0 comments on commit aa83840

Please sign in to comment.