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
32
43import PackageDescription
54
5+ #if os(macOS)
6+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
7+ #else
8+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
9+ #endif
10+
611let package = Package (
712 name: " BreezeLambdaDynamoDBAPI " ,
8- platforms: [
9- . macOS( . v13) ,
10- ] ,
13+ platforms: platforms,
1114 products: [
1215 . library(
1316 name: " BreezeDynamoDBService " ,
@@ -16,43 +19,63 @@ let package = Package(
1619 . library(
1720 name: " BreezeLambdaAPI " ,
1821 targets: [ " BreezeLambdaAPI " ]
22+ ) ,
23+ . executable(
24+ name: " BreezeLambdaItemAPI " ,
25+ targets: [ " BreezeLambdaItemAPI " ]
1926 )
2027 ] ,
2128 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 " ) ,
2836 ] ,
2937 targets: [
38+ . executableTarget(
39+ name: " BreezeLambdaItemAPI " ,
40+ dependencies: [
41+ " BreezeLambdaAPI "
42+ ]
43+ ) ,
3044 . target(
3145 name: " BreezeDynamoDBService " ,
3246 dependencies: [
3347 . 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 " ) ,
3550 ]
3651 ) ,
3752 . target(
3853 name: " BreezeLambdaAPI " ,
3954 dependencies: [
4055 . product( name: " AWSLambdaRuntime " , package : " swift-aws-lambda-runtime " ) ,
4156 . product( name: " AWSLambdaEvents " , package : " swift-aws-lambda-events " ) ,
57+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
4258 " BreezeDynamoDBService "
4359 ]
4460 ) ,
4561 . testTarget(
4662 name: " BreezeLambdaAPITests " ,
4763 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 " ) ,
4967 " BreezeLambdaAPI "
5068 ] ,
5169 resources: [ . copy( " Fixtures " ) ]
5270 ) ,
5371 . testTarget(
5472 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+ ]
5679 )
5780 ]
5881)
0 commit comments