Skip to content

Commit

Permalink
Enable MemberImportVisibility check on all targets (#486)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rnro authored Dec 11, 2024
1 parent adbe5af commit 2083f5d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,14 @@ let package = Package(
),
]
)

// --- 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 --- //
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//
//===----------------------------------------------------------------------===//

import NIOHPACK

/// A protocol implemented by HTTP/2 connection state machine states with local settings.
///
/// This protocol provides implementations that can apply changes to the local settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//
//===----------------------------------------------------------------------===//

import NIOHPACK

/// A protocol implemented by HTTP/2 connection state machine states with remote settings.
///
/// This protocol provides implementations that can apply changes to the remote settings.
Expand Down
1 change: 1 addition & 0 deletions Tests/NIOHTTP2Tests/HTTP2ErrorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//

import NIOHPACK
import NIOHTTP2
import XCTest

Expand Down

0 comments on commit 2083f5d

Please sign in to comment.