Files
swift-service-lifecycle/Package.swift
T
Rick Newton-RogersandYim Lee 4d11d9817d Bump minimum Swift version to 5.7 (#160)
* Bump minimum Swift version to 5.7

Motivation:

Now that Swift 5.9 is GM we should update the supported versions and
remove 5.6

Modifications:

* Update `Package.swift`
* Delete the <5.7 docker compose files and make a 5.10 one
* Update the 5.9 docker file to stop using nightlies

Result:

Remove support for Swift 5.6, add 5.10

* Remove '--enable-test-discovery'

To see if it's causing CI build getting stuck

---------

Co-authored-by: Yim Lee <yim_lee@apple.com>
2023-10-05 10:44:21 +01:00

93 lines
2.3 KiB
Swift

// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "swift-service-lifecycle",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(
name: "ServiceLifecycle",
targets: ["ServiceLifecycle"]
),
.library(
name: "ServiceLifecycleTestKit",
targets: ["ServiceLifecycleTestKit"]
),
.library(
name: "UnixSignals",
targets: ["UnixSignals"]
),
],
dependencies: [
.package(
url: "https://github.com/apple/swift-log.git",
from: "1.5.2"
),
.package(
url: "https://github.com/apple/swift-docc-plugin",
from: "1.0.0"
),
.package(
url: "https://github.com/apple/swift-collections.git",
from: "1.0.0"
),
],
targets: [
.target(
name: "ServiceLifecycle",
dependencies: [
.product(
name: "Logging",
package: "swift-log"
),
.target(name: "_AsyncMergeSequence"),
.target(name: "UnixSignals"),
.target(name: "ConcurrencyHelpers"),
]
),
.target(
name: "ServiceLifecycleTestKit",
dependencies: [
.target(name: "ServiceLifecycle"),
]
),
.target(
name: "UnixSignals",
dependencies: [
.target(name: "ConcurrencyHelpers"),
]
),
.target(
name: "ConcurrencyHelpers"
),
.target(
name: "_AsyncMergeSequence",
dependencies: [
.product(
name: "DequeModule",
package: "swift-collections"
),
]
),
.testTarget(
name: "ServiceLifecycleTests",
dependencies: [
.target(name: "ServiceLifecycle"),
.target(name: "ServiceLifecycleTestKit"),
]
),
.testTarget(
name: "UnixSignalsTests",
dependencies: [
.target(name: "UnixSignals"),
]
),
]
)