-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
69 lines (66 loc) · 2.28 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// swift-tools-version:5.9
//===----------------------------------------------------------------------===//
//
// This source file is part of the StructuredAPIClient open source project
//
// Copyright (c) Stairtree GmbH
// Licensed under the MIT license
//
// See LICENSE.txt for license information
//
// SPDX-License-Identifier: MIT
//
//===----------------------------------------------------------------------===//
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableExperimentalFeature("StrictConcurrency=complete"),
]
let package = Package(
name: "StructuredAPIClient",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(name: "StructuredAPIClient", targets: ["StructuredAPIClient"]),
.library(name: "StructuredAPIClientTestSupport", targets: ["StructuredAPIClientTestSupport"]),
],
dependencies: [
// Swift logging API
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.0"),
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.2"),
.package(url: "https://github.com/stairtree/async-helpers.git", from: "0.2.0"),
],
targets: [
.target(
name: "StructuredAPIClient",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "HTTPTypes", package: "swift-http-types"),
.product(name: "AsyncHelpers", package: "async-helpers"),
],
swiftSettings: swiftSettings
),
.target(
name: "StructuredAPIClientTestSupport",
dependencies: [
.target(name: "StructuredAPIClient"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "StructuredAPIClientTests",
dependencies: [
.target(name: "StructuredAPIClient"),
.target(name: "StructuredAPIClientTestSupport"),
],
swiftSettings: swiftSettings
),
]
)