-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SDK to Swift 6 #2
base: main
Are you sure you want to change the base?
Changes from all commits
3c7df31
3ded2ae
3c6ca26
fb51990
3c09578
b3cec46
61a2932
d45e85e
4565e3c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file needs to be removed once the swift-aws-lambda-runtime gets a versioned |
||
"originHash" : "03296d2dcaccdb6b440525d8308a9dbf7ead03b7bc38c1fa9fbe70d640f7d469", | ||
"pins" : [ | ||
{ | ||
"identity" : "async-http-client", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/swift-server/async-http-client.git", | ||
"state" : { | ||
"revision" : "2119f0d9cc1b334e25447fe43d3693c0e60e6234", | ||
"version" : "1.24.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "jmespath.swift", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/adam-fowler/jmespath.swift.git", | ||
"state" : { | ||
"revision" : "3877a5060e85ae33e3b9fe51ab581784f65ec80e", | ||
"version" : "1.0.3" | ||
} | ||
}, | ||
{ | ||
"identity" : "soto", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/soto-project/soto.git", | ||
"state" : { | ||
"revision" : "c9afb020142858c23439ef247a7df330edc8f589", | ||
"version" : "7.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "soto-core", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/soto-project/soto-core.git", | ||
"state" : { | ||
"revision" : "29848123812bd2624d2e2dc93a9b9009c2abe812", | ||
"version" : "7.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-algorithms", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-algorithms", | ||
"state" : { | ||
"revision" : "f6919dfc309e7f1b56224378b11e28bab5bccc42", | ||
"version" : "1.2.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-asn1", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-asn1.git", | ||
"state" : { | ||
"revision" : "7faebca1ea4f9aaf0cda1cef7c43aecd2311ddf6", | ||
"version" : "1.3.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-async-algorithms", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-async-algorithms.git", | ||
"state" : { | ||
"revision" : "4c3ea81f81f0a25d0470188459c6d4bf20cf2f97", | ||
"version" : "1.0.3" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-atomics", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-atomics.git", | ||
"state" : { | ||
"revision" : "cd142fd2f64be2100422d658e7411e39489da985", | ||
"version" : "1.2.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-aws-lambda-events", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/swift-server/swift-aws-lambda-events.git", | ||
"state" : { | ||
"revision" : "cfd688e499894ed0ba527f1decf4dfc17ec06492", | ||
"version" : "0.5.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-aws-lambda-runtime", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/swift-server/swift-aws-lambda-runtime.git", | ||
"state" : { | ||
"branch" : "main", | ||
"revision" : "18660fcdd1cdaee43550dfa47df554b7e297702a" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-collections", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-collections.git", | ||
"state" : { | ||
"revision" : "3d2dc41a01f9e49d84f0a3925fb858bed64f702d", | ||
"version" : "1.1.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-crypto", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-crypto.git", | ||
"state" : { | ||
"revision" : "ff0f781cf7c6a22d52957e50b104f5768b50c779", | ||
"version" : "3.10.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-distributed-tracing", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-distributed-tracing.git", | ||
"state" : { | ||
"revision" : "6483d340853a944c96dbcc28b27dd10b6c581703", | ||
"version" : "1.1.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-http-types", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-http-types.git", | ||
"state" : { | ||
"revision" : "ae67c8178eb46944fd85e4dc6dd970e1f3ed6ccd", | ||
"version" : "1.3.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-log", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-log.git", | ||
"state" : { | ||
"revision" : "96a2f8a0fa41e9e09af4585e2724c4e825410b91", | ||
"version" : "1.6.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-metrics", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-metrics.git", | ||
"state" : { | ||
"revision" : "e0165b53d49b413dd987526b641e05e246782685", | ||
"version" : "2.5.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-nio", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-nio.git", | ||
"state" : { | ||
"revision" : "dca6594f65308c761a9c409e09fbf35f48d50d34", | ||
"version" : "2.77.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-nio-extras", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-nio-extras.git", | ||
"state" : { | ||
"revision" : "d1ead62745cc3269e482f1c51f27608057174379", | ||
"version" : "1.24.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-nio-http2", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-nio-http2.git", | ||
"state" : { | ||
"revision" : "b5f7062b60e4add1e8c343ba4eb8da2e324b3a94", | ||
"version" : "1.34.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-nio-ssl", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-nio-ssl.git", | ||
"state" : { | ||
"revision" : "7b84abbdcef69cc3be6573ac12440220789dcd69", | ||
"version" : "2.27.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-nio-transport-services", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-nio-transport-services.git", | ||
"state" : { | ||
"revision" : "38ac8221dd20674682148d6451367f89c2652980", | ||
"version" : "1.21.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-numerics", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-numerics.git", | ||
"state" : { | ||
"revision" : "0a5bc04095a675662cf24757cc0640aa2204253b", | ||
"version" : "1.0.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-service-context", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-service-context.git", | ||
"state" : { | ||
"revision" : "0c62c5b4601d6c125050b5c3a97f20cce881d32b", | ||
"version" : "1.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-service-lifecycle", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/swift-server/swift-service-lifecycle.git", | ||
"state" : { | ||
"revision" : "f70b838872863396a25694d8b19fe58bcd0b7903", | ||
"version" : "2.6.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-system", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-system.git", | ||
"state" : { | ||
"revision" : "c8a44d836fe7913603e246acab7c528c2e780168", | ||
"version" : "1.4.0" | ||
} | ||
} | ||
], | ||
"version" : 3 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,100 @@ | ||
// swift-tools-version: 5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
// swift-tools-version: 6.0 | ||
|
||
import PackageDescription | ||
|
||
#if os(macOS) | ||
let platforms: [PackageDescription.SupportedPlatform]? = [.macOS(.v15), .iOS(.v13)] | ||
#else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. iOS is not supported, this need to be removed |
||
let platforms: [PackageDescription.SupportedPlatform]? = nil | ||
#endif | ||
|
||
let package = Package( | ||
name: "BreezeLambdaDynamoDBAPI", | ||
platforms: [ | ||
.macOS(.v13), | ||
], | ||
platforms: platforms, | ||
products: [ | ||
.library( | ||
name: "BreezeDynamoDBService", | ||
targets: ["BreezeDynamoDBService"] | ||
), | ||
.library( | ||
name: "BreezeHTTPClientService", | ||
targets: ["BreezeHTTPClientService"] | ||
), | ||
.library( | ||
name: "BreezeLambdaAPI", | ||
targets: ["BreezeLambdaAPI"] | ||
), | ||
.executable( | ||
name: "BreezeDemoApplication", | ||
targets: ["BreezeDemoApplication"] | ||
) | ||
], | ||
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"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.5.0"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be updated once there is a version for the v2 |
||
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.0.0"), | ||
.package(url: "https://github.com/soto-project/soto.git", from: "7.0.0"), | ||
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.2"), | ||
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.24.0"), | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "BreezeDemoApplication", | ||
dependencies: [ | ||
"BreezeLambdaAPI" | ||
] | ||
), | ||
.target( | ||
name: "BreezeHTTPClientService", | ||
dependencies: [ | ||
.product(name: "AsyncHTTPClient", package: "async-http-client"), | ||
.product(name: "Logging", package: "swift-log") | ||
] | ||
), | ||
.target( | ||
name: "BreezeDynamoDBService", | ||
dependencies: [ | ||
.product(name: "SotoDynamoDB", package: "soto"), | ||
.product(name: "Logging", package: "swift-log") | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
.product(name: "Logging", package: "swift-log"), | ||
"BreezeHTTPClientService" | ||
] | ||
), | ||
.target( | ||
name: "BreezeLambdaAPI", | ||
dependencies: [ | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), | ||
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
"BreezeDynamoDBService" | ||
] | ||
), | ||
.testTarget( | ||
name: "BreezeLambdaAPITests", | ||
dependencies: [ | ||
.product(name: "AWSLambdaTesting", package: "swift-aws-lambda-runtime"), | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
.product(name: "ServiceLifecycleTestKit", package: "swift-service-lifecycle"), | ||
"BreezeLambdaAPI" | ||
], | ||
resources: [.copy("Fixtures")] | ||
), | ||
.testTarget( | ||
name: "BreezeDynamoDBServiceTests", | ||
dependencies: ["BreezeDynamoDBService"] | ||
dependencies: [ | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
.product(name: "ServiceLifecycleTestKit", package: "swift-service-lifecycle"), | ||
"BreezeDynamoDBService" | ||
] | ||
), | ||
.testTarget( | ||
name: "BreezeHTTPClientServiceTests", | ||
dependencies: [ | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
.product(name: "ServiceLifecycleTestKit", package: "swift-service-lifecycle"), | ||
"BreezeHTTPClientService" | ||
] | ||
) | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be reverted once the swift-aws-lambda-runtime gets a versioned