From 5ffa01e4d57ddc04e4c6abc4cd1c5948aebe55e8 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 09:19:37 +0000 Subject: [PATCH] Enable MemberImportVisibility check on all targets --- Package.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Package.swift b/Package.swift index af449a7..d51be45 100644 --- a/Package.swift +++ b/Package.swift @@ -37,3 +37,14 @@ for target in package.targets { settings.append(.enableExperimentalFeature("StrictConcurrency=complete")) target.swiftSettings = settings } + +// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // +for target in package.targets { + if target.type != .plugin { + var settings = target.swiftSettings ?? [] + // https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md + settings.append(.enableUpcomingFeature("MemberImportVisibility")) + target.swiftSettings = settings + } +} +// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //