Skip to content

Commit 6682b9c

Browse files
authored
Enable MemberImportVisibility check on all targets (#55)
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 1b7680e commit 6682b9c

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
@@ -56,3 +56,14 @@ for target in package.targets {
5656
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
5757
target.swiftSettings = settings
5858
}
59+
60+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
61+
for target in package.targets {
62+
if target.type != .plugin {
63+
var settings = target.swiftSettings ?? []
64+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
65+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
66+
target.swiftSettings = settings
67+
}
68+
}
69+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)