Skip to content

Commit e35d6c1

Browse files
committed
Enable MemberImportVisibility check on all targets
1 parent 61ec6b6 commit e35d6c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Package.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,13 @@ let package = Package(
147147
),
148148
]
149149
)
150+
151+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
152+
for target in package.targets {
153+
if target.type != .plugin {
154+
var settings = target.swiftSettings ?? []
155+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
156+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
157+
target.swiftSettings = settings
158+
}
159+
}// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)