Skip to content

Commit

Permalink
Update ReactiveSwift to 4.0 (#54)
Browse files Browse the repository at this point in the history
* Update ReactiveSwift to 4.0

* Xcode 9.4: Update to recommended settings

* Make deprecated methods unavailable

* Update .travis.yml
  • Loading branch information
ikesyo authored and andersio committed Aug 31, 2018
1 parent 1c52782 commit ec817c3
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode9
osx_image: xcode9.4
before_install: true
install: true
branches:
Expand All @@ -24,7 +24,7 @@ matrix:
env:
- XCODE_SDK=appletvsimulator
- XCODE_ACTION="build-for-testing test-without-building"
- XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p"
- XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV"
- xcode_scheme: ReactiveObjCBridge-watchOS
env:
- XCODE_SDK=watchsimulator
Expand Down
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "ReactiveCocoa/ReactiveObjC" ~> 3.0.0
github "ReactiveCocoa/ReactiveSwift" ~> 3.0.0
github "ReactiveCocoa/ReactiveObjC" ~> 3.1.0
github "ReactiveCocoa/ReactiveSwift" ~> 4.0.0
4 changes: 2 additions & 2 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "jspahrsummers/xcconfigs" "3d9d996"
github "Quick/Quick" ~> 1.2
github "Quick/Nimble" ~> 7.0.2
github "Quick/Quick" ~> 1.3
github "Quick/Nimble" ~> 7.1.3
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github "Quick/Nimble" "v7.1.2"
github "Quick/Quick" "v1.2.0"
github "Quick/Nimble" "v7.1.3"
github "Quick/Quick" "v1.3.1"
github "ReactiveCocoa/ReactiveObjC" "3.1.0"
github "ReactiveCocoa/ReactiveSwift" "3.1.0"
github "antitypical/Result" "3.2.4"
github "ReactiveCocoa/ReactiveSwift" "4.0.0"
github "antitypical/Result" "4.0.0"
github "jspahrsummers/xcconfigs" "3d9d99634cae6d586e272543d527681283b33eb0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 54 files
+2 −2 .gitignore
+9 −5 .travis.yml
+1 −0 Documentation/README.md
+2 −2 Documentation/en-us/ConfiguringQuick.md
+14 −14 Documentation/en-us/NimbleAssertions.md
+1 −1 Documentation/en-us/QuickExamplesAndGroups.md
+75 −0 Documentation/en-us/TestingApps.md
+14 −14 Documentation/ja/NimbleAssertions.md
+1 −1 Documentation/ja/QuickExamplesAndGroups.md
+203 −0 Documentation/ko-kr/ArrangeActAssert.md
+80 −0 Documentation/ko-kr/BehavioralTesting.md
+99 −0 Documentation/ko-kr/ConfiguringQuick.md
+25 −0 Documentation/ko-kr/InstallingFileTemplates.md
+141 −0 Documentation/ko-kr/InstallingQuick.md
+25 −0 Documentation/ko-kr/MoreResources.md
+97 −0 Documentation/ko-kr/NimbleAssertions.md
+462 −0 Documentation/ko-kr/QuickExamplesAndGroups.md
+49 −0 Documentation/ko-kr/QuickInObjectiveC.md
+35 −0 Documentation/ko-kr/README.md
+80 −0 Documentation/ko-kr/SettingUpYourXcodeProject.md
+116 −0 Documentation/ko-kr/SharedExamples.md
+129 −0 Documentation/ko-kr/TestUsingTestDoubles.md
+173 −0 Documentation/ko-kr/TestingApps.md
+10 −0 Documentation/ko-kr/Troubleshooting.md
+12 −12 Documentation/zh-cn/NimbleAssertions.md
+1 −1 Documentation/zh-cn/QuickExamplesAndGroups.md
+1 −1 Externals/Nimble
+1 −1 Gemfile
+40 −36 Gemfile.lock
+16 −0 Package.resolved
+6 −2 Quick.podspec
+56 −33 Quick.xcodeproj/project.pbxproj
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-macOS.xcscheme
+1 −3 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+8 −0 Quick.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+5 −0 Rakefile
+3 −3 Sources/Quick/Configuration/QuickConfiguration.swift
+9 −4 Sources/Quick/DSL/World+DSL.swift
+3 −0 Sources/Quick/Example.swift
+19 −3 Sources/Quick/NSString+C99ExtendedIdentifier.swift
+14 −2 Sources/Quick/QuickSpec.swift
+1 −1 Sources/Quick/World.swift
+6 −1 Sources/QuickObjectiveC/Configuration/QuickConfiguration.m
+6 −2 Sources/QuickObjectiveC/DSL/QCKDSL.m
+0 −20 Sources/QuickObjectiveC/DSL/World+DSL.h
+6 −0 Sources/QuickObjectiveC/QuickSpec.h
+11 −3 Sources/QuickObjectiveC/QuickSpec.m
+0 −18 Sources/QuickObjectiveC/World.h
+5 −0 Sources/QuickObjectiveC/XCTestSuite+QuickTestSuiteBuilder.m
+25 −0 Tests/QuickTests/QuickTests/FunctionalTests/CurrentSpecTests.swift
+0 −1 Tests/QuickTests/QuickTests/Helpers/QCKSpecRunner.m
+7 −1 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h
+5 −13 Tests/QuickTests/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.m
2 changes: 1 addition & 1 deletion Carthage/Checkouts/ReactiveSwift
Submodule ReactiveSwift updated 48 files
+1 −1 .swift-version
+19 −3 .travis.yml
+35 −1 CHANGELOG.md
+1 −1 Cartfile
+2 −2 Cartfile.private
+4 −4 Cartfile.resolved
+1 −1 Carthage/Checkouts/Nimble
+1 −1 Carthage/Checkouts/Quick
+1 −1 Carthage/Checkouts/Result
+1 −1 Carthage/Checkouts/xcconfigs
+2 −2 Documentation/BasicOperators.md
+6 −6 Package.resolved
+3 −3 Package.swift
+1 −1 ReactiveSwift-UIExamples.playground/Pages/ValidatingProperty.xcplaygroundpage/Contents.swift
+4 −4 ReactiveSwift-UIExamples.playground/Pages/ValidatingProperty.xcplaygroundpage/Sources/UIKitExtensions.swift
+1 −1 ReactiveSwift.playground/Pages/Sandbox.xcplaygroundpage/Contents.swift
+6 −3 ReactiveSwift.podspec
+14 −14 ReactiveSwift.xcodeproj/project.pbxproj
+8 −0 ReactiveSwift.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+3 −0 Sources/Action.swift
+9 −15 Sources/Atomic.swift
+23 −26 Sources/Bag.swift
+17 −26 Sources/Disposable.swift
+99 −15 Sources/Event.swift
+60 −25 Sources/EventLogger.swift
+216 −22 Sources/Flatten.swift
+1 −1 Sources/Info.plist
+7 −3 Sources/Lifetime.swift
+44 −14 Sources/Property.swift
+1 −1 Sources/Reactive.swift
+4 −10 Sources/ResultExtensions.swift
+3 −2 Sources/Scheduler.swift
+73 −5 Sources/Signal.swift
+343 −27 Sources/SignalProducer.swift
+18 −19 Sources/UnidirectionalBinding.swift
+16 −0 Sources/UninhabitedTypeGuards.swift
+12 −12 Sources/ValidatingProperty.swift
+18 −0 Tests/ReactiveSwiftTests/BagSpec.swift
+18 −0 Tests/ReactiveSwiftTests/DisposableSpec.swift
+320 −27 Tests/ReactiveSwiftTests/FlattenSpec.swift
+1 −1 Tests/ReactiveSwiftTests/Info.plist
+17 −1 Tests/ReactiveSwiftTests/LifetimeSpec.swift
+55 −2 Tests/ReactiveSwiftTests/PropertySpec.swift
+70 −3 Tests/ReactiveSwiftTests/SignalProducerLiftingSpec.swift
+100 −11 Tests/ReactiveSwiftTests/SignalProducerSpec.swift
+528 −14 Tests/ReactiveSwiftTests/SignalSpec.swift
+32 −8 Tests/ReactiveSwiftTests/UnidirectionalBindingSpec.swift
+8 −3 script/validate-playground.sh
5 changes: 4 additions & 1 deletion ReactiveObjCBridge.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ Pod::Spec.new do |s|
s.module_map = 'ReactiveObjCBridge/module.modulemap'

s.dependency 'ReactiveObjC', '~> 3.1'
s.dependency 'ReactiveSwift', '~> 3.1'
s.dependency 'ReactiveSwift', '~> 4.0'

s.pod_target_xcconfig = { "OTHER_SWIFT_FLAGS[config=Release]" => "$(inherited) -suppress-warnings" }

s.cocoapods_version = ">= 1.4.0"
s.swift_version = "4.0"
end
27 changes: 22 additions & 5 deletions ReactiveObjCBridge.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0940;
ORGANIZATIONNAME = GitHub;
TargetAttributes = {
57A4D1AF1BA13D7A00F7D4B1 = {
Expand Down Expand Up @@ -1036,14 +1036,18 @@
baseConfigurationReference = D047262919E49FE8006002AA /* Debug.xcconfig */;
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CODE_SIGNING_REQUIRED = NO;
CURRENT_PROJECT_VERSION = 1;
ENABLE_TESTABILITY = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(PROJECT_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand All @@ -1056,14 +1060,19 @@
baseConfigurationReference = D047262B19E49FE8006002AA /* Release.xcconfig */;
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CODE_SIGNING_REQUIRED = NO;
CURRENT_PROJECT_VERSION = 1;
GCC_OPTIMIZATION_LEVEL = 0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(PROJECT_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1198,13 +1207,17 @@
baseConfigurationReference = D047262A19E49FE8006002AA /* Profile.xcconfig */;
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CODE_SIGNING_REQUIRED = NO;
CURRENT_PROJECT_VERSION = 1;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(PROJECT_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1278,13 +1291,17 @@
baseConfigurationReference = D047262C19E49FE8006002AA /* Test.xcconfig */;
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CODE_SIGNING_REQUIRED = NO;
CURRENT_PROJECT_VERSION = 1;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)-Tests";
PRODUCT_NAME = "$(PROJECT_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "NO"
Expand Down Expand Up @@ -110,8 +110,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "NO"
Expand Down Expand Up @@ -110,8 +110,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "NO"
Expand Down Expand Up @@ -110,8 +110,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
22 changes: 11 additions & 11 deletions ReactiveObjCBridge/ObjectiveCBridging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extension ImmediateScheduler {
/// Create `RACScheduler` that performs actions instantly.
///
/// - returns: `RACScheduler` that instantly performs actions.
@available(*, deprecated, message:"Use `RACScheduler.immediate` directly, or `RACScheduler.init` in a generic context.")
@available(*, unavailable, message: "Use `RACScheduler.immediate` directly, or `RACScheduler.init` in a generic context.")
public func toRACScheduler() -> RACScheduler {
return RACScheduler.immediate()
}
Expand All @@ -101,7 +101,7 @@ extension UIScheduler {
/// Create `RACScheduler` for `UIScheduler`
///
/// - returns: `RACScheduler` instance that queues events on main thread.
@available(*, deprecated, message:"Use `RACScheduler.init` to wrap an `UIScheduler` instead.")
@available(*, unavailable, message: "Use `RACScheduler.init` to wrap an `UIScheduler` instead.")
public func toRACScheduler() -> RACScheduler {
return RACScheduler(self)
}
Expand All @@ -112,7 +112,7 @@ extension QueueScheduler {
///
/// - returns: Instance `RACScheduler` that queues events on
/// `QueueScheduler`'s queue.
@available(*, deprecated, message:"Use `RACScheduler.init` to wrap a `QueueScheduler` instead.")
@available(*, unavailable, message: "Use `RACScheduler.init` to wrap a `QueueScheduler` instead.")
public func toRACScheduler() -> RACScheduler {
return RACScheduler(self)
}
Expand Down Expand Up @@ -324,7 +324,7 @@ extension SignalProducerProtocol where Value: AnyObject {
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACSignal() -> RACSignal<Value> { return bridged }
}

Expand Down Expand Up @@ -355,7 +355,7 @@ extension SignalProducerProtocol where Value: OptionalProtocol, Value.Wrapped: A
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACSignal() -> RACSignal<Value.Wrapped> { return bridged }
}

Expand All @@ -382,7 +382,7 @@ extension SignalProtocol where Value: AnyObject {
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACSignal() -> RACSignal<Value> { return bridged }
}

Expand Down Expand Up @@ -413,7 +413,7 @@ extension SignalProtocol where Value: OptionalProtocol, Value.Wrapped: AnyObject
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACSignal() -> RACSignal<Value.Wrapped> { return bridged }
}

Expand Down Expand Up @@ -467,7 +467,7 @@ extension Action where Input: AnyObject, Output: AnyObject {
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACCommand() -> RACCommand<Input, Output> { return bridged }
}

Expand All @@ -483,7 +483,7 @@ extension Action where Input: OptionalProtocol, Input.Wrapped: AnyObject, Output
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACCommand() -> RACCommand<Input.Wrapped, Output> { return bridged }
}

Expand All @@ -499,7 +499,7 @@ extension Action where Input: AnyObject, Output: OptionalProtocol, Output.Wrappe
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACCommand() -> RACCommand<Input, Output.Wrapped> { return bridged }
}

Expand All @@ -515,7 +515,7 @@ extension Action where Input: OptionalProtocol, Input.Wrapped: AnyObject, Output
}
}

@available(*, deprecated, message:"Use the `bridged` property instead.")
@available(*, unavailable, message: "Use the `bridged` property instead.")
public func toRACCommand() -> RACCommand<Input.Wrapped, Output.Wrapped> { return bridged }
}

Expand Down

0 comments on commit ec817c3

Please sign in to comment.