Skip to content

Commit 2083f5d

Browse files
authored
Enable MemberImportVisibility check on all targets (#486)
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 adbe5af commit 2083f5d

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,14 @@ let package = Package(
9090
),
9191
]
9292
)
93+
94+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
95+
for target in package.targets {
96+
if target.type != .plugin {
97+
var settings = target.swiftSettings ?? []
98+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
99+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
100+
target.swiftSettings = settings
101+
}
102+
}
103+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

Sources/NIOHTTP2/ConnectionStateMachine/HasLocalSettings.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import NIOHPACK
16+
1517
/// A protocol implemented by HTTP/2 connection state machine states with local settings.
1618
///
1719
/// This protocol provides implementations that can apply changes to the local settings.

Sources/NIOHTTP2/ConnectionStateMachine/HasRemoteSettings.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import NIOHPACK
16+
1517
/// A protocol implemented by HTTP/2 connection state machine states with remote settings.
1618
///
1719
/// This protocol provides implementations that can apply changes to the remote settings.

Tests/NIOHTTP2Tests/HTTP2ErrorTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import NIOHPACK
1516
import NIOHTTP2
1617
import XCTest
1718

0 commit comments

Comments
 (0)