Skip to content

Commit

Permalink
Added WorkflowSwiftUIExperimental to package (#279)
Browse files Browse the repository at this point in the history
Fixed WorkflowSwiftUIExperimental tests  not building on Mac
  • Loading branch information
mjohnson12 authored Mar 28, 2024
1 parent 14ffc04 commit 0b92ed6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ let package = Package(
// MARK: ViewEnvironmentUI

.singleTargetLibrary("ViewEnvironmentUI"),

// MARK: WorkflowSwiftUIExperimental

.singleTargetLibrary("WorkflowSwiftUIExperimental"),
],
dependencies: [
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", from: "7.1.1"),
Expand Down Expand Up @@ -204,6 +208,19 @@ let package = Package(
dependencies: ["ViewEnvironment"],
path: "ViewEnvironmentUI/Sources"
),

// MARK: WorkflowSwiftUIExperimental

.target(
name: "WorkflowSwiftUIExperimental",
dependencies: ["Workflow", "WorkflowUI"],
path: "WorkflowSwiftUIExperimental/Sources"
),
.testTarget(
name: "WorkflowSwiftUIExperimentalTests",
dependencies: ["WorkflowSwiftUIExperimental", "Workflow", "WorkflowUI"],
path: "WorkflowSwiftUIExperimental/Tests"
),
],
swiftLanguageVersions: [.v5]
)
Expand Down
4 changes: 4 additions & 0 deletions WorkflowSwiftUIExperimental/Tests/SwiftUIScreenTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if canImport(UIKit)

import SwiftUI
import UIKit
import WorkflowSwiftUIExperimental
Expand Down Expand Up @@ -62,3 +64,5 @@ private struct ContentScreen: SwiftUIScreen {
.frame(width: 42, height: 42)
}
}

#endif

0 comments on commit 0b92ed6

Please sign in to comment.