Skip to content

Commit eaa0fea

Browse files
authored
6.0: [NFC] Expose platformVersionProvider with @_spi(SwiftPMInternal) (#7820)
(cherry picked from #7819) **Explanation**: NFC changes to expose a few properties with `@_spi(SwiftPMInternal)`. **Scope**: limited to a few property declarations. **Risk**: very low, the change is NFC **Testing**: N/A **Issue**: N/A **Reviewer**: @francescomikulis
1 parent 04c01f6 commit eaa0fea

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Sources/Build/BuildPlan/BuildPlan+Test.swift

+7
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ import struct Basics.AbsolutePath
1616
import struct LLBuildManifest.TestDiscoveryTool
1717
import struct LLBuildManifest.TestEntryPointTool
1818
import struct PackageGraph.ModulesGraph
19+
20+
@_spi(SwiftPMInternal)
1921
import struct PackageGraph.ResolvedPackage
22+
23+
@_spi(SwiftPMInternal)
2024
import struct PackageGraph.ResolvedProduct
25+
26+
@_spi(SwiftPMInternal)
2127
import struct PackageGraph.ResolvedModule
28+
2229
import struct PackageModel.Sources
2330
import class PackageModel.SwiftModule
2431
import class PackageModel.Module

Sources/PackageGraph/Resolution/ResolvedModule.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ public struct ResolvedModule {
144144
/// The list of platforms that are supported by this module.
145145
public let supportedPlatforms: [SupportedPlatform]
146146

147-
private let platformVersionProvider: PlatformVersionProvider
147+
@_spi(SwiftPMInternal)
148+
public let platformVersionProvider: PlatformVersionProvider
148149

149150
/// Triple for which this resolved module should be compiled for.
150151
public package(set) var buildTriple: BuildTriple {

Sources/PackageGraph/Resolution/ResolvedPackage.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public struct ResolvedPackage {
5151
/// If the given package's source is a registry release, this provides additional metadata and signature information.
5252
public let registryMetadata: RegistryReleaseMetadata?
5353

54-
private let platformVersionProvider: PlatformVersionProvider
54+
@_spi(SwiftPMInternal)
55+
public let platformVersionProvider: PlatformVersionProvider
5556

5657
public init(
5758
underlying: Package,

Sources/PackageGraph/Resolution/ResolvedProduct.swift

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public struct ResolvedProduct {
4747
/// The list of platforms that are supported by this product.
4848
public let supportedPlatforms: [SupportedPlatform]
4949

50+
@_spi(SwiftPMInternal)
5051
public let platformVersionProvider: PlatformVersionProvider
5152

5253
/// Triple for which this resolved product should be compiled for.

0 commit comments

Comments
 (0)