-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
58 lines (56 loc) · 2.05 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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "BreezeLambdaDynamoDBAPI",
platforms: [
.macOS(.v13),
],
products: [
.library(
name: "BreezeDynamoDBService",
targets: ["BreezeDynamoDBService"]
),
.library(
name: "BreezeLambdaAPI",
targets: ["BreezeLambdaAPI"]
)
],
dependencies: [
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2"),
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.1.0"),
.package(url: "https://github.com/soto-project/soto.git", from: "6.7.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/swift-serverless/swift-sls-adapter", from: "0.2.1"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.11.2"),
],
targets: [
.target(
name: "BreezeDynamoDBService",
dependencies: [
.product(name: "SotoDynamoDB", package: "soto"),
.product(name: "Logging", package: "swift-log")
]
),
.target(
name: "BreezeLambdaAPI",
dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
"BreezeDynamoDBService"
]
),
.testTarget(
name: "BreezeLambdaAPITests",
dependencies: [
.product(name: "AWSLambdaTesting", package: "swift-aws-lambda-runtime"),
"BreezeLambdaAPI"
],
resources: [.copy("Fixtures")]
),
.testTarget(
name: "BreezeDynamoDBServiceTests",
dependencies: ["BreezeDynamoDBService"]
)
]
)