From 05b5b251b25b0e0296be623e4a1af361030ce612 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 09:19:12 +0000 Subject: [PATCH 1/2] Enable MemberImportVisibility check on all targets --- Package.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Package.swift b/Package.swift index 4f0fc49..9f859a6 100644 --- a/Package.swift +++ b/Package.swift @@ -90,3 +90,14 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil { .package(path: "../swift-asn1"), ] } + +// --- 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 --- // From 920626ee6ef3862f31b2b1fd37029bb910004c49 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 13:14:10 +0000 Subject: [PATCH 2/2] add missing imports --- Tests/X509Tests/ExtendedKeyUsageTests.swift | 1 + Tests/X509Tests/ExtensionBuilderTests.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Tests/X509Tests/ExtendedKeyUsageTests.swift b/Tests/X509Tests/ExtendedKeyUsageTests.swift index 6ac9f35..9ecb6c5 100644 --- a/Tests/X509Tests/ExtendedKeyUsageTests.swift +++ b/Tests/X509Tests/ExtendedKeyUsageTests.swift @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// import XCTest +import SwiftASN1 import X509 final class ExtendedKeyUsageTests: XCTestCase { diff --git a/Tests/X509Tests/ExtensionBuilderTests.swift b/Tests/X509Tests/ExtensionBuilderTests.swift index cd65a50..2fcb799 100644 --- a/Tests/X509Tests/ExtensionBuilderTests.swift +++ b/Tests/X509Tests/ExtensionBuilderTests.swift @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// import XCTest +import SwiftASN1 import X509 final class ExtensionBuilderTests: XCTestCase {