Skip to content
Merged
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
11 changes: 8 additions & 3 deletions Sources/XcodeGraph/Models/RunAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public struct RunAction: Equatable, Codable, Sendable {
public let metalOptions: MetalOptions?
public let expandVariableFromTarget: TargetReference?
public let launchStyle: LaunchStyle
public let appClipInvocationURL: URL?

// MARK: - Init

Expand All @@ -33,7 +34,8 @@ public struct RunAction: Equatable, Codable, Sendable {
diagnosticsOptions: SchemeDiagnosticsOptions,
metalOptions: MetalOptions? = nil,
expandVariableFromTarget: TargetReference? = nil,
launchStyle: LaunchStyle = .automatically
launchStyle: LaunchStyle = .automatically,
appClipInvocationURL: URL? = nil
) {
self.configurationName = configurationName
self.attachDebugger = attachDebugger
Expand All @@ -48,6 +50,7 @@ public struct RunAction: Equatable, Codable, Sendable {
self.metalOptions = metalOptions
self.expandVariableFromTarget = expandVariableFromTarget
self.launchStyle = launchStyle
self.appClipInvocationURL = appClipInvocationURL
}
}

Expand All @@ -72,7 +75,8 @@ public struct RunAction: Equatable, Codable, Sendable {
apiValidation: true
),
expandVariableFromTarget: TargetReference? = nil,
launchStyle: LaunchStyle = .automatically
launchStyle: LaunchStyle = .automatically,
appClipInvocationURL: URL? = nil
) -> RunAction {
RunAction(
configurationName: configurationName,
Expand All @@ -87,7 +91,8 @@ public struct RunAction: Equatable, Codable, Sendable {
diagnosticsOptions: diagnosticsOptions,
metalOptions: metalOptions,
expandVariableFromTarget: expandVariableFromTarget,
launchStyle: launchStyle
launchStyle: launchStyle,
appClipInvocationURL: appClipInvocationURL
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ struct XCSchemeMapper: SchemeMapping {
filePath: nil,
arguments: arguments,
options: RunActionOptions(),
diagnosticsOptions: diagnosticsOptions
diagnosticsOptions: diagnosticsOptions,
appClipInvocationURL: action.appClipInvocationURLString.flatMap { URL(string: $0) }
)
}

Expand Down
3 changes: 2 additions & 1 deletion Tests/XcodeGraphTests/Models/RunActionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ final class RunActionTests: XCTestCase {
diagnosticsOptions: SchemeDiagnosticsOptions(
mainThreadCheckerEnabled: true,
performanceAntipatternCheckerEnabled: true
)
),
appClipInvocationURL: URL(string: "https://app-clips-url.com/example")
)

// Then
Expand Down