Skip to content

Commit 4a491b5

Browse files
authored
Enable MemberImportVisibility check on all targets (#156)
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.
1 parent 58e2968 commit 4a491b5

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
@@ -46,3 +46,14 @@ for target in package.targets {
4646
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
4747
target.swiftSettings = settings
4848
}
49+
50+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
51+
for target in package.targets {
52+
if target.type != .plugin {
53+
var settings = target.swiftSettings ?? []
54+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
55+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
56+
target.swiftSettings = settings
57+
}
58+
}
59+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)