Skip to content

Commit eb13eb6

Browse files
committed
Enable MemberImportVisibility check on all targets
1 parent 36da108 commit eb13eb6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Package.swift

+10
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ 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+
}// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)