From f504670ad683fda41d9a4bf70fca69cd0f41ec7c Mon Sep 17 00:00:00 2001 From: Bushra Nazir Date: Fri, 31 Jan 2020 14:38:56 +0100 Subject: [PATCH] remove ReactiveCocoa from imports --- PlaygroundExamples.xcodeproj/project.pbxproj | 23 ------------------- .../Contents.swift | 2 +- .../Contents.swift | 1 - .../Contents.swift | 1 - .../Contents.swift | 13 +++++++---- .../Merge.playground/Contents.swift | 1 - .../Contents.swift | 1 - .../Contents.swift | 1 - .../1.playground/Contents.swift | 1 - .../1.playground/contents.xcplayground | 2 +- Podfile | 1 - Podfile.lock | 11 +++------ 12 files changed, 13 insertions(+), 45 deletions(-) diff --git a/PlaygroundExamples.xcodeproj/project.pbxproj b/PlaygroundExamples.xcodeproj/project.pbxproj index b1ae18a..bf921c4 100644 --- a/PlaygroundExamples.xcodeproj/project.pbxproj +++ b/PlaygroundExamples.xcodeproj/project.pbxproj @@ -236,7 +236,6 @@ 0A13969820227B88007C2A83 /* Sources */, 0A13969920227B88007C2A83 /* Frameworks */, 0A13969A20227B88007C2A83 /* Resources */, - 760C124CC601AD1F0A15F276 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -323,28 +322,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; }; - 760C124CC601AD1F0A15F276 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-PlaygroundExamplesTests/Pods-PlaygroundExamplesTests-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/ReactiveCocoa/ReactiveCocoa.framework", - "${BUILT_PRODUCTS_DIR}/ReactiveSwift/ReactiveSwift.framework", - "${BUILT_PRODUCTS_DIR}/Result/Result.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveCocoa.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveSwift.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Result.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PlaygroundExamplesTests/Pods-PlaygroundExamplesTests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; F4C8E92C945A0C244CCD88E9 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/PlaygroundExamples/Error handling/ErrorHandling.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Error handling/ErrorHandling.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift index d153647..1932db2 100644 --- a/PlaygroundExamples/Error handling/ErrorHandling.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Error handling/ErrorHandling.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift @@ -3,7 +3,7 @@ import UIKit import ReactiveSwift -import ReactiveCocoa + import Result import PlaygroundExamples import PlaygroundSupport diff --git a/PlaygroundExamples/Error handling/SignalsAndSignalProducers.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Error handling/SignalsAndSignalProducers.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift index 36d762b..142ff30 100644 --- a/PlaygroundExamples/Error handling/SignalsAndSignalProducers.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Error handling/SignalsAndSignalProducers.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift @@ -3,7 +3,6 @@ import UIKit import ReactiveSwift -import ReactiveCocoa import Result import PlaygroundExamples import PlaygroundSupport diff --git a/PlaygroundExamples/Signals in general/CombineLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Signals in general/CombineLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift index a9bb28c..54d32f6 100644 --- a/PlaygroundExamples/Signals in general/CombineLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Signals in general/CombineLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift @@ -3,7 +3,6 @@ import UIKit import ReactiveSwift -import ReactiveCocoa import Result import PlaygroundExamples diff --git a/PlaygroundExamples/Signals in general/Map.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Signals in general/Map.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift index 2ab94dd..a58aed4 100644 --- a/PlaygroundExamples/Signals in general/Map.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Signals in general/Map.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift @@ -2,7 +2,6 @@ import UIKit -import ReactiveCocoa import Result import ReactiveSwift import PlaygroundExamples @@ -12,7 +11,7 @@ let originalSignal = Signal.pipe() // Map converts from one return value to another -let array = ["lol", "kjlj", "jkhkjh"] +let array = ["first index", "second index", "third index"] let mySignal = originalSignal.output.map{ value in return array[value] @@ -24,18 +23,22 @@ mySignal.observeValues { (value) in print(value) } -originalSignal.input.send(value: 2) +originalSignal.input.send(value: 0) after(2) { - originalSignal.input.send(value: 0) + originalSignal.input.send(value: 1) + + after (2) { + originalSignal.input.send(value: 2) + } } - let signal1 = Signal.pipe() let signal2 = Signal.pipe() + PlaygroundPage.current.needsIndefiniteExecution = true diff --git a/PlaygroundExamples/Signals in general/Merge.playground/Contents.swift b/PlaygroundExamples/Signals in general/Merge.playground/Contents.swift index ad20212..eef3b05 100644 --- a/PlaygroundExamples/Signals in general/Merge.playground/Contents.swift +++ b/PlaygroundExamples/Signals in general/Merge.playground/Contents.swift @@ -1,5 +1,4 @@ import Foundation -import ReactiveCocoa import Result import ReactiveSwift import PlaygroundExamples diff --git a/PlaygroundExamples/Signals in general/WithLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Signals in general/WithLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift index de47516..27c8c79 100644 --- a/PlaygroundExamples/Signals in general/WithLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Signals in general/WithLatest.playground/Pages/Basic intro.xcplaygroundpage/Contents.swift @@ -3,7 +3,6 @@ import UIKit import ReactiveSwift -import ReactiveCocoa import Result diff --git a/PlaygroundExamples/Signals in general/Zip.playground/Pages/basic intro.xcplaygroundpage/Contents.swift b/PlaygroundExamples/Signals in general/Zip.playground/Pages/basic intro.xcplaygroundpage/Contents.swift index c18abd1..ad2ac7e 100644 --- a/PlaygroundExamples/Signals in general/Zip.playground/Pages/basic intro.xcplaygroundpage/Contents.swift +++ b/PlaygroundExamples/Signals in general/Zip.playground/Pages/basic intro.xcplaygroundpage/Contents.swift @@ -1,5 +1,4 @@ import Foundation -import ReactiveCocoa import Result import ReactiveSwift import PlaygroundExamples diff --git a/PlaygroundExamples/new Playgrounds/1.playground/Contents.swift b/PlaygroundExamples/new Playgrounds/1.playground/Contents.swift index 6c291c3..b7fee68 100644 --- a/PlaygroundExamples/new Playgrounds/1.playground/Contents.swift +++ b/PlaygroundExamples/new Playgrounds/1.playground/Contents.swift @@ -1,5 +1,4 @@ import Foundation -import ReactiveCocoa import Result import ReactiveSwift import PlaygroundExamples diff --git a/PlaygroundExamples/new Playgrounds/1.playground/contents.xcplayground b/PlaygroundExamples/new Playgrounds/1.playground/contents.xcplayground index 9f5f2f4..5da2641 100644 --- a/PlaygroundExamples/new Playgrounds/1.playground/contents.xcplayground +++ b/PlaygroundExamples/new Playgrounds/1.playground/contents.xcplayground @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/Podfile b/Podfile index 5a227fd..e65a0f0 100644 --- a/Podfile +++ b/Podfile @@ -19,7 +19,6 @@ target 'PlaygroundExamples' do use_frameworks! pod "ReactiveSwift" - pod "ReactiveCocoa" pod "Result" downgrade_swift # Pods for PlaygroundExamples diff --git a/Podfile.lock b/Podfile.lock index 87ce2d7..4681582 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,26 +1,21 @@ PODS: - - ReactiveCocoa (7.0.1): - - ReactiveSwift (~> 3.0) - ReactiveSwift (3.0.0): - Result (~> 3.2) - Result (3.2.4) DEPENDENCIES: - - ReactiveCocoa - ReactiveSwift - Result SPEC REPOS: - https://github.com/cocoapods/specs.git: - - ReactiveCocoa + trunk: - ReactiveSwift - Result SPEC CHECKSUMS: - ReactiveCocoa: a1b5d502d0d1534f9a72981a485b297b17127f83 ReactiveSwift: d9fe0db33c1aaabecb092e8de83cf52875c0de6f Result: d2d07204ce72856f1fd9130bbe42c35a7b0fea10 -PODFILE CHECKSUM: 8974b5c65ce4e4970c21029432060dafafcdcd1a +PODFILE CHECKSUM: 4484fbda11c59ce6c78c88d98ed24c7515b5d1c9 -COCOAPODS: 1.5.3 +COCOAPODS: 1.8.4