Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Swift 6 as the minimum build tools version #610

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Demo/Demo/Base.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ CODE_SIGN_IDENTITY = Apple Development: Created via API (886NX39KP6)

// Default the build number to 0 and delegate to build scripts for setting an appropriate number.
CURRENT_PROJECT_VERSION = 0

SWIFT_VERSION = 5.0
SWIFT_STRICT_CONCURRENCY = complete
17 changes: 11 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.10
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down Expand Up @@ -33,23 +33,26 @@ let package = Package(
name: "Gravatar",
resources: [.process("Resources")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
.swiftLanguageMode(.v5),
.enableUpcomingFeature("StrictConcurrency")
]
),
.testTarget(
name: "GravatarTests",
dependencies: ["Gravatar", "TestHelpers"],
resources: [.process("Resources")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
.swiftLanguageMode(.v5),
.enableUpcomingFeature("StrictConcurrency")
]
),
.target(
name: "GravatarUI",
dependencies: ["Gravatar"],
resources: [.process("Resources")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
.swiftLanguageMode(.v5),
.enableUpcomingFeature("StrictConcurrency")
]
),
.testTarget(
Expand All @@ -59,15 +62,17 @@ let package = Package(
resources: [.process("Resources"),
.process("__Snapshots__")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
.swiftLanguageMode(.v5),
.enableUpcomingFeature("StrictConcurrency")
]
),
.target(
name: "TestHelpers",
dependencies: ["Gravatar"],
resources: [.process("Resources")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
.swiftLanguageMode(.v5),
.enableUpcomingFeature("StrictConcurrency")
]
)
]
Expand Down