Skip to content

Commit 228f3a7

Browse files
authored
feat: include publicHeaders and privateHeaders in buildable folder exceptions (#315)
1 parent ad394a7 commit 228f3a7

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

Package.resolved

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/XcodeGraph/Models/BuildableFolderException.swift

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,27 @@ public struct BuildableFolderException: Sendable, Codable, Equatable, Hashable {
88
/// A dictionary mapping files (referenced by their absolute path) to the compiler flags to apply.
99
public var compilerFlags: [AbsolutePath: String]
1010

11+
/// The list of public headers.
12+
public var publicHeaders: [AbsolutePath]
13+
14+
/// The list of private headers.
15+
public var privateHeaders: [AbsolutePath]
16+
1117
/// Creates a new exception for a buildable folder.
1218
/// - Parameters:
1319
/// - excluded: An array of absolute paths to files that should be excluded from the buildable folder.
1420
/// - compilerFlags: A dictionary mapping absolute file paths to specific compiler flags to apply to those files.
15-
public init(excluded: [AbsolutePath], compilerFlags: [AbsolutePath: String]) {
21+
/// - publicHeaders: The list of public headers.
22+
/// - privateHeaders: The list of private headers.
23+
public init(
24+
excluded: [AbsolutePath],
25+
compilerFlags: [AbsolutePath: String],
26+
publicHeaders: [AbsolutePath],
27+
privateHeaders: [AbsolutePath]
28+
) {
1629
self.excluded = excluded
1730
self.compilerFlags = compilerFlags
31+
self.publicHeaders = publicHeaders
32+
self.privateHeaders = privateHeaders
1833
}
1934
}

0 commit comments

Comments
 (0)