Skip to content

Commit 08f315f

Browse files
authored
Enable MemberImportVisibility check on all targets (#24)
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 4cbaafb commit 08f315f

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
@@ -69,3 +69,14 @@ let package = Package(
6969
),
7070
]
7171
)
72+
73+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
74+
for target in package.targets {
75+
if target.type != .plugin {
76+
var settings = target.swiftSettings ?? []
77+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
78+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
79+
target.swiftSettings = settings
80+
}
81+
}
82+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)