mirror of
https://github.com/tappollo/swift-aws-lambda-events.git
synced 2026-04-26 13:05:14 +08:00
To prevent naming collisions with other AWS libraries, we drop the service namespaces for events.
29 lines
1.1 KiB
Swift
29 lines
1.1 KiB
Swift
// swift-tools-version:5.5
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-aws-lambda-events-samples",
|
|
platforms: [
|
|
.macOS(.v12),
|
|
],
|
|
products: [
|
|
// demonstrate how to integrate with AWS API Gateway
|
|
.executable(name: "APIGateway", targets: ["APIGateway"]),
|
|
],
|
|
dependencies: [
|
|
// this is the dependency on the swift-aws-lambda-runtime library
|
|
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", .branch("main")),
|
|
// this is the dependency on the swift-aws-lambda-events library
|
|
// in real-world projects this would say
|
|
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime-events.git", from: "1.0.0")
|
|
.package(name: "swift-aws-lambda-events", path: "../.."),
|
|
],
|
|
targets: [
|
|
.executableTarget(name: "APIGateway", dependencies: [
|
|
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
|
|
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
|
|
]),
|
|
]
|
|
)
|