From f11424fd8a8b00f3554ede28a913f9894ec059fc Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Tue, 10 Dec 2024 10:43:44 +0000 Subject: [PATCH] Enable MemberImportVisibility check on all targets --- Package.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Package.swift b/Package.swift index 4f0fc49..70f3170 100644 --- a/Package.swift +++ b/Package.swift @@ -90,3 +90,11 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil { .package(path: "../swift-asn1"), ] } + +for target in package.targets { + if target.type != .plugin { + var settings = target.swiftSettings ?? [] + settings.append(.enableUpcomingFeature("MemberImportVisibility")) + target.swiftSettings = settings + } +}