Skip to content

Commit 915aeff

Browse files
authored
Enable MemberImportVisibility check on all targets (#43)
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 36da108 commit 915aeff

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.swiftformatignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**Package.swift

Package.swift

+11
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,14 @@ let package = Package(
5050
),
5151
]
5252
)
53+
54+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
55+
for target in package.targets {
56+
if target.type != .plugin {
57+
var settings = target.swiftSettings ?? []
58+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
59+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
60+
target.swiftSettings = settings
61+
}
62+
}
63+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import XCTest
1515
import OpenAPIRuntime
1616
import NIOCore
17+
import NIOHTTP1
1718
import NIOPosix
1819
import AsyncHTTPClient
1920
@testable import OpenAPIAsyncHTTPClient

0 commit comments

Comments
 (0)