Skip to content

Commit db09553

Browse files
committed
Enable MemberImportVisibility check on all targets
1 parent f3a18d0 commit db09553

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
@@ -83,3 +83,14 @@ let package = Package(
8383
),
8484
]
8585
)
86+
87+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
88+
for target in package.targets {
89+
if target.type != .plugin {
90+
var settings = target.swiftSettings ?? []
91+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
92+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
93+
target.swiftSettings = settings
94+
}
95+
}
96+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)