Skip to content

Commit dbd5c86

Browse files
authored
Enable MemberImportVisibility check on all targets (#794)
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 f3a18d0 commit dbd5c86

14 files changed

+28
-0
lines changed

Package.swift

+11
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,14 @@ let package = Package(
8383
),
8484
]
8585
)
86+
87+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
88+
for target in package.targets {
89+
if target.type != .plugin {
90+
var settings = target.swiftSettings ?? []
91+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
92+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
93+
target.swiftSettings = settings
94+
}
95+
}
96+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

Sources/AsyncHTTPClient/Configuration+BrowserLike.swift

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
import NIOCore
15+
import NIOHTTPCompression
16+
import NIOSSL
1417

1518
// swift-format-ignore: DontRepeatTypeInStaticProperties
1619
extension HTTPClient.Configuration {

Sources/AsyncHTTPClient/ConnectionPool.swift

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import CNIOLinux
16+
import NIOCore
1517
import NIOSSL
1618

1719
#if canImport(Darwin)

Tests/AsyncHTTPClientTests/AsyncAwaitEndToEndTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import Logging
1616
import NIOCore
17+
import NIOFoundationCompat
18+
import NIOHTTP1
1719
import NIOPosix
1820
import NIOSSL
1921
import XCTest

Tests/AsyncHTTPClientTests/HTTP2ClientTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import AsyncHTTPClient // NOT @testable - tests that really need @testable go into HTTP2ClientInternalTests.swift
1616
import Logging
1717
import NIOCore
18+
import NIOFoundationCompat
1819
import NIOHTTP1
1920
import NIOHTTP2
2021
import NIOPosix

Tests/AsyncHTTPClientTests/HTTP2ConnectionTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Logging
1616
import NIOConcurrencyHelpers
1717
import NIOCore
1818
import NIOEmbedded
19+
import NIOHPACK
1920
import NIOHTTP1
2021
import NIOHTTP2
2122
import NIOPosix

Tests/AsyncHTTPClientTests/HTTPClient+SOCKSTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import AsyncHTTPClient // NOT @testable - tests that need @testable go into HTTPClientInternalTests.swift
1616
import Logging
1717
import NIOCore
18+
import NIOHTTP1
1819
import NIOPosix
1920
import NIOSOCKS
2021
import XCTest

Tests/AsyncHTTPClientTests/HTTPClientInternalTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import NIOConcurrencyHelpers
1616
import NIOCore
1717
import NIOEmbedded
18+
import NIOFoundationCompat
1819
import NIOHTTP1
1920
import NIOPosix
2021
import NIOTestUtils

Tests/AsyncHTTPClientTests/HTTPClientRequestTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import Algorithms
1616
import NIOCore
17+
import NIOHTTP1
1718
import XCTest
1819

1920
@testable import AsyncHTTPClient

Tests/AsyncHTTPClientTests/HTTPClientResponseTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import Logging
1616
import NIOCore
17+
import NIOHTTP1
1718
import XCTest
1819

1920
@testable import AsyncHTTPClient

Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import Logging
1818
import NIOConcurrencyHelpers
1919
import NIOCore
2020
import NIOEmbedded
21+
import NIOFoundationCompat
2122
import NIOHPACK
2223
import NIOHTTP1
2324
import NIOHTTP2

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import NIOCore
2020
import NIOEmbedded
2121
import NIOFoundationCompat
2222
import NIOHTTP1
23+
import NIOHTTP2
2324
import NIOHTTPCompression
2425
import NIOPosix
2526
import NIOSSL

Tests/AsyncHTTPClientTests/HTTPConnectionPool+ManagerTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import Logging
1516
import NIOCore
1617
import NIOHTTP1
1718
import NIOPosix

Tests/AsyncHTTPClientTests/TransactionTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Logging
1616
import NIOConcurrencyHelpers
1717
import NIOCore
1818
import NIOEmbedded
19+
import NIOFoundationCompat
1920
import NIOHTTP1
2021
import NIOPosix
2122
import XCTest

0 commit comments

Comments
 (0)