1
- // swift-tools-version: 5.7
2
- // The swift-tools-version declares the minimum version of Swift required to build this package.
1
+ // swift-tools-version: 6.0
3
2
4
3
import PackageDescription
5
4
5
+ #if os(macOS)
6
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
7
+ #else
8
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
9
+ #endif
10
+
6
11
let package = Package (
7
12
name: " BreezeLambdaDynamoDBAPI " ,
8
- platforms: [
9
- . macOS( . v13) ,
10
- ] ,
13
+ platforms: platforms,
11
14
products: [
12
15
. library(
13
16
name: " BreezeDynamoDBService " ,
@@ -16,43 +19,63 @@ let package = Package(
16
19
. library(
17
20
name: " BreezeLambdaAPI " ,
18
21
targets: [ " BreezeLambdaAPI " ]
22
+ ) ,
23
+ . executable(
24
+ name: " BreezeLambdaItemAPI " ,
25
+ targets: [ " BreezeLambdaItemAPI " ]
19
26
)
20
27
] ,
21
28
dependencies: [
22
- . package ( url: " https://github.com/swift-server/swift-aws-lambda-runtime.git " , from: " 1.0.0-alpha.2 " ) ,
23
- . package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , from: " 0.1.0 " ) ,
24
- . package ( url: " https://github.com/soto-project/soto.git " , from: " 6.7.0 " ) ,
25
- . package ( url: " https://github.com/apple/swift-log.git " , from: " 1.0.0 " ) ,
26
- . package ( url: " https://github.com/swift-serverless/swift-sls-adapter " , from: " 0.2.1 " ) ,
27
- . package ( url: " https://github.com/swift-server/async-http-client.git " , from: " 1.11.2 " ) ,
29
+ // TODO: change to upstream once the upstream is tagged
30
+ . package ( url: " https://github.com/andrea-scuderi/swift-aws-lambda-runtime.git " , branch: " main " ) ,
31
+ . package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , from: " 0.5.0 " ) ,
32
+ . package ( url: " https://github.com/swift-server/swift-service-lifecycle.git " , from: " 2.0.0 " ) ,
33
+ . package ( url: " https://github.com/soto-project/soto.git " , from: " 7.0.0 " ) ,
34
+ . package ( url: " https://github.com/apple/swift-log.git " , from: " 1.6.2 " ) ,
35
+ . package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.0.0 " ) ,
28
36
] ,
29
37
targets: [
38
+ . executableTarget(
39
+ name: " BreezeLambdaItemAPI " ,
40
+ dependencies: [
41
+ " BreezeLambdaAPI "
42
+ ]
43
+ ) ,
30
44
. target(
31
45
name: " BreezeDynamoDBService " ,
32
46
dependencies: [
33
47
. product( name: " SotoDynamoDB " , package : " soto " ) ,
34
- . product( name: " Logging " , package : " swift-log " )
48
+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
49
+ . product( name: " Logging " , package : " swift-log " ) ,
35
50
]
36
51
) ,
37
52
. target(
38
53
name: " BreezeLambdaAPI " ,
39
54
dependencies: [
40
55
. product( name: " AWSLambdaRuntime " , package : " swift-aws-lambda-runtime " ) ,
41
56
. product( name: " AWSLambdaEvents " , package : " swift-aws-lambda-events " ) ,
57
+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
42
58
" BreezeDynamoDBService "
43
59
]
44
60
) ,
45
61
. testTarget(
46
62
name: " BreezeLambdaAPITests " ,
47
63
dependencies: [
48
- . product( name: " AWSLambdaTesting " , package : " swift-aws-lambda-runtime " ) ,
64
+ . product( name: " AWSLambdaRuntime " , package : " swift-aws-lambda-runtime " ) ,
65
+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
66
+ . product( name: " ServiceLifecycleTestKit " , package : " swift-service-lifecycle " ) ,
49
67
" BreezeLambdaAPI "
50
68
] ,
51
69
resources: [ . copy( " Fixtures " ) ]
52
70
) ,
53
71
. testTarget(
54
72
name: " BreezeDynamoDBServiceTests " ,
55
- dependencies: [ " BreezeDynamoDBService " ]
73
+ dependencies: [
74
+ . product( name: " AWSLambdaRuntime " , package : " swift-aws-lambda-runtime " ) ,
75
+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
76
+ . product( name: " ServiceLifecycleTestKit " , package : " swift-service-lifecycle " ) ,
77
+ " BreezeDynamoDBService "
78
+ ]
56
79
)
57
80
]
58
81
)
0 commit comments