From 274f8668d3ec5d2892904d8465635c5ea659f767 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Wed, 8 Jan 2025 05:55:15 -0500 Subject: [PATCH] Add Android import for IPAddressNameTests (#217) Following on https://github.com/apple/swift-certificates/pull/183 and https://github.com/apple/swift-certificates/pull/207, we need to `import Android` in `IPAddressTests.swift` to get `inet_pton` and `in6_addr`. With this addition, tests pass on Android again. --- Tests/X509Tests/IPAddressTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/X509Tests/IPAddressTests.swift b/Tests/X509Tests/IPAddressTests.swift index f9db37d..b81f3d3 100644 --- a/Tests/X509Tests/IPAddressTests.swift +++ b/Tests/X509Tests/IPAddressTests.swift @@ -15,6 +15,9 @@ import XCTest import SwiftASN1 @testable import X509 +#if canImport(Android) +import Android +#endif final class IPAddressNameTests: XCTestCase { static let fixtures: [(ASN1OctetString, ASN1OctetString, Bool)] = [