-
Notifications
You must be signed in to change notification settings - Fork 0
Update SDK to Swift 6 #2
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3c7df31
Use ServiceLifecycle to setup Lambda
3ded2ae
Add Package Resolved to avoid issue with SPM
3c6ca26
Add Unit Test
fb51990
Fix Unit Tests
3c09578
Remove BreezeLambdaAPIHandler
b3cec46
Simplify Unit Tests
61a2932
Update test with configuration injection
d45e85e
Fix Unit Tests on Linux
4565e3c
Set CI wil Swift 6.0.3
f8b38e1
Update aws-lambda-runtime dependency to latest main version
a4d3fb9
Update swift runtime to 6.1.0
6b635ca
Update Swift to 6.1.0 on CI
61effed
Simplify Implementation - Graceful Shutdown Not Working
c212869
Ensure the executable terminates after a graceful shutdown
6c564c5
Fix Graceful shutdown
a37c362
Fix Unit Tests
8cdc391
Fix Meterian
48a61d4
Improve Unit Tests by fixing warnings
292e8f1
Improve Documentation
ea1aeb6
Add DocC plugin
f9c1543
Fix base urls
07c6e38
Add SPI config
53df57f
Fix Readme and rename Demo App
57bc777
Add docc article
a1c4004
Comment package
36188dd
Fix Tests
8aa6c64
Update to swift 6.1.2
bb1f3ba
Disable meterian
f64f310
Remove Package.resolved
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Andrea-Scuderi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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"), | ||
Andrea-Scuderi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.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" | ||
] | ||
) | ||
] | ||
) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.