Skip to content

feat: add the App Clip's URL to the Run action #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
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 appClipInvocationURLString: String?

// 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,
appClipInvocationURLString: String?
) {
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.appClipInvocationURLString = appClipInvocationURLString
}
}

Expand All @@ -72,7 +75,8 @@ public struct RunAction: Equatable, Codable, Sendable {
apiValidation: true
),
expandVariableFromTarget: TargetReference? = nil,
launchStyle: LaunchStyle = .automatically
launchStyle: LaunchStyle = .automatically,
appClipInvocationURLString: String? = 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,
appClipInvocationURLString: appClipInvocationURLString
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ struct XCSchemeMapper: SchemeMapping {
filePath: nil,
arguments: arguments,
options: RunActionOptions(),
diagnosticsOptions: diagnosticsOptions
diagnosticsOptions: diagnosticsOptions,
appClipInvocationURLString: action.appClipInvocationURLString
)
}

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
)
),
appClipInvocationURLString: "app-clips-url"
)

// Then
Expand Down