Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit de8fd78

Browse files
committed
feat: change parsing of App Clips data from a string to a URL
1 parent 98516a2 commit de8fd78

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Sources/XcodeGraph/Models/RunAction.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct RunAction: Equatable, Codable, Sendable {
1717
public let metalOptions: MetalOptions?
1818
public let expandVariableFromTarget: TargetReference?
1919
public let launchStyle: LaunchStyle
20-
public let appClipInvocationURLString: String?
20+
public let appClipInvocationURL: URL?
2121

2222
// MARK: - Init
2323

@@ -35,7 +35,7 @@ public struct RunAction: Equatable, Codable, Sendable {
3535
metalOptions: MetalOptions? = nil,
3636
expandVariableFromTarget: TargetReference? = nil,
3737
launchStyle: LaunchStyle = .automatically,
38-
appClipInvocationURLString: String?
38+
appClipInvocationURL: URL?
3939
) {
4040
self.configurationName = configurationName
4141
self.attachDebugger = attachDebugger
@@ -50,7 +50,7 @@ public struct RunAction: Equatable, Codable, Sendable {
5050
self.metalOptions = metalOptions
5151
self.expandVariableFromTarget = expandVariableFromTarget
5252
self.launchStyle = launchStyle
53-
self.appClipInvocationURLString = appClipInvocationURLString
53+
self.appClipInvocationURL = appClipInvocationURL
5454
}
5555
}
5656

@@ -76,7 +76,7 @@ public struct RunAction: Equatable, Codable, Sendable {
7676
),
7777
expandVariableFromTarget: TargetReference? = nil,
7878
launchStyle: LaunchStyle = .automatically,
79-
appClipInvocationURLString: String? = nil
79+
appClipInvocationURL: URL? = nil
8080
) -> RunAction {
8181
RunAction(
8282
configurationName: configurationName,
@@ -92,7 +92,7 @@ public struct RunAction: Equatable, Codable, Sendable {
9292
metalOptions: metalOptions,
9393
expandVariableFromTarget: expandVariableFromTarget,
9494
launchStyle: launchStyle,
95-
appClipInvocationURLString: appClipInvocationURLString
95+
appClipInvocationURL: appClipInvocationURL
9696
)
9797
}
9898
}

Sources/XcodeGraphMapper/Mappers/Schemes/XCSchemeMapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct XCSchemeMapper: SchemeMapping {
219219
arguments: arguments,
220220
options: RunActionOptions(),
221221
diagnosticsOptions: diagnosticsOptions,
222-
appClipInvocationURLString: action.appClipInvocationURLString
222+
appClipInvocationURL: action.appClipInvocationURLString.flatMap { URL(string: $0) }
223223
)
224224
}
225225

Tests/XcodeGraphTests/Models/RunActionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class RunActionTests: XCTestCase {
3232
mainThreadCheckerEnabled: true,
3333
performanceAntipatternCheckerEnabled: true
3434
),
35-
appClipInvocationURLString: "app-clips-url"
35+
appClipInvocationURL: URL(string: "https://app-clips-url.com/example")
3636
)
3737

3838
// Then

0 commit comments

Comments
 (0)