Skip to content

Commit

Permalink
Merge pull request #177 from RxSwiftCommunity/release/2-12-3
Browse files Browse the repository at this point in the history
project: release 2.12.3
  • Loading branch information
twittemb authored Aug 18, 2021
2 parents e85a544 + ae8275d commit c585cb6
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
** Version 2.12.3 **:

- fix "Unhandled files" warnings in the Package.swift file
- fix re-entrancy issue in the FlowCoordinator file
- revert to a strong retain policy in the Reactive+UIViewController file (see version 2.12.0)

** Version 2.12.2 **:

- ensure the navigate function is called on the main thread (regression introduced in 2.12.1)
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "ReactiveX/RxSwift" "6.0.0"
github "ReactiveX/RxSwift" "6.2.0"
8 changes: 5 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.4

import PackageDescription

Expand All @@ -18,7 +18,8 @@ let package = Package(
"RxSwift",
.product(name: "RxCocoa", package: "RxSwift")
],
path: "RxFlow"
path: "RxFlow",
exclude: ["Info.plist"]
),
.testTarget(
name: "RxFlowTests",
Expand All @@ -27,7 +28,8 @@ let package = Package(
.product(name: "RxBlocking", package: "RxSwift"),
.product(name: "RxTest", package: "RxSwift")
],
path: "RxFlowTests"
path: "RxFlowTests",
exclude: ["Info.plist"]
),
],
swiftLanguageVersions: [.v5]
Expand Down
4 changes: 2 additions & 2 deletions RxFlow.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "RxFlow"
s.version = "2.12.2"
s.swift_version = '5.3'
s.version = "2.12.3"
s.swift_version = '5.4'
s.summary = "RxFlow is a navigation framework for iOS applications, based on a Reactive Coordinator pattern."

s.description = <<-DESC
Expand Down
6 changes: 3 additions & 3 deletions RxFlow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1200;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = RxSwiftCommunity;
TargetAttributes = {
1A8FBE741FF9783100389464 = {
Expand Down Expand Up @@ -604,7 +604,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.12.2;
MARKETING_VERSION = 2.12.3;
PRODUCT_BUNDLE_IDENTIFIER = io.warpfactor.RxFlow;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -639,7 +639,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.12.2;
MARKETING_VERSION = 2.12.3;
PRODUCT_BUNDLE_IDENTIFIER = io.warpfactor.RxFlow;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion RxFlow.xcodeproj/xcshareddata/xcschemes/RxFlow.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1200"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion RxFlow/Extensions/Reactive+UIViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public extension Reactive where Base: UIViewController {
/// Rx observable, triggered when the view is being dismissed
var dismissed: ControlEvent<Bool> {
let dismissedSource = self.sentMessage(#selector(Base.viewDidDisappear))
.filter { [weak base] _ in base?.isBeingDismissed ?? true }
.filter { [base] _ in base.isBeingDismissed }
.map { _ in false }

let movedToParentSource = self.sentMessage(#selector(Base.didMove))
Expand Down
3 changes: 2 additions & 1 deletion RxFlow/FlowCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public final class FlowCoordinator: NSObject {
// listen for the internal steps relay that aggregates the flow's Stepper's steps and
// the FlowContributors's Stepper's steps
self.stepsRelay
.observe(on: CurrentThreadScheduler.instance)
.do(onDispose: { [weak self] in
self?.childFlowCoordinators.removeAll()
self?.parentFlowCoordinator?.childFlowCoordinators.removeValue(forKey: self?.identifier ?? "")
Expand Down Expand Up @@ -127,7 +128,7 @@ public final class FlowCoordinator: NSObject {
private func performSideEffects(with flowContributor: FlowContributor) {
switch flowContributor {
case let .forwardToCurrentFlow(step):
stepsRelay.accept(step)
self.stepsRelay.accept(step)
case let .forwardToParentFlow(step):
parentFlowCoordinator?.stepsRelay.accept(step)
case .contribute:
Expand Down
2 changes: 1 addition & 1 deletion RxFlowDemo/Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "ReactiveX/RxSwift" ~> 6.0.0
github "AliSoftware/Reusable" ~> 4.0.5
github "AliSoftware/Reusable" ~> 4.1.1
2 changes: 1 addition & 1 deletion RxFlowDemo/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "AliSoftware/Reusable" "4.1.1"
github "ReactiveX/RxSwift" "6.0.0"
github "ReactiveX/RxSwift" "6.2.0"
10 changes: 5 additions & 5 deletions RxFlowDemo/RxFlowDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1200;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = RxSwiftCommunity;
TargetAttributes = {
1AF854AE1FF832AE00271B52 = {
Expand Down Expand Up @@ -596,7 +596,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -651,7 +651,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -673,7 +673,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = RxFlowDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.warpfactor.RxFlowDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -696,7 +696,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = RxFlowDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.warpfactor.RxFlowDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
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 = "1200"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion RxFlowDemo/RxFlowDemo/Protocols/ViewModelBased.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protocol ServicesViewModel: ViewModel {
var services: Services! { get set }
}

protocol ViewModelBased: class {
protocol ViewModelBased: AnyObject {
associatedtype ViewModelType: ViewModel
var viewModel: ViewModelType! { get set }
}
Expand Down
19 changes: 19 additions & 0 deletions RxFlowDemo/xcarthage-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# carthage-update.sh
# Usage example: ./carthage-update.sh --platform iOS

set -euo pipefail

xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
# the build will fail on lipo due to duplicate architectures.

CURRENT_XCODE_VERSION=$(xcodebuild -version | grep "Build version" | cut -d' ' -f3)
echo "EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig

echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig

export XCODE_XCCONFIG_FILE="$xcconfig"
carthage update "$@"

0 comments on commit c585cb6

Please sign in to comment.