Skip to content

Commit 0e5c5f5

Browse files
rnroglbrntt
andauthored
Enable MemberImportVisibility check on all targets (#54)
Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts. Co-authored-by: George Barnett <gbarnett@apple.com>
1 parent 847a630 commit 0e5c5f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,14 @@ for target in package.targets {
5151
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
5252
target.swiftSettings = settings
5353
}
54+
55+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
56+
for target in package.targets {
57+
if target.type != .plugin {
58+
var settings = target.swiftSettings ?? []
59+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
60+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
61+
target.swiftSettings = settings
62+
}
63+
}
64+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)