Skip to content

Commit

Permalink
Merge pull request #1 from cederache/update_ios_15
Browse files Browse the repository at this point in the history
Update RxSwift to 6.0 and update version to 0.6
  • Loading branch information
cguino authored Jan 11, 2022
2 parents fba23c9 + df47b8a commit 8689b30
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 11 deletions.
4 changes: 2 additions & 2 deletions BeappCache.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'BeappCache'
s.version = '0.5'
s.version = '0.6'
s.summary = 'This library provides a cache mechanism relying on RxSwift'

# This description is used to generate tags and improve search results.
Expand All @@ -32,5 +32,5 @@ Pod::Spec.new do |s|
s.frameworks = 'Foundation'
s.dependency 'Cache', '~> 5.2.0'
s.dependency 'RxSwift', '~> 4.5' #for cache library
s.dependency 'RxSwift', '~> 5.0'
s.dependency 'RxSwift', '~> 6.0'
end
4 changes: 0 additions & 4 deletions Example/BeappCache.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,13 @@
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-BeappCache_Example/Pods-BeappCache_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/BeappCache/BeappCache.framework",
"${BUILT_PRODUCTS_DIR}/Cache/Cache.framework",
"${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BeappCache.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Cache.framework",
Expand Down

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>
Binary file not shown.
10 changes: 10 additions & 0 deletions Example/BeappCache.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>
Binary file not shown.
6 changes: 3 additions & 3 deletions Example/BeappCache/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ViewController: UIViewController {
.withAsync(singleString)
.withStrategy(.asyncOrCache)
.fetch()
.observeOn(MainScheduler.instance)
.observe(on: MainScheduler.instance)
.subscribe(onNext: { (_) in
print("Success async request or data from cache")
}, onError: { (error) in
Expand All @@ -49,7 +49,7 @@ class ViewController: UIViewController {
.withAsync(singleString)
.withStrategy(.justAsync)
.fetch()
.observeOn(MainScheduler.instance)
.observe(on: MainScheduler.instance)
.subscribe(onNext: { (_) in
print("Success async request")
}, onError: { (error) in
Expand All @@ -64,7 +64,7 @@ class ViewController: UIViewController {
.withAsync(singleString)
.withStrategy(.justCache)
.fetch()
.observeOn(MainScheduler.instance)
.observe(on: MainScheduler.instance)
.subscribe(onNext: { (_) in
print("Success to get data from cache")
}, onError: { (error) in
Expand Down
4 changes: 2 additions & 2 deletions Example/Tests/XCCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class XCCache {
.withAsync(Single.just("Data for key \(key) is saved"))
.withStrategy(strategy)
.fetch()
.observeOn(MainScheduler.instance)
.observe(on: MainScheduler.instance)
.subscribe(onNext: { (result) in
print("Data is created for key \(key)")
}, onError: { (error) in
Expand All @@ -54,7 +54,7 @@ class XCCache {
.withAsync(Single.just(String()))
.withStrategy(.justCache)
.fetch()
.observeOn(MainScheduler.instance)
.observe(on: MainScheduler.instance)
.subscribe(onNext: { (keyValue) in
callBack(keyValue)
}, onError: { (error) in
Expand Down

0 comments on commit 8689b30

Please sign in to comment.