-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
68 lines (64 loc) · 2.67 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
// swift-tools-version:6.0
//===----------------------------------------------------------------------===//
//
// This source file is part of the DynamoDBTables open source project
//
// This file is forked from
// https://github.com/amzn/smoke-dynamodb/Package.swift.
// Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Licensed under Apache License v2.0
//
// Changes specified by
// https://github.com/swift-server-community/dynamo-db-tables/compare/9ab0e7a..main
// Copyright (c) 2024 the DynamoDBTables authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of DynamoDBTables authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import CompilerPluginSupport
import PackageDescription
let swiftSettings: [SwiftSetting] = []
let package = Package(
name: "dynamo-db-tables",
platforms: [
.macOS(.v10_15), .iOS(.v13), .watchOS(.v6), .tvOS(.v13)
],
products: [
.library(
name: "DynamoDBTables",
targets: ["DynamoDBTables"]),
],
dependencies: [
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
.package(url: "https://github.com/JohnSundell/CollectionConcurrencyKit", from :"0.2.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.53.9"),
.package(url: "https://github.com/apple/swift-syntax", from: "601.0.0"),
],
targets: [
.macro(name: "DynamoDBTablesMacros", dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]),
.target(
name: "DynamoDBTables", dependencies: [
.target(name: "DynamoDBTablesMacros"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "AWSDynamoDB", package: "aws-sdk-swift"),
.product(name: "CollectionConcurrencyKit", package: "CollectionConcurrencyKit"),
],
swiftSettings: swiftSettings),
.testTarget(
name: "DynamoDBTablesTests", dependencies: [
.target(name: "DynamoDBTables"),
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
],
swiftSettings: swiftSettings),
]
)