Skip to content

Commit

Permalink
Enable MemberImportVisibility check on all targets (#78)
Browse files Browse the repository at this point in the history
* Update swift tools version to 5.9
* 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 9490f89 commit d57e30a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.7.1
// swift-tools-version: 5.9

import PackageDescription

Expand Down Expand Up @@ -30,3 +30,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 --- //

0 comments on commit d57e30a

Please sign in to comment.