Skip to content

Commit 0946588

Browse files
authored
Enable MemberImportVisibility check on all targets (#133)
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 7177b0c commit 0946588

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Package.swift

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

0 commit comments

Comments
 (0)