From ffbe6a16321b8d2fc134de09eacb4fa837d8b982 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Wed, 27 May 2020 11:47:42 +0200 Subject: [PATCH 01/15] Bump Moya version --- Moya-ObjectMapper.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moya-ObjectMapper.podspec b/Moya-ObjectMapper.podspec index 718f529b..bfa5fee9 100755 --- a/Moya-ObjectMapper.podspec +++ b/Moya-ObjectMapper.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.subspec "Core" do |ss| ss.source_files = "Source/Core/*.swift" - ss.dependency "Moya", '~> 14.0.0-beta.6' + ss.dependency "Moya", '~> 14.0.0' ss.dependency "ObjectMapper" ss.framework = "Foundation" end From b6aa865de7c267f115d6ae2b560960f5714ef8f9 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Wed, 27 May 2020 11:51:07 +0200 Subject: [PATCH 02/15] Update sample project --- .../Resources/Base.lproj/Main.storyboard | 31 +--- Sample/Common/ViewController.swift | 9 +- .../Demo-ReactiveSwift/ViewController.swift | 4 +- Sample/Demo.xcodeproj/project.pbxproj | 137 +++--------------- Sample/Podfile | 2 - Sample/Podfile.lock | 60 ++++---- 6 files changed, 66 insertions(+), 177 deletions(-) diff --git a/Sample/Common/Resources/Base.lproj/Main.storyboard b/Sample/Common/Resources/Base.lproj/Main.storyboard index a05756ae..f5c7bee1 100755 --- a/Sample/Common/Resources/Base.lproj/Main.storyboard +++ b/Sample/Common/Resources/Base.lproj/Main.storyboard @@ -1,11 +1,9 @@ - - - - + + - + @@ -16,26 +14,7 @@ - - - - - - - - - - - - - - + @@ -64,7 +43,7 @@ - + diff --git a/Sample/Common/ViewController.swift b/Sample/Common/ViewController.swift index 12f30723..d07e68f8 100755 --- a/Sample/Common/ViewController.swift +++ b/Sample/Common/ViewController.swift @@ -3,7 +3,12 @@ import UIKit class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var zenButton: UIBarButtonItem! @IBOutlet weak var searchButton: UIBarButtonItem! - @IBOutlet var tableView: UITableView! + @IBOutlet var tableView: UITableView! { + didSet { + tableView.dataSource = self + tableView.register(UITableViewCell.self, forCellReuseIdentifier: "Cell") + } + } let viewModel = DemoViewModel(networking: GitHubProvider) @@ -11,8 +16,6 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSou override func viewDidLoad() { super.viewDidLoad() - self.tableView.dataSource = self - self.tableView.delegate = self initializeViewModel() } diff --git a/Sample/Demo-ReactiveSwift/ViewController.swift b/Sample/Demo-ReactiveSwift/ViewController.swift index 66161766..6bdd9599 100755 --- a/Sample/Demo-ReactiveSwift/ViewController.swift +++ b/Sample/Demo-ReactiveSwift/ViewController.swift @@ -30,14 +30,14 @@ class ViewController: UIViewController { } fileprivate func initializeViewModel() { - viewModel.downloadZenSignal.observeValues { [weak self] result in + viewModel.downloadZenSignal.take(during: reactive.lifetime).observeValues { [weak self] result in switch result { case .success(let value): self?.showMessage(message: value) case .failure(let error): self?.showError(error: error) } } - viewModel.downloadRepoSignal.observeValues { [weak self] result in + viewModel.downloadRepoSignal.take(during: reactive.lifetime).observeValues { [weak self] result in switch result { case .success: break case .failure: self?.presentUsernamePrompt() diff --git a/Sample/Demo.xcodeproj/project.pbxproj b/Sample/Demo.xcodeproj/project.pbxproj index fe3c4968..b336091a 100644 --- a/Sample/Demo.xcodeproj/project.pbxproj +++ b/Sample/Demo.xcodeproj/project.pbxproj @@ -18,6 +18,7 @@ 00D95AFE22608F8F00413792 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95AFA22608F8F00413792 /* ViewController.swift */; }; 00D95AFF22608F8F00413792 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95AFB22608F8F00413792 /* DemoViewModel.swift */; }; 00D95B042260938800413792 /* Reactive+DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95B032260938800413792 /* Reactive+DemoViewModel.swift */; }; + 2A8C3A0223C53341C6C8C7E9 /* libPods-Demo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */; }; 306F6BF71D22BCEB00F727A6 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF61D22BCEB00F727A6 /* Repository.swift */; }; 306F6BF91D22BCF400F727A6 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF81D22BCF400F727A6 /* Owner.swift */; }; 5EC197E61A1BB16D00F4DFD4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC197E51A1BB16D00F4DFD4 /* AppDelegate.swift */; }; @@ -26,6 +27,7 @@ 5EC197EF1A1BB16D00F4DFD4 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197EE1A1BB16D00F4DFD4 /* Images.xcassets */; }; 5EC197F21A1BB16D00F4DFD4 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197F01A1BB16D00F4DFD4 /* LaunchScreen.xib */; }; 5EC198081A1BB24600F4DFD4 /* GitHubAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */; }; + 96F9729F194EE6B8C4AB2BC0 /* libPods-Demo-ReactiveSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */; }; B6B914FA21F0FBE50080B851 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B914F921F0FBE50080B851 /* DemoViewModel.swift */; }; B6B914FC21F1015A0080B851 /* DemoRequestable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B914FB21F1015A0080B851 /* DemoRequestable.swift */; }; B6B914FD21F101BA0080B851 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197EB1A1BB16D00F4DFD4 /* Main.storyboard */; }; @@ -39,9 +41,7 @@ B6B9151221F102040080B851 /* Rx+DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151121F102010080B851 /* Rx+DemoViewModel.swift */; }; B6B9151521F1E31E0080B851 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151421F1E31E0080B851 /* ViewController.swift */; }; B6B9151821F1E8370080B851 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151721F1E8370080B851 /* DemoViewModel.swift */; }; - E7576D0CD0E5AD547B896ED0 /* Pods_Demo_RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A232A84B98910D7EDF87CE0D /* Pods_Demo_RxSwift.framework */; }; - EE5817B4160808C125C38F94 /* Pods_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A89A1780FEB6242D2A585832 /* Pods_Demo.framework */; }; - FCE52922A7D2FD20C65EDE03 /* Pods_Demo_ReactiveSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 92D23DF288BDAB53A5B86FD7 /* Pods_Demo_ReactiveSwift.framework */; }; + D2CE0959D8E9CF9AE2690CB9 /* libPods-Demo-RxSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -51,6 +51,7 @@ 00D95AFC22608F8F00413792 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00D95B032260938800413792 /* Reactive+DemoViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Reactive+DemoViewModel.swift"; sourceTree = ""; }; 0D85AC75E709DB671C5F929E /* Pods-Demo-ReactiveSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-ReactiveSwift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift.debug.xcconfig"; sourceTree = ""; }; + 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 306F6BF61D22BCEB00F727A6 /* Repository.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Repository.swift; sourceTree = ""; }; 306F6BF81D22BCF400F727A6 /* Owner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Owner.swift; sourceTree = ""; }; 5EC197E01A1BB16D00F4DFD4 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -63,10 +64,9 @@ 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GitHubAPI.swift; sourceTree = ""; }; 635CFFB539B0C7F414CAD726 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 6F327BA3CDC694B5610D8F34 /* Pods-Demo-RxSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-RxSwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-RxSwift/Pods-Demo-RxSwift.release.xcconfig"; sourceTree = ""; }; + 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo-RxSwift.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 8D4F794B10774FA272DBB388 /* Pods-Demo-ReactiveSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-ReactiveSwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift.release.xcconfig"; sourceTree = ""; }; - 92D23DF288BDAB53A5B86FD7 /* Pods_Demo_ReactiveSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo_ReactiveSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A232A84B98910D7EDF87CE0D /* Pods_Demo_RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo_RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A89A1780FEB6242D2A585832 /* Pods_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo-ReactiveSwift.a"; sourceTree = BUILT_PRODUCTS_DIR; }; B6B914D021F0FB6B0080B851 /* Demo-RxSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-RxSwift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; B6B914DE21F0FB6C0080B851 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; B6B914F921F0FBE50080B851 /* DemoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoViewModel.swift; sourceTree = ""; }; @@ -84,7 +84,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - FCE52922A7D2FD20C65EDE03 /* Pods_Demo_ReactiveSwift.framework in Frameworks */, + 96F9729F194EE6B8C4AB2BC0 /* libPods-Demo-ReactiveSwift.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -92,7 +92,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - EE5817B4160808C125C38F94 /* Pods_Demo.framework in Frameworks */, + 2A8C3A0223C53341C6C8C7E9 /* libPods-Demo.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -100,7 +100,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E7576D0CD0E5AD547B896ED0 /* Pods_Demo_RxSwift.framework in Frameworks */, + D2CE0959D8E9CF9AE2690CB9 /* libPods-Demo-RxSwift.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -121,10 +121,10 @@ 4EA28E847926FEF1338D42F3 /* Frameworks */ = { isa = PBXGroup; children = ( + 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */, + 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */, + 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */, 635CFFB539B0C7F414CAD726 /* Pods.framework */, - A89A1780FEB6242D2A585832 /* Pods_Demo.framework */, - 92D23DF288BDAB53A5B86FD7 /* Pods_Demo_ReactiveSwift.framework */, - A232A84B98910D7EDF87CE0D /* Pods_Demo_RxSwift.framework */, ); name = Frameworks; sourceTree = ""; @@ -155,8 +155,8 @@ 5EC197E21A1BB16D00F4DFD4 /* Demo */ = { isa = PBXGroup; children = ( - 5EC197E31A1BB16D00F4DFD4 /* Supporting Files */, B6B914F921F0FBE50080B851 /* DemoViewModel.swift */, + 5EC197E31A1BB16D00F4DFD4 /* Supporting Files */, ); path = Demo; sourceTree = ""; @@ -172,8 +172,8 @@ B6B914CA21F0FA680080B851 /* Model */ = { isa = PBXGroup; children = ( - 306F6BF61D22BCEB00F727A6 /* Repository.swift */, 306F6BF81D22BCF400F727A6 /* Owner.swift */, + 306F6BF61D22BCEB00F727A6 /* Repository.swift */, ); path = Model; sourceTree = ""; @@ -181,9 +181,9 @@ B6B914CB21F0FA7F0080B851 /* Resources */ = { isa = PBXGroup; children = ( - 5EC197EB1A1BB16D00F4DFD4 /* Main.storyboard */, 5EC197EE1A1BB16D00F4DFD4 /* Images.xcassets */, 5EC197F01A1BB16D00F4DFD4 /* LaunchScreen.xib */, + 5EC197EB1A1BB16D00F4DFD4 /* Main.storyboard */, ); path = Resources; sourceTree = ""; @@ -191,10 +191,10 @@ B6B914D121F0FB6B0080B851 /* Demo-RxSwift */ = { isa = PBXGroup; children = ( + B6B914DE21F0FB6C0080B851 /* Info.plist */, B6B9151721F1E8370080B851 /* DemoViewModel.swift */, - B6B9151421F1E31E0080B851 /* ViewController.swift */, B6B9151121F102010080B851 /* Rx+DemoViewModel.swift */, - B6B914DE21F0FB6C0080B851 /* Info.plist */, + B6B9151421F1E31E0080B851 /* ViewController.swift */, ); path = "Demo-RxSwift"; sourceTree = ""; @@ -202,12 +202,12 @@ B6B914F821F0FB940080B851 /* Common */ = { isa = PBXGroup; children = ( - 5EC197E71A1BB16D00F4DFD4 /* ViewController.swift */, - B6B914CB21F0FA7F0080B851 /* Resources */, - B6B914CA21F0FA680080B851 /* Model */, 5EC197E51A1BB16D00F4DFD4 /* AppDelegate.swift */, - 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */, B6B914FB21F1015A0080B851 /* DemoRequestable.swift */, + 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */, + 5EC197E71A1BB16D00F4DFD4 /* ViewController.swift */, + B6B914CA21F0FA680080B851 /* Model */, + B6B914CB21F0FA7F0080B851 /* Resources */, ); path = Common; sourceTree = ""; @@ -215,12 +215,12 @@ B8D39EF1F6DCBAFA2D9AAD10 /* Pods */ = { isa = PBXGroup; children = ( - F3BA32533C45EB307D6E1A17 /* Pods-Demo.debug.xcconfig */, - E1CBA3696FDCC977B2899DB6 /* Pods-Demo.release.xcconfig */, 0D85AC75E709DB671C5F929E /* Pods-Demo-ReactiveSwift.debug.xcconfig */, 8D4F794B10774FA272DBB388 /* Pods-Demo-ReactiveSwift.release.xcconfig */, F79CBA55B66F9A58A18ECA9A /* Pods-Demo-RxSwift.debug.xcconfig */, 6F327BA3CDC694B5610D8F34 /* Pods-Demo-RxSwift.release.xcconfig */, + F3BA32533C45EB307D6E1A17 /* Pods-Demo.debug.xcconfig */, + E1CBA3696FDCC977B2899DB6 /* Pods-Demo.release.xcconfig */, ); name = Pods; sourceTree = ""; @@ -236,7 +236,6 @@ 00D95AE622608F7100413792 /* Sources */, 00D95AEF22608F7100413792 /* Frameworks */, 00D95AF122608F7100413792 /* Resources */, - 00D95AF522608F7100413792 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -255,7 +254,6 @@ 5EC197DC1A1BB16D00F4DFD4 /* Sources */, 5EC197DD1A1BB16D00F4DFD4 /* Frameworks */, 5EC197DE1A1BB16D00F4DFD4 /* Resources */, - 653ECFC7B1C9146D8B3A62CD /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -274,7 +272,6 @@ B6B914CC21F0FB6B0080B851 /* Sources */, B6B914CD21F0FB6B0080B851 /* Frameworks */, B6B914CE21F0FB6B0080B851 /* Resources */, - 1B604DD3FDD9FA318B010BE1 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -388,70 +385,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 00D95AF522608F7100413792 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework", - "${BUILT_PRODUCTS_DIR}/Moya.default-ReactiveSwift/Moya.framework", - "${BUILT_PRODUCTS_DIR}/Moya-ObjectMapper.default-ReactiveSwift/Moya_ObjectMapper.framework", - "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework", - "${BUILT_PRODUCTS_DIR}/ReactiveCocoa/ReactiveCocoa.framework", - "${BUILT_PRODUCTS_DIR}/ReactiveSwift/ReactiveSwift.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya_ObjectMapper.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjectMapper.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveCocoa.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveSwift.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 1B604DD3FDD9FA318B010BE1 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Demo-RxSwift/Pods-Demo-RxSwift-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework", - "${BUILT_PRODUCTS_DIR}/Moya.default-RxSwift/Moya.framework", - "${BUILT_PRODUCTS_DIR}/Moya-ObjectMapper.default-RxSwift/Moya_ObjectMapper.framework", - "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework", - "${BUILT_PRODUCTS_DIR}/Differentiator/Differentiator.framework", - "${BUILT_PRODUCTS_DIR}/RxAlertController/RxAlertController.framework", - "${BUILT_PRODUCTS_DIR}/RxCocoa/RxCocoa.framework", - "${BUILT_PRODUCTS_DIR}/RxDataSources/RxDataSources.framework", - "${BUILT_PRODUCTS_DIR}/RxRelay/RxRelay.framework", - "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya_ObjectMapper.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjectMapper.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Differentiator.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxAlertController.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxCocoa.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxDataSources.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxRelay.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo-RxSwift/Pods-Demo-RxSwift-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; 3759A0B97326E10705347171 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -474,30 +407,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 653ECFC7B1C9146D8B3A62CD /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework", - "${BUILT_PRODUCTS_DIR}/Moya/Moya.framework", - "${BUILT_PRODUCTS_DIR}/Moya-ObjectMapper/Moya_ObjectMapper.framework", - "${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya_ObjectMapper.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjectMapper.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; FC722F5FBFE683EBEF64FB02 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/Sample/Podfile b/Sample/Podfile index 7788fd56..e8942b9b 100755 --- a/Sample/Podfile +++ b/Sample/Podfile @@ -1,7 +1,5 @@ source 'https://github.com/CocoaPods/Specs.git' -use_frameworks! - # Our Libraries def libraries pod 'Moya-ObjectMapper', :path => "../" diff --git a/Sample/Podfile.lock b/Sample/Podfile.lock index 3442a75c..28aa6c25 100644 --- a/Sample/Podfile.lock +++ b/Sample/Podfile.lock @@ -1,45 +1,45 @@ PODS: - - Alamofire (5.0.0-rc.3) + - Alamofire (5.2.1) - Differentiator (4.0.1) - - Moya (14.0.0-beta.6): - - Moya/Core (= 14.0.0-beta.6) - - Moya-ObjectMapper (3.0): - - Moya-ObjectMapper/Core (= 3.0) - - Moya-ObjectMapper/Core (3.0): - - Moya (~> 14.0.0-beta.6) + - Moya (14.0.0): + - Moya/Core (= 14.0.0) + - Moya-ObjectMapper (2.9): + - Moya-ObjectMapper/Core (= 2.9) + - Moya-ObjectMapper/Core (2.9): + - Moya (~> 14.0.0) - ObjectMapper - - Moya-ObjectMapper/ReactiveSwift (3.0): + - Moya-ObjectMapper/ReactiveSwift (2.9): - Moya-ObjectMapper/Core - Moya/ReactiveSwift - ReactiveSwift - - Moya-ObjectMapper/RxSwift (3.0): + - Moya-ObjectMapper/RxSwift (2.9): - Moya-ObjectMapper/Core - Moya/RxSwift - RxSwift - - Moya/Core (14.0.0-beta.6): - - Alamofire (= 5.0.0-rc.3) - - Moya/ReactiveSwift (14.0.0-beta.6): + - Moya/Core (14.0.0): + - Alamofire (~> 5.0) + - Moya/ReactiveSwift (14.0.0): - Moya/Core - ReactiveSwift (~> 6.0) - - Moya/RxSwift (14.0.0-beta.6): + - Moya/RxSwift (14.0.0): - Moya/Core - RxSwift (~> 5.0) - - ObjectMapper (3.5.1) - - ReactiveCocoa (10.2.0): + - ObjectMapper (4.2.0) + - ReactiveCocoa (10.3.0): - ReactiveSwift (~> 6.2) - - ReactiveSwift (6.2.0) + - ReactiveSwift (6.3.0) - RxAlertController (5.0.0): - RxSwift (~> 5.0) - - RxCocoa (5.0.1): + - RxCocoa (5.1.1): - RxRelay (~> 5) - RxSwift (~> 5) - RxDataSources (4.0.1): - Differentiator (~> 4.0) - RxCocoa (~> 5.0) - RxSwift (~> 5.0) - - RxRelay (5.0.1): + - RxRelay (5.1.1): - RxSwift (~> 5) - - RxSwift (5.0.1) + - RxSwift (5.1.1) DEPENDENCIES: - Moya @@ -75,19 +75,19 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - Alamofire: ca8c0de6906873be89d6deec5c8de279e00bf872 + Alamofire: e911732990610fe89af59ac0077f923d72dc3dfd Differentiator: 886080237d9f87f322641dedbc5be257061b0602 - Moya: d4821fbcb3e784f34d2f82869e6855057a0b85d1 - Moya-ObjectMapper: c17b20a2ff331643b04f55c8975883ca0e59824b - ObjectMapper: 70187b8941977c62ccfb423caf6b50be405cabf0 - ReactiveCocoa: a123c42f449c552460a4ee217dd49c76a17c8204 - ReactiveSwift: 3dc8800378110b13d40b46ab362afa9f6bcffc6c + Moya: 5b45dacb75adb009f97fde91c204c1e565d31916 + Moya-ObjectMapper: 437ffc596b6e1cb43989cec3b769198abae514ec + ObjectMapper: 1eb41f610210777375fa806bf161dc39fb832b81 + ReactiveCocoa: 083ae559e6f588ce519cab412ea119b431c26a24 + ReactiveSwift: 7937f26ec18d555e2a99352bd0a8b2817d1f042d RxAlertController: ef75925a2a002f0f1fd03378ddeceaa9c1c5558f - RxCocoa: e741b9749968e8a143e2b787f1dfbff2b63d0a5c + RxCocoa: 32065309a38d29b5b0db858819b5bf9ef038b601 RxDataSources: efee07fa4de48477eca0a4611e6d11e2da9c1114 - RxRelay: 89d54507f4fd4d969e6ec1d4bd7f3673640b4640 - RxSwift: e2dc62b366a3adf6a0be44ba9f405efd4c94e0c4 + RxRelay: d77f7d771495f43c556cbc43eebd1bb54d01e8e9 + RxSwift: 81470a2074fa8780320ea5fe4102807cb7118178 -PODFILE CHECKSUM: a54ee9026cab0878d85c2ed1207e4e7c44ad070e +PODFILE CHECKSUM: 7dcb6802f414ace66b4a40fcbe652f84a284dea3 -COCOAPODS: 1.8.4 +COCOAPODS: 1.9.2 From c32b825b4d18a4929c10d96507d01fded6b56ba4 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Mon, 19 Apr 2021 11:24:31 +0200 Subject: [PATCH 03/15] Update Package.swift --- Package.swift | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index a5d8f56f..8b25fa61 100644 --- a/Package.swift +++ b/Package.swift @@ -11,10 +11,10 @@ let package = Package( .library(name: "Moya-ReactiveSwift-ObjectMapper", targets: ["Moya-ReactiveSwift-ObjectMapper"]) ], dependencies: [ - .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "12.0.0")), + .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "14.0.0")), .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "3.4.0")), .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "4.5.0")), - .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "4.0.0")) + .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) ], targets: [ .target( @@ -24,26 +24,34 @@ let package = Package( "ObjectMapper"], path: "Source/Core", exclude: [ - "Sample"]), + "Sample" + ] + ), .target( name: "Moya-RxSwift-ObjectMapper", dependencies: [ "Moya", "RxMoya", "ObjectMapper", - "RxSwift"], + "RxSwift" + ], path: "Source/RxSwift", exclude: [ - "Sample"]), + "Sample" + ] + ), .target( name: "Moya-ReactiveSwift-ObjectMapper", dependencies: [ "Moya", "ReactiveMoya", "ObjectMapper", - "ReactiveSwift"], + "ReactiveSwift" + ], path: "Source/ReactiveSwift", exclude: [ - "Sample"]) + "Sample" + ] + ) ] ) From 4faaec595f76bc1ca05abc16671aa7e72a80c92a Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Mon, 19 Apr 2021 11:26:55 +0200 Subject: [PATCH 04/15] Update Package.swift --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 8b25fa61..5d66958c 100644 --- a/Package.swift +++ b/Package.swift @@ -12,7 +12,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "14.0.0")), - .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "3.4.0")), + .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "4.2.0")), .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "4.5.0")), .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) ], From a58b0ddeefd059696830878db75b34a2734c1320 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Mon, 19 Apr 2021 12:20:55 +0200 Subject: [PATCH 05/15] Update Package.swift --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 5d66958c..4168536a 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "14.0.0")), .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "4.2.0")), - .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "4.5.0")), + .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.0")), .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) ], targets: [ From 11e915b09b2c082c4eea9deee44edcabd3720ec9 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Mon, 19 Apr 2021 12:48:54 +0200 Subject: [PATCH 06/15] Update Package.swift --- Package.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Package.swift b/Package.swift index 4168536a..c91cfcbf 100644 --- a/Package.swift +++ b/Package.swift @@ -5,6 +5,9 @@ import PackageDescription let package = Package( name: "Moya-ObjectMapper", + platforms: [ + .iOS(.v10) + ], products: [ .library(name: "Moya-ObjectMapper", targets: ["Moya-ObjectMapper"]), .library(name: "Moya-RxSwift-ObjectMapper", targets: ["Moya-RxSwift-ObjectMapper"]), From 7deae59369e567c761367fa6953076c966aa314b Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Mon, 19 Apr 2021 14:45:24 +0200 Subject: [PATCH 07/15] Update --- Package.swift | 3 ++- Sample/Podfile.lock | 2 +- .../ReactiveSwift/SignalProducer+ObjectMapper.swift | 11 ++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index c91cfcbf..5876afba 100644 --- a/Package.swift +++ b/Package.swift @@ -24,7 +24,8 @@ let package = Package( name: "Moya-ObjectMapper", dependencies: [ "Moya", - "ObjectMapper"], + "ObjectMapper" + ], path: "Source/Core", exclude: [ "Sample" diff --git a/Sample/Podfile.lock b/Sample/Podfile.lock index 28aa6c25..ec808c96 100644 --- a/Sample/Podfile.lock +++ b/Sample/Podfile.lock @@ -90,4 +90,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 7dcb6802f414ace66b4a40fcbe652f84a284dea3 -COCOAPODS: 1.9.2 +COCOAPODS: 1.10.1 diff --git a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift index 4ec55886..431cc0c2 100755 --- a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift +++ b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift @@ -3,11 +3,11 @@ import Moya import ObjectMapper /// Extension for processing Responses into Mappable objects through ObjectMapper -extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaError { +public extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaError { /// Maps data received from the signal into an object which implements the Mappable protocol. /// If the conversion fails, the signal errors. - public func mapObject(_ type: T.Type, context: MapContext? = nil) -> SignalProducer { + func mapObject(_ type: T.Type, context: MapContext? = nil) -> SignalProducer { return producer.flatMap(.latest) { (response: Response) -> SignalProducer in return unwrapThrowable { try response.mapObject(type, context: context) } @@ -17,7 +17,7 @@ extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaErro /// Maps data received from the signal into an array of objects which implement the Mappable /// protocol. /// If the conversion fails, the signal errors. - public func mapArray(_ type: T.Type, context: MapContext? = nil) -> SignalProducer<[T], MoyaError> { + func mapArray(_ type: T.Type, context: MapContext? = nil) -> SignalProducer<[T], MoyaError> { return producer.flatMap(.latest) { (response: Response) -> SignalProducer<[T], Error> in return unwrapThrowable { try response.mapArray(type, context: context) } } @@ -25,7 +25,7 @@ extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaErro /// Maps data received from the signal into an object which implements the Mappable protocol. /// If the conversion fails, the signal errors. - public func mapObject(_ type: T.Type, atKeyPath keyPath: String, context: MapContext? = nil) -> SignalProducer { + func mapObject(_ type: T.Type, atKeyPath keyPath: String, context: MapContext? = nil) -> SignalProducer { return producer.flatMap(.latest) { (response: Response) -> SignalProducer in return unwrapThrowable { try response.mapObject(type, atKeyPath: keyPath, context: context) } @@ -35,7 +35,7 @@ extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaErro /// Maps data received from the signal into an array of objects which implement the Mappable /// protocol. /// If the conversion fails, the signal errors. - public func mapArray(_ type: T.Type, atKeyPath keyPath: String, context: MapContext? = nil) -> SignalProducer<[T], MoyaError> { + func mapArray(_ type: T.Type, atKeyPath keyPath: String, context: MapContext? = nil) -> SignalProducer<[T], MoyaError> { return producer.flatMap(.latest) { (response: Response) -> SignalProducer<[T], Error> in return unwrapThrowable { try response.mapArray(type, atKeyPath: keyPath, context: context) } } @@ -50,3 +50,4 @@ private func unwrapThrowable(_ throwable: () throws -> T) -> SignalProducer Date: Tue, 20 Apr 2021 10:17:48 +0200 Subject: [PATCH 08/15] Update Package.swift --- .gitignore | 2 ++ Package.resolved | 81 +++++++++++++++++++++++++++++++++++++----------- Package.swift | 22 +++++-------- 3 files changed, 73 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 0d120359..b1c49feb 100755 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ Sample/Pods/ # Carthage/Checkouts Carthage/Build + +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/Package.resolved b/Package.resolved index 46fcb312..b109112d 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,17 @@ "repositoryURL": "https://github.com/Alamofire/Alamofire.git", "state": { "branch": null, - "revision": "75bba56748359f297a83f620d45f72cf4ebee4e7", - "version": "4.8.2" + "revision": "4d19ad82f80cc71ff829b941ded114c56f4f604c", + "version": "5.4.2" + } + }, + { + "package": "Logger", + "repositoryURL": "https://github.com/shibapm/Logger", + "state": { + "branch": null, + "revision": "53c3ecca5abe8cf46697e33901ee774236d94cce", + "version": "0.2.3" } }, { @@ -15,8 +24,8 @@ "repositoryURL": "https://github.com/Moya/Moya.git", "state": { "branch": null, - "revision": "a3dbb26039f49f439096397407fef3fc037176d8", - "version": "12.0.1" + "revision": "d27767c3624cc64a45bb371b267b89c92d70c670", + "version": "14.0.1" } }, { @@ -24,8 +33,8 @@ "repositoryURL": "https://github.com/Quick/Nimble.git", "state": { "branch": null, - "revision": "e9d769113660769a4d9dd3afb855562c0b7ae7b0", - "version": "7.3.4" + "revision": "7a46a5fc86cb917f69e3daf79fcb045283d8f008", + "version": "8.1.2" } }, { @@ -33,8 +42,26 @@ "repositoryURL": "https://github.com/tristanhimmelman/ObjectMapper.git", "state": { "branch": null, - "revision": "30c1b42872a234bad51efbed4165d73dd796c1ea", - "version": "3.5.0" + "revision": "0b96a734de3ea1c87374ae677064f86adb0716ec", + "version": "4.2.0" + } + }, + { + "package": "OHHTTPStubs", + "repositoryURL": "https://github.com/AliSoftware/OHHTTPStubs.git", + "state": { + "branch": null, + "revision": "12f19662426d0434d6c330c6974d53e2eb10ecd9", + "version": "9.1.0" + } + }, + { + "package": "PackageConfig", + "repositoryURL": "https://github.com/shibapm/PackageConfig.git", + "state": { + "branch": null, + "revision": "bf90dc69fa0792894b08a0b74cf34029694ae486", + "version": "0.13.0" } }, { @@ -42,8 +69,8 @@ "repositoryURL": "https://github.com/Quick/Quick.git", "state": { "branch": null, - "revision": "f2b5a06440ea87eba1a167cab37bf6496646c52e", - "version": "1.3.4" + "revision": "09b3becb37cb2163919a3842a4c5fa6ec7130792", + "version": "2.2.1" } }, { @@ -51,17 +78,17 @@ "repositoryURL": "https://github.com/ReactiveCocoa/ReactiveSwift.git", "state": { "branch": null, - "revision": "4f6a12ae6762e825b0e19a4f7076eafa43847e6e", - "version": "4.0.0" + "revision": "4a8e1e4a683e96daf658f68132dae781738bc862", + "version": "6.6.0" } }, { - "package": "Result", - "repositoryURL": "https://github.com/antitypical/Result.git", + "package": "Rocket", + "repositoryURL": "https://github.com/shibapm/Rocket", "state": { "branch": null, - "revision": "2ca499ba456795616fbc471561ff1d963e6ae160", - "version": "4.1.0" + "revision": "51a77ce5fa66c42715c14dcc542c01cd7a60fb27", + "version": "1.2.0" } }, { @@ -69,8 +96,26 @@ "repositoryURL": "https://github.com/ReactiveX/RxSwift.git", "state": { "branch": null, - "revision": "cce95dd704bc08cd3d69c087a05a6fc3118e2722", - "version": "4.5.0" + "revision": "254617dd7fae0c45319ba5fbea435bf4d0e15b5d", + "version": "5.1.2" + } + }, + { + "package": "SwiftShell", + "repositoryURL": "https://github.com/kareman/SwiftShell", + "state": { + "branch": null, + "revision": "a6014fe94c3dbff0ad500e8da4f251a5d336530b", + "version": "5.1.0-beta.1" + } + }, + { + "package": "Yams", + "repositoryURL": "https://github.com/jpsim/Yams", + "state": { + "branch": null, + "revision": "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa", + "version": "4.0.6" } } ] diff --git a/Package.swift b/Package.swift index 5876afba..f7f24250 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "14.0.0")), .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "4.2.0")), - .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.0")), + .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.1.0")), .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) ], targets: [ @@ -27,35 +27,29 @@ let package = Package( "ObjectMapper" ], path: "Source/Core", - exclude: [ - "Sample" - ] + exclude: ["Sample"] ), .target( name: "Moya-RxSwift-ObjectMapper", dependencies: [ "Moya", - "RxMoya", "ObjectMapper", - "RxSwift" + "RxSwift", + .product(name: "RxMoya", package: "Moya") ], path: "Source/RxSwift", - exclude: [ - "Sample" - ] + exclude: ["Sample"] ), .target( name: "Moya-ReactiveSwift-ObjectMapper", dependencies: [ "Moya", - "ReactiveMoya", "ObjectMapper", - "ReactiveSwift" + "ReactiveSwift", + .product(name: "ReactiveMoya", package: "Moya") ], path: "Source/ReactiveSwift", - exclude: [ - "Sample" - ] + exclude: ["Sample"] ) ] ) From 6ec96f2f2b842b40b67e46abca60c655a5e6979e Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Tue, 20 Apr 2021 10:31:16 +0200 Subject: [PATCH 09/15] Fix --- Source/ReactiveSwift/SignalProducer+ObjectMapper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift index 431cc0c2..6847fc09 100755 --- a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift +++ b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift @@ -3,7 +3,7 @@ import Moya import ObjectMapper /// Extension for processing Responses into Mappable objects through ObjectMapper -public extension SignalProducerProtocol where Value == Moya.Response, Error == MoyaError { +public extension SignalProducerProtocol where Value == Response, Error == MoyaError { /// Maps data received from the signal into an object which implements the Mappable protocol. /// If the conversion fails, the signal errors. From d3d159c736103773788acb1f5944166dd73d48f5 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Tue, 20 Apr 2021 10:35:39 +0200 Subject: [PATCH 10/15] Update Package.swift --- Package.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Package.swift b/Package.swift index f7f24250..076d4d4f 100644 --- a/Package.swift +++ b/Package.swift @@ -34,6 +34,7 @@ let package = Package( dependencies: [ "Moya", "ObjectMapper", + "Moya-ObjectMapper", "RxSwift", .product(name: "RxMoya", package: "Moya") ], @@ -45,6 +46,7 @@ let package = Package( dependencies: [ "Moya", "ObjectMapper", + "Moya-ObjectMapper", "ReactiveSwift", .product(name: "ReactiveMoya", package: "Moya") ], From 688c2ceff42e22b95297493f9a32edb3e413afb7 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Tue, 20 Apr 2021 10:48:45 +0200 Subject: [PATCH 11/15] Update --- Package.swift | 1 + Source/ReactiveSwift/SignalProducer+ObjectMapper.swift | 3 +++ Source/RxSwift/ObservableType+ObjectMapper.swift | 3 +++ Source/RxSwift/Single+ObjectMapper.swift | 3 +++ 4 files changed, 10 insertions(+) diff --git a/Package.swift b/Package.swift index 076d4d4f..5215c991 100644 --- a/Package.swift +++ b/Package.swift @@ -20,6 +20,7 @@ let package = Package( .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) ], targets: [ + .target( name: "Moya-ObjectMapper", dependencies: [ diff --git a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift index 6847fc09..06e3ff39 100755 --- a/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift +++ b/Source/ReactiveSwift/SignalProducer+ObjectMapper.swift @@ -1,6 +1,9 @@ import ReactiveSwift import Moya import ObjectMapper +#if !COCOAPODS +import Moya_ObjectMapper +#endif /// Extension for processing Responses into Mappable objects through ObjectMapper public extension SignalProducerProtocol where Value == Response, Error == MoyaError { diff --git a/Source/RxSwift/ObservableType+ObjectMapper.swift b/Source/RxSwift/ObservableType+ObjectMapper.swift index 3f83767a..d6b9380f 100644 --- a/Source/RxSwift/ObservableType+ObjectMapper.swift +++ b/Source/RxSwift/ObservableType+ObjectMapper.swift @@ -9,6 +9,9 @@ import Foundation import RxSwift import Moya import ObjectMapper +#if !COCOAPODS +import Moya_ObjectMapper +#endif /// Extension for processing Responses into Mappable objects through ObjectMapper public extension ObservableType where E == Response { diff --git a/Source/RxSwift/Single+ObjectMapper.swift b/Source/RxSwift/Single+ObjectMapper.swift index 071227d2..17a656db 100755 --- a/Source/RxSwift/Single+ObjectMapper.swift +++ b/Source/RxSwift/Single+ObjectMapper.swift @@ -9,6 +9,9 @@ import Foundation import RxSwift import Moya import ObjectMapper +#if !COCOAPODS +import Moya_ObjectMapper +#endif /// Extension for processing Responses into Mappable objects through ObjectMapper public extension PrimitiveSequence where TraitType == SingleTrait, ElementType == Response { From 475fc9d61c81150f92f0015af34e1f8234564bf7 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Thu, 16 Sep 2021 15:43:52 +0200 Subject: [PATCH 12/15] [SPM] Update Moya --- Package.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 5215c991..fa93ca6c 100644 --- a/Package.swift +++ b/Package.swift @@ -14,10 +14,10 @@ let package = Package( .library(name: "Moya-ReactiveSwift-ObjectMapper", targets: ["Moya-ReactiveSwift-ObjectMapper"]) ], dependencies: [ - .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "14.0.0")), + .package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "15.0.0")), .package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "4.2.0")), - .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.1.0")), - .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.6.0")) + .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.2.0")), + .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.7.0")) ], targets: [ From 351e454468b23db2c87279361fd4ebd9d70dbc45 Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Thu, 16 Sep 2021 16:23:51 +0200 Subject: [PATCH 13/15] [RxSwift] Fix --- Source/RxSwift/ObservableType+ObjectMapper.swift | 4 ++-- Source/RxSwift/Single+ObjectMapper.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/RxSwift/ObservableType+ObjectMapper.swift b/Source/RxSwift/ObservableType+ObjectMapper.swift index d6b9380f..bd35f231 100644 --- a/Source/RxSwift/ObservableType+ObjectMapper.swift +++ b/Source/RxSwift/ObservableType+ObjectMapper.swift @@ -14,7 +14,7 @@ import Moya_ObjectMapper #endif /// Extension for processing Responses into Mappable objects through ObjectMapper -public extension ObservableType where E == Response { +public extension ObservableType where Element == Response { /// Maps data received from the signal into an object /// which implements the Mappable protocol and returns the result back @@ -55,7 +55,7 @@ public extension ObservableType where E == Response { // MARK: - ImmutableMappable -public extension ObservableType where E == Response { +public extension ObservableType where Element == Response { /// Maps data received from the signal into an object /// which implements the ImmutableMappable protocol and returns the result back diff --git a/Source/RxSwift/Single+ObjectMapper.swift b/Source/RxSwift/Single+ObjectMapper.swift index 17a656db..4105ab97 100755 --- a/Source/RxSwift/Single+ObjectMapper.swift +++ b/Source/RxSwift/Single+ObjectMapper.swift @@ -14,7 +14,7 @@ import Moya_ObjectMapper #endif /// Extension for processing Responses into Mappable objects through ObjectMapper -public extension PrimitiveSequence where TraitType == SingleTrait, ElementType == Response { +public extension PrimitiveSequence where Trait == SingleTrait, Element == Response { /// Maps data received from the signal into an object /// which implements the Mappable protocol and returns the result back @@ -55,7 +55,7 @@ public extension PrimitiveSequence where TraitType == SingleTrait, ElementType = // MARK: - ImmutableMappable -public extension PrimitiveSequence where TraitType == SingleTrait, ElementType == Response { +public extension PrimitiveSequence where Trait == SingleTrait, Element == Response { /// Maps data received from the signal into an object /// which implements the ImmutableMappable protocol and returns the result back From 9b888a9d81541e66ba30b33fa207ca83edd5c75a Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Thu, 16 Sep 2021 16:29:33 +0200 Subject: [PATCH 14/15] [Pod] Update Moya --- Moya-ObjectMapper.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moya-ObjectMapper.podspec b/Moya-ObjectMapper.podspec index bfa5fee9..bb6d3620 100755 --- a/Moya-ObjectMapper.podspec +++ b/Moya-ObjectMapper.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.subspec "Core" do |ss| ss.source_files = "Source/Core/*.swift" - ss.dependency "Moya", '~> 14.0.0' + ss.dependency "Moya", '~> 15.0.0' ss.dependency "ObjectMapper" ss.framework = "Foundation" end From 283c945bd2bda36845201b4b5803611a27b040af Mon Sep 17 00:00:00 2001 From: Robin Picard Date: Thu, 16 Sep 2021 16:29:57 +0200 Subject: [PATCH 15/15] Update samples Cocoapods removed SPM added --- Sample/Demo-ReactiveSwift/DemoViewModel.swift | 2 + .../Reactive+DemoViewModel.swift | 2 + Sample/Demo-RxSwift/Rx+DemoViewModel.swift | 2 + Sample/Demo.xcodeproj/project.pbxproj | 339 +++++++++++------- .../Demo.xcworkspace/contents.xcworkspacedata | 3 - Sample/Podfile | 54 --- Sample/Podfile.lock | 93 ----- 7 files changed, 207 insertions(+), 288 deletions(-) delete mode 100755 Sample/Podfile delete mode 100644 Sample/Podfile.lock diff --git a/Sample/Demo-ReactiveSwift/DemoViewModel.swift b/Sample/Demo-ReactiveSwift/DemoViewModel.swift index 949a844b..0c532043 100644 --- a/Sample/Demo-ReactiveSwift/DemoViewModel.swift +++ b/Sample/Demo-ReactiveSwift/DemoViewModel.swift @@ -9,6 +9,8 @@ import Foundation import Moya import Moya_ObjectMapper +import Moya_ReactiveSwift_ObjectMapper +import ReactiveMoya import ReactiveSwift class ReactiveDemoViewModel: ReactiveExtensionsProvider { diff --git a/Sample/Demo-ReactiveSwift/Reactive+DemoViewModel.swift b/Sample/Demo-ReactiveSwift/Reactive+DemoViewModel.swift index f6ef2306..fd9d8bd7 100644 --- a/Sample/Demo-ReactiveSwift/Reactive+DemoViewModel.swift +++ b/Sample/Demo-ReactiveSwift/Reactive+DemoViewModel.swift @@ -9,6 +9,8 @@ import Foundation import Moya import Moya_ObjectMapper +import Moya_ReactiveSwift_ObjectMapper +import ReactiveMoya import ReactiveSwift extension Reactive where Base: ReactiveDemoViewModel { diff --git a/Sample/Demo-RxSwift/Rx+DemoViewModel.swift b/Sample/Demo-RxSwift/Rx+DemoViewModel.swift index 75e84d03..45b9575c 100644 --- a/Sample/Demo-RxSwift/Rx+DemoViewModel.swift +++ b/Sample/Demo-RxSwift/Rx+DemoViewModel.swift @@ -9,6 +9,8 @@ import Foundation import Moya import Moya_ObjectMapper +import Moya_RxSwift_ObjectMapper +import RxMoya import RxSwift extension Reactive where Base: RxDemoViewModel { diff --git a/Sample/Demo.xcodeproj/project.pbxproj b/Sample/Demo.xcodeproj/project.pbxproj index b336091a..1d0b6766 100644 --- a/Sample/Demo.xcodeproj/project.pbxproj +++ b/Sample/Demo.xcodeproj/project.pbxproj @@ -3,10 +3,20 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 52; objects = { /* Begin PBXBuildFile section */ + 00139B9626F3820200E66859 /* Moya-ReactiveSwift-ObjectMapper in Frameworks */ = {isa = PBXBuildFile; productRef = 00139B9526F3820200E66859 /* Moya-ReactiveSwift-ObjectMapper */; }; + 00139B9826F3820200E66859 /* Moya-RxSwift-ObjectMapper in Frameworks */ = {isa = PBXBuildFile; productRef = 00139B9726F3820200E66859 /* Moya-RxSwift-ObjectMapper */; }; + 00139B9A26F3820200E66859 /* Moya-ObjectMapper in Frameworks */ = {isa = PBXBuildFile; productRef = 00139B9926F3820200E66859 /* Moya-ObjectMapper */; }; + 00139B9D26F3839E00E66859 /* ReactiveCocoa in Frameworks */ = {isa = PBXBuildFile; productRef = 00139B9C26F3839E00E66859 /* ReactiveCocoa */; }; + 00139BA026F384DA00E66859 /* Moya in Frameworks */ = {isa = PBXBuildFile; productRef = 00139B9F26F384DA00E66859 /* Moya */; }; + 00139BA226F384DA00E66859 /* ReactiveMoya in Frameworks */ = {isa = PBXBuildFile; productRef = 00139BA126F384DA00E66859 /* ReactiveMoya */; }; + 00139BA426F384DA00E66859 /* RxMoya in Frameworks */ = {isa = PBXBuildFile; productRef = 00139BA326F384DA00E66859 /* RxMoya */; }; + 00139BA726F389D200E66859 /* RxCocoa in Frameworks */ = {isa = PBXBuildFile; productRef = 00139BA626F389D200E66859 /* RxCocoa */; }; + 00139BAC26F389F800E66859 /* RxDataSources in Frameworks */ = {isa = PBXBuildFile; productRef = 00139BAB26F389F800E66859 /* RxDataSources */; }; + 00139BB226F38BA900E66859 /* RxAlertController in Frameworks */ = {isa = PBXBuildFile; productRef = 00139BB126F38BA900E66859 /* RxAlertController */; }; 00D95AE722608F7100413792 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC197E51A1BB16D00F4DFD4 /* AppDelegate.swift */; }; 00D95AE822608F7100413792 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF61D22BCEB00F727A6 /* Repository.swift */; }; 00D95AE922608F7100413792 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF81D22BCF400F727A6 /* Owner.swift */; }; @@ -18,7 +28,6 @@ 00D95AFE22608F8F00413792 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95AFA22608F8F00413792 /* ViewController.swift */; }; 00D95AFF22608F8F00413792 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95AFB22608F8F00413792 /* DemoViewModel.swift */; }; 00D95B042260938800413792 /* Reactive+DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00D95B032260938800413792 /* Reactive+DemoViewModel.swift */; }; - 2A8C3A0223C53341C6C8C7E9 /* libPods-Demo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */; }; 306F6BF71D22BCEB00F727A6 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF61D22BCEB00F727A6 /* Repository.swift */; }; 306F6BF91D22BCF400F727A6 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF81D22BCF400F727A6 /* Owner.swift */; }; 5EC197E61A1BB16D00F4DFD4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC197E51A1BB16D00F4DFD4 /* AppDelegate.swift */; }; @@ -27,7 +36,6 @@ 5EC197EF1A1BB16D00F4DFD4 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197EE1A1BB16D00F4DFD4 /* Images.xcassets */; }; 5EC197F21A1BB16D00F4DFD4 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197F01A1BB16D00F4DFD4 /* LaunchScreen.xib */; }; 5EC198081A1BB24600F4DFD4 /* GitHubAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */; }; - 96F9729F194EE6B8C4AB2BC0 /* libPods-Demo-ReactiveSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */; }; B6B914FA21F0FBE50080B851 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B914F921F0FBE50080B851 /* DemoViewModel.swift */; }; B6B914FC21F1015A0080B851 /* DemoRequestable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B914FB21F1015A0080B851 /* DemoRequestable.swift */; }; B6B914FD21F101BA0080B851 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5EC197EB1A1BB16D00F4DFD4 /* Main.storyboard */; }; @@ -41,7 +49,6 @@ B6B9151221F102040080B851 /* Rx+DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151121F102010080B851 /* Rx+DemoViewModel.swift */; }; B6B9151521F1E31E0080B851 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151421F1E31E0080B851 /* ViewController.swift */; }; B6B9151821F1E8370080B851 /* DemoViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6B9151721F1E8370080B851 /* DemoViewModel.swift */; }; - D2CE0959D8E9CF9AE2690CB9 /* libPods-Demo-RxSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -50,8 +57,6 @@ 00D95AFB22608F8F00413792 /* DemoViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DemoViewModel.swift; sourceTree = ""; }; 00D95AFC22608F8F00413792 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00D95B032260938800413792 /* Reactive+DemoViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Reactive+DemoViewModel.swift"; sourceTree = ""; }; - 0D85AC75E709DB671C5F929E /* Pods-Demo-ReactiveSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-ReactiveSwift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift.debug.xcconfig"; sourceTree = ""; }; - 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 306F6BF61D22BCEB00F727A6 /* Repository.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Repository.swift; sourceTree = ""; }; 306F6BF81D22BCF400F727A6 /* Owner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Owner.swift; sourceTree = ""; }; 5EC197E01A1BB16D00F4DFD4 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -63,10 +68,6 @@ 5EC197F11A1BB16D00F4DFD4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 5EC198071A1BB24600F4DFD4 /* GitHubAPI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GitHubAPI.swift; sourceTree = ""; }; 635CFFB539B0C7F414CAD726 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 6F327BA3CDC694B5610D8F34 /* Pods-Demo-RxSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-RxSwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-RxSwift/Pods-Demo-RxSwift.release.xcconfig"; sourceTree = ""; }; - 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo-RxSwift.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 8D4F794B10774FA272DBB388 /* Pods-Demo-ReactiveSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-ReactiveSwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-ReactiveSwift/Pods-Demo-ReactiveSwift.release.xcconfig"; sourceTree = ""; }; - 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Demo-ReactiveSwift.a"; sourceTree = BUILT_PRODUCTS_DIR; }; B6B914D021F0FB6B0080B851 /* Demo-RxSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-RxSwift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; B6B914DE21F0FB6C0080B851 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; B6B914F921F0FBE50080B851 /* DemoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoViewModel.swift; sourceTree = ""; }; @@ -74,9 +75,6 @@ B6B9151121F102010080B851 /* Rx+DemoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Rx+DemoViewModel.swift"; sourceTree = ""; }; B6B9151421F1E31E0080B851 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; B6B9151721F1E8370080B851 /* DemoViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoViewModel.swift; sourceTree = ""; }; - E1CBA3696FDCC977B2899DB6 /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig"; sourceTree = ""; }; - F3BA32533C45EB307D6E1A17 /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"; sourceTree = ""; }; - F79CBA55B66F9A58A18ECA9A /* Pods-Demo-RxSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo-RxSwift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo-RxSwift/Pods-Demo-RxSwift.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -84,7 +82,9 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 96F9729F194EE6B8C4AB2BC0 /* libPods-Demo-ReactiveSwift.a in Frameworks */, + 00139B9626F3820200E66859 /* Moya-ReactiveSwift-ObjectMapper in Frameworks */, + 00139B9D26F3839E00E66859 /* ReactiveCocoa in Frameworks */, + 00139BA226F384DA00E66859 /* ReactiveMoya in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -92,7 +92,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 2A8C3A0223C53341C6C8C7E9 /* libPods-Demo.a in Frameworks */, + 00139BA026F384DA00E66859 /* Moya in Frameworks */, + 00139B9A26F3820200E66859 /* Moya-ObjectMapper in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -100,7 +101,11 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D2CE0959D8E9CF9AE2690CB9 /* libPods-Demo-RxSwift.a in Frameworks */, + 00139BA726F389D200E66859 /* RxCocoa in Frameworks */, + 00139BAC26F389F800E66859 /* RxDataSources in Frameworks */, + 00139BA426F384DA00E66859 /* RxMoya in Frameworks */, + 00139BB226F38BA900E66859 /* RxAlertController in Frameworks */, + 00139B9826F3820200E66859 /* Moya-RxSwift-ObjectMapper in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -121,9 +126,6 @@ 4EA28E847926FEF1338D42F3 /* Frameworks */ = { isa = PBXGroup; children = ( - 906EA1625F12673DC95C73FB /* libPods-Demo-ReactiveSwift.a */, - 7C82BC990A70B4193B576782 /* libPods-Demo-RxSwift.a */, - 2E730AFB4F18ADF02DB1561B /* libPods-Demo.a */, 635CFFB539B0C7F414CAD726 /* Pods.framework */, ); name = Frameworks; @@ -138,7 +140,6 @@ B6B914D121F0FB6B0080B851 /* Demo-RxSwift */, 5EC197E11A1BB16D00F4DFD4 /* Products */, 4EA28E847926FEF1338D42F3 /* Frameworks */, - B8D39EF1F6DCBAFA2D9AAD10 /* Pods */, ); sourceTree = ""; }; @@ -212,19 +213,6 @@ path = Common; sourceTree = ""; }; - B8D39EF1F6DCBAFA2D9AAD10 /* Pods */ = { - isa = PBXGroup; - children = ( - 0D85AC75E709DB671C5F929E /* Pods-Demo-ReactiveSwift.debug.xcconfig */, - 8D4F794B10774FA272DBB388 /* Pods-Demo-ReactiveSwift.release.xcconfig */, - F79CBA55B66F9A58A18ECA9A /* Pods-Demo-RxSwift.debug.xcconfig */, - 6F327BA3CDC694B5610D8F34 /* Pods-Demo-RxSwift.release.xcconfig */, - F3BA32533C45EB307D6E1A17 /* Pods-Demo.debug.xcconfig */, - E1CBA3696FDCC977B2899DB6 /* Pods-Demo.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -232,7 +220,6 @@ isa = PBXNativeTarget; buildConfigurationList = 00D95AF622608F7100413792 /* Build configuration list for PBXNativeTarget "Demo-ReactiveSwift" */; buildPhases = ( - 00D95AE522608F7100413792 /* [CP] Check Pods Manifest.lock */, 00D95AE622608F7100413792 /* Sources */, 00D95AEF22608F7100413792 /* Frameworks */, 00D95AF122608F7100413792 /* Resources */, @@ -242,6 +229,11 @@ dependencies = ( ); name = "Demo-ReactiveSwift"; + packageProductDependencies = ( + 00139B9526F3820200E66859 /* Moya-ReactiveSwift-ObjectMapper */, + 00139B9C26F3839E00E66859 /* ReactiveCocoa */, + 00139BA126F384DA00E66859 /* ReactiveMoya */, + ); productName = "Demo-RxSwift"; productReference = 00D95AF922608F7100413792 /* Demo-ReactiveSwift.app */; productType = "com.apple.product-type.application"; @@ -250,7 +242,6 @@ isa = PBXNativeTarget; buildConfigurationList = 5EC198011A1BB16D00F4DFD4 /* Build configuration list for PBXNativeTarget "Demo" */; buildPhases = ( - FC722F5FBFE683EBEF64FB02 /* [CP] Check Pods Manifest.lock */, 5EC197DC1A1BB16D00F4DFD4 /* Sources */, 5EC197DD1A1BB16D00F4DFD4 /* Frameworks */, 5EC197DE1A1BB16D00F4DFD4 /* Resources */, @@ -260,6 +251,10 @@ dependencies = ( ); name = Demo; + packageProductDependencies = ( + 00139B9926F3820200E66859 /* Moya-ObjectMapper */, + 00139B9F26F384DA00E66859 /* Moya */, + ); productName = Demo; productReference = 5EC197E01A1BB16D00F4DFD4 /* Demo.app */; productType = "com.apple.product-type.application"; @@ -268,7 +263,6 @@ isa = PBXNativeTarget; buildConfigurationList = B6B914DF21F0FB6C0080B851 /* Build configuration list for PBXNativeTarget "Demo-RxSwift" */; buildPhases = ( - 3759A0B97326E10705347171 /* [CP] Check Pods Manifest.lock */, B6B914CC21F0FB6B0080B851 /* Sources */, B6B914CD21F0FB6B0080B851 /* Frameworks */, B6B914CE21F0FB6B0080B851 /* Resources */, @@ -278,6 +272,13 @@ dependencies = ( ); name = "Demo-RxSwift"; + packageProductDependencies = ( + 00139B9726F3820200E66859 /* Moya-RxSwift-ObjectMapper */, + 00139BA326F384DA00E66859 /* RxMoya */, + 00139BA626F389D200E66859 /* RxCocoa */, + 00139BAB26F389F800E66859 /* RxDataSources */, + 00139BB126F38BA900E66859 /* RxAlertController */, + ); productName = "Demo-RxSwift"; productReference = B6B914D021F0FB6B0080B851 /* Demo-RxSwift.app */; productType = "com.apple.product-type.application"; @@ -290,21 +291,21 @@ attributes = { LastSwiftMigration = 0700; LastSwiftUpdateCheck = 1010; - LastUpgradeCheck = 1020; + LastUpgradeCheck = 1250; ORGANIZATIONNAME = "Ash Furrow"; TargetAttributes = { 00D95AE422608F7100413792 = { - DevelopmentTeam = 552H65R858; + DevelopmentTeam = D2AMZDF9K6; ProvisioningStyle = Automatic; }; 5EC197DF1A1BB16D00F4DFD4 = { CreatedOnToolsVersion = 6.1.1; - DevelopmentTeam = 552H65R858; + DevelopmentTeam = D2AMZDF9K6; LastSwiftMigration = 1020; }; B6B914CF21F0FB6B0080B851 = { CreatedOnToolsVersion = 10.1; - DevelopmentTeam = 552H65R858; + DevelopmentTeam = D2AMZDF9K6; ProvisioningStyle = Automatic; }; }; @@ -318,6 +319,14 @@ Base, ); mainGroup = 5EC197D71A1BB16D00F4DFD4; + packageReferences = ( + 00139B9426F3820200E66859 /* XCRemoteSwiftPackageReference "Moya-ObjectMapper" */, + 00139B9B26F3839E00E66859 /* XCRemoteSwiftPackageReference "ReactiveCocoa" */, + 00139B9E26F384DA00E66859 /* XCRemoteSwiftPackageReference "Moya" */, + 00139BA526F389D200E66859 /* XCRemoteSwiftPackageReference "RxSwift" */, + 00139BAA26F389F800E66859 /* XCRemoteSwiftPackageReference "RxDataSources" */, + 00139BB026F38BA900E66859 /* XCRemoteSwiftPackageReference "RxAlertController" */, + ); productRefGroup = 5EC197E11A1BB16D00F4DFD4 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -362,71 +371,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 00D95AE522608F7100413792 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Demo-ReactiveSwift-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - 3759A0B97326E10705347171 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Demo-RxSwift-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - FC722F5FBFE683EBEF64FB02 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Demo-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 00D95AE622608F7100413792 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -496,7 +440,6 @@ /* Begin XCBuildConfiguration section */ 00D95AF722608F7100413792 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0D85AC75E709DB671C5F929E /* Pods-Demo-ReactiveSwift.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ANALYZER_NONNULL = YES; @@ -508,14 +451,17 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "$(SRCROOT)/Demo-ReactiveSwift/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.Demo-ReactiveSwift"; + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo-ReactiveSwift"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_VERSION = 5.0; @@ -525,7 +471,6 @@ }; 00D95AF822608F7100413792 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8D4F794B10774FA272DBB388 /* Pods-Demo-ReactiveSwift.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ANALYZER_NONNULL = YES; @@ -538,13 +483,16 @@ CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "$(SRCROOT)/Demo-ReactiveSwift/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.Demo-ReactiveSwift"; + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo-ReactiveSwift"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -574,6 +522,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -598,7 +547,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -629,6 +578,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -646,24 +596,27 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; VALIDATE_PRODUCT = YES; }; name = Release; }; 5EC198021A1BB16D00F4DFD4 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3BA32533C45EB307D6E1A17 /* Pods-Demo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; INFOPLIST_FILE = Demo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.ashfurrow.$(PRODUCT_NAME:rfc1034identifier)"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; }; @@ -671,14 +624,16 @@ }; 5EC198031A1BB16D00F4DFD4 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = E1CBA3696FDCC977B2899DB6 /* Pods-Demo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; INFOPLIST_FILE = Demo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.ashfurrow.$(PRODUCT_NAME:rfc1034identifier)"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; }; @@ -686,7 +641,6 @@ }; B6B914E021F0FB6C0080B851 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F79CBA55B66F9A58A18ECA9A /* Pods-Demo-RxSwift.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ANALYZER_NONNULL = YES; @@ -698,14 +652,17 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "Demo-RxSwift/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.Demo-RxSwift"; + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo-RxSwift"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_VERSION = 5.0; @@ -715,7 +672,6 @@ }; B6B914E121F0FB6C0080B851 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6F327BA3CDC694B5610D8F34 /* Pods-Demo-RxSwift.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ANALYZER_NONNULL = YES; @@ -728,13 +684,16 @@ CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = 552H65R858; + DEVELOPMENT_TEAM = D2AMZDF9K6; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "Demo-RxSwift/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.Demo-RxSwift"; + PRODUCT_BUNDLE_IDENTIFIER = "p-rob.com.ashfurrow.Demo-RxSwift"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -781,6 +740,110 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 00139B9426F3820200E66859 /* XCRemoteSwiftPackageReference "Moya-ObjectMapper" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/p-rob/Moya-ObjectMapper"; + requirement = { + branch = "update-moya"; + kind = branch; + }; + }; + 00139B9B26F3839E00E66859 /* XCRemoteSwiftPackageReference "ReactiveCocoa" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/ReactiveCocoa/ReactiveCocoa"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 11.2.2; + }; + }; + 00139B9E26F384DA00E66859 /* XCRemoteSwiftPackageReference "Moya" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Moya/Moya"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 15.0.0; + }; + }; + 00139BA526F389D200E66859 /* XCRemoteSwiftPackageReference "RxSwift" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/ReactiveX/RxSwift"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 6.2.0; + }; + }; + 00139BAA26F389F800E66859 /* XCRemoteSwiftPackageReference "RxDataSources" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/RxSwiftCommunity/RxDataSources"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 5.0.2; + }; + }; + 00139BB026F38BA900E66859 /* XCRemoteSwiftPackageReference "RxAlertController" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/evgeny-sureev/RxAlertController"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 6.0.1; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 00139B9526F3820200E66859 /* Moya-ReactiveSwift-ObjectMapper */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9426F3820200E66859 /* XCRemoteSwiftPackageReference "Moya-ObjectMapper" */; + productName = "Moya-ReactiveSwift-ObjectMapper"; + }; + 00139B9726F3820200E66859 /* Moya-RxSwift-ObjectMapper */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9426F3820200E66859 /* XCRemoteSwiftPackageReference "Moya-ObjectMapper" */; + productName = "Moya-RxSwift-ObjectMapper"; + }; + 00139B9926F3820200E66859 /* Moya-ObjectMapper */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9426F3820200E66859 /* XCRemoteSwiftPackageReference "Moya-ObjectMapper" */; + productName = "Moya-ObjectMapper"; + }; + 00139B9C26F3839E00E66859 /* ReactiveCocoa */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9B26F3839E00E66859 /* XCRemoteSwiftPackageReference "ReactiveCocoa" */; + productName = ReactiveCocoa; + }; + 00139B9F26F384DA00E66859 /* Moya */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9E26F384DA00E66859 /* XCRemoteSwiftPackageReference "Moya" */; + productName = Moya; + }; + 00139BA126F384DA00E66859 /* ReactiveMoya */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9E26F384DA00E66859 /* XCRemoteSwiftPackageReference "Moya" */; + productName = ReactiveMoya; + }; + 00139BA326F384DA00E66859 /* RxMoya */ = { + isa = XCSwiftPackageProductDependency; + package = 00139B9E26F384DA00E66859 /* XCRemoteSwiftPackageReference "Moya" */; + productName = RxMoya; + }; + 00139BA626F389D200E66859 /* RxCocoa */ = { + isa = XCSwiftPackageProductDependency; + package = 00139BA526F389D200E66859 /* XCRemoteSwiftPackageReference "RxSwift" */; + productName = RxCocoa; + }; + 00139BAB26F389F800E66859 /* RxDataSources */ = { + isa = XCSwiftPackageProductDependency; + package = 00139BAA26F389F800E66859 /* XCRemoteSwiftPackageReference "RxDataSources" */; + productName = RxDataSources; + }; + 00139BB126F38BA900E66859 /* RxAlertController */ = { + isa = XCSwiftPackageProductDependency; + package = 00139BB026F38BA900E66859 /* XCRemoteSwiftPackageReference "RxAlertController" */; + productName = RxAlertController; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 5EC197D81A1BB16D00F4DFD4 /* Project object */; } diff --git a/Sample/Demo.xcworkspace/contents.xcworkspacedata b/Sample/Demo.xcworkspace/contents.xcworkspacedata index 1f140198..30f4dea9 100755 --- a/Sample/Demo.xcworkspace/contents.xcworkspacedata +++ b/Sample/Demo.xcworkspace/contents.xcworkspacedata @@ -4,7 +4,4 @@ - - diff --git a/Sample/Podfile b/Sample/Podfile deleted file mode 100755 index e8942b9b..00000000 --- a/Sample/Podfile +++ /dev/null @@ -1,54 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' - -# Our Libraries -def libraries - pod 'Moya-ObjectMapper', :path => "../" -end - -def libraries_rx_swift - pod 'Moya-ObjectMapper/RxSwift', :path => "../" - pod 'Moya/RxSwift' - pod 'RxSwift' #, :git => 'https://github.com/ReactiveX/RxSwift' - pod 'RxDataSources' - pod 'RxCocoa' - pod 'RxAlertController' -end - -def libraries_reactive_swift - pod 'Moya-ObjectMapper/ReactiveSwift', :path => "../" - pod 'Moya/ReactiveSwift' - pod 'ReactiveCocoa' - pod 'ReactiveSwift' -end - -def required_pods - pod 'ObjectMapper' #, :git => 'https://github.com/Hearst-DD/ObjectMapper' - pod 'Moya' #, :git => 'https://github.com/Moya/Moya' -end - -# Test Libraries -def test_pods - pod 'Quick' - pod 'Nimble' - pod 'OHHTTPStubs' -end - -target 'Demo' do - platform :ios, '10.0' - required_pods - libraries -end - -target 'Demo-RxSwift' do - platform :ios, '10.0' - required_pods - libraries - libraries_rx_swift -end - -target 'Demo-ReactiveSwift' do - platform :ios, '10.0' - required_pods - libraries - libraries_reactive_swift -end \ No newline at end of file diff --git a/Sample/Podfile.lock b/Sample/Podfile.lock deleted file mode 100644 index ec808c96..00000000 --- a/Sample/Podfile.lock +++ /dev/null @@ -1,93 +0,0 @@ -PODS: - - Alamofire (5.2.1) - - Differentiator (4.0.1) - - Moya (14.0.0): - - Moya/Core (= 14.0.0) - - Moya-ObjectMapper (2.9): - - Moya-ObjectMapper/Core (= 2.9) - - Moya-ObjectMapper/Core (2.9): - - Moya (~> 14.0.0) - - ObjectMapper - - Moya-ObjectMapper/ReactiveSwift (2.9): - - Moya-ObjectMapper/Core - - Moya/ReactiveSwift - - ReactiveSwift - - Moya-ObjectMapper/RxSwift (2.9): - - Moya-ObjectMapper/Core - - Moya/RxSwift - - RxSwift - - Moya/Core (14.0.0): - - Alamofire (~> 5.0) - - Moya/ReactiveSwift (14.0.0): - - Moya/Core - - ReactiveSwift (~> 6.0) - - Moya/RxSwift (14.0.0): - - Moya/Core - - RxSwift (~> 5.0) - - ObjectMapper (4.2.0) - - ReactiveCocoa (10.3.0): - - ReactiveSwift (~> 6.2) - - ReactiveSwift (6.3.0) - - RxAlertController (5.0.0): - - RxSwift (~> 5.0) - - RxCocoa (5.1.1): - - RxRelay (~> 5) - - RxSwift (~> 5) - - RxDataSources (4.0.1): - - Differentiator (~> 4.0) - - RxCocoa (~> 5.0) - - RxSwift (~> 5.0) - - RxRelay (5.1.1): - - RxSwift (~> 5) - - RxSwift (5.1.1) - -DEPENDENCIES: - - Moya - - Moya-ObjectMapper (from `../`) - - Moya-ObjectMapper/ReactiveSwift (from `../`) - - Moya-ObjectMapper/RxSwift (from `../`) - - Moya/ReactiveSwift - - Moya/RxSwift - - ObjectMapper - - ReactiveCocoa - - ReactiveSwift - - RxAlertController - - RxCocoa - - RxDataSources - - RxSwift - -SPEC REPOS: - https://github.com/CocoaPods/Specs.git: - - Alamofire - - Differentiator - - Moya - - ObjectMapper - - ReactiveCocoa - - ReactiveSwift - - RxAlertController - - RxCocoa - - RxDataSources - - RxRelay - - RxSwift - -EXTERNAL SOURCES: - Moya-ObjectMapper: - :path: "../" - -SPEC CHECKSUMS: - Alamofire: e911732990610fe89af59ac0077f923d72dc3dfd - Differentiator: 886080237d9f87f322641dedbc5be257061b0602 - Moya: 5b45dacb75adb009f97fde91c204c1e565d31916 - Moya-ObjectMapper: 437ffc596b6e1cb43989cec3b769198abae514ec - ObjectMapper: 1eb41f610210777375fa806bf161dc39fb832b81 - ReactiveCocoa: 083ae559e6f588ce519cab412ea119b431c26a24 - ReactiveSwift: 7937f26ec18d555e2a99352bd0a8b2817d1f042d - RxAlertController: ef75925a2a002f0f1fd03378ddeceaa9c1c5558f - RxCocoa: 32065309a38d29b5b0db858819b5bf9ef038b601 - RxDataSources: efee07fa4de48477eca0a4611e6d11e2da9c1114 - RxRelay: d77f7d771495f43c556cbc43eebd1bb54d01e8e9 - RxSwift: 81470a2074fa8780320ea5fe4102807cb7118178 - -PODFILE CHECKSUM: 7dcb6802f414ace66b4a40fcbe652f84a284dea3 - -COCOAPODS: 1.10.1