Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/StoryFlow.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1340"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StoryFlow"
BuildableName = "StoryFlow"
BlueprintName = "StoryFlow"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StoryFlowTests"
BuildableName = "StoryFlowTests"
BlueprintName = "StoryFlowTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "StoryFlow"
BuildableName = "StoryFlow"
BlueprintName = "StoryFlow"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
20 changes: 8 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version:5.6
import PackageDescription

let package = Package(
name: "StoryFlow",
platforms: [
.iOS(.v10),
], products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
],
products: [
.library(
name: "StoryFlow",
targets: ["StoryFlow"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "StoryFlow",
dependencies: []),
name: "StoryFlow"),
.testTarget(
name: "StoryFlowTests",
dependencies: ["StoryFlow"]
)
]
)
24 changes: 0 additions & 24 deletions Sources/StoryFlow/Info.plist

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Foundation
import UIKit

#if TESTING
func fatalError(_ message: @autoclosure () -> String = "", file: StaticString = #file, line: UInt = #line) -> Never {
FatalErrorUtil.fatalErrorClosure(message(), file, line)
}
Expand All @@ -23,4 +22,3 @@ struct FatalErrorUtil {
fatalErrorClosure = defaultFatalErrorClosure
}
}
#endif
19 changes: 0 additions & 19 deletions Sources/StoryFlow/StoryFlow.h

This file was deleted.

39 changes: 0 additions & 39 deletions StoryFlowTests/ContainerApp/Info.plist

This file was deleted.

22 changes: 0 additions & 22 deletions StoryFlowTests/Info.plist

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import StoryFlow
@testable import StoryFlow

class ExplicitFlowTests: XCTestCase {

Expand Down Expand Up @@ -216,13 +216,13 @@ class ExplicitFlowTests: XCTestCase {
start.produce("")
XCTAssert(currentVc.didAppear())

(currentVc as! InStringOutIntDoubleFloat).produce(0 as Double)
(currentVc as? InStringOutIntDoubleFloat)?.produce(0 as Double)
XCTAssert(currentVc.didAppear())

(currentVc as! InDoubleOutFloat).produce(0)
(currentVc as? InDoubleOutFloat)?.produce(0)
XCTAssert(currentVc.didAppear())

(currentVc as! InFloatOutFloat).produce(3.14)
(currentVc as? InFloatOutFloat)?.produce(3.14)
XCTAssert(currentVc.didDismiss())

// Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extension UIViewController {
extension XCTWaiter {

func completed(description: String = #function,
timeout: TimeInterval = 1,
timeout: TimeInterval = 2,
interval: TimeInterval = 0.002,
condition: @escaping () -> Bool) -> Bool {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ class ImplicitFlowTests: XCTestCase {

// Act
from.produce(output)

XCTAssert(currentVc.didAppear())

// Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import StoryFlow
@testable import StoryFlow

class TestabilityTests: XCTestCase {

Expand Down