-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
52 lines (50 loc) · 1.48 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// swift-tools-version:5.8
//===----------------------------------------------------------------------===//
//
// This source file is part of the swift-semver open source project
//
// Copyright (c) Gwynne Raskind
// Licensed under the MIT license
//
// See LICENSE.txt for license information
//
// SPDX-License-Identifier: MIT
//
//===----------------------------------------------------------------------===//
import PackageDescription
let commonSwiftSettings: [PackageDescription.SwiftSetting] = [
// We deliberately choose to opt in to several upcoming language features.
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("BareSlashRegexLiterals"),
.enableExperimentalFeature("StrictConcurrency=complete"),
]
let package = Package(
name: "swift-semver",
platforms: [
.macOS(.v13),
.macCatalyst(.v16),
.iOS(.v16),
.watchOS(.v9),
.tvOS(.v16),
],
products: [
.library(name: "SwiftSemver", targets: ["SwiftSemver"]),
],
dependencies: [],
targets: [
.target(
name: "SwiftSemver",
dependencies: [],
swiftSettings: commonSwiftSettings
),
.testTarget(
name: "SwiftSemverTests",
dependencies: [
.target(name: "SwiftSemver"),
],
swiftSettings: commonSwiftSettings
),
]
)