Skip to content

Commit 8525b63

Browse files
tomerdfabianfett
andauthored
split events into spearate package (#216)
motivation: the runtime library has a stable API while the events are still moving target. In order to provide a 1.0 stable version we separate them out changes: * remove Events module * update readme * update Samples * remove gateway example Co-authored-by: Fabian Fett <fabianfett@apple.com>
1 parent 245674c commit 8525b63

30 files changed

+38
-4115
lines changed

Examples/LambdaFunctions/Package.swift

-6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ let package = Package(
1414
.executable(name: "Benchmark", targets: ["Benchmark"]),
1515
// demonstrate different types of error handling
1616
.executable(name: "ErrorHandling", targets: ["ErrorHandling"]),
17-
// demostrate how to integrate with AWS API Gateway
18-
.executable(name: "APIGateway", targets: ["APIGateway"]),
1917
// fully featured example with domain specific business logic
2018
.executable(name: "CurrencyExchange", targets: ["CurrencyExchange"]),
2119
],
@@ -35,10 +33,6 @@ let package = Package(
3533
.target(name: "ErrorHandling", dependencies: [
3634
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
3735
]),
38-
.target(name: "APIGateway", dependencies: [
39-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
40-
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-runtime"),
41-
]),
4236
.target(name: "CurrencyExchange", dependencies: [
4337
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
4438
]),

Examples/LambdaFunctions/Sources/APIGateway/main.swift

-34
This file was deleted.

Package.swift

-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ let package = Package(
99
.library(name: "AWSLambdaRuntime", targets: ["AWSLambdaRuntime"]),
1010
// this has all the main functionality for lambda and it does not link Foundation
1111
.library(name: "AWSLambdaRuntimeCore", targets: ["AWSLambdaRuntimeCore"]),
12-
// common AWS events
13-
.library(name: "AWSLambdaEvents", targets: ["AWSLambdaEvents"]),
1412
// for testing only
1513
.library(name: "AWSLambdaTesting", targets: ["AWSLambdaTesting"]),
1614
],
@@ -41,8 +39,6 @@ let package = Package(
4139
.byName(name: "AWSLambdaRuntimeCore"),
4240
.byName(name: "AWSLambdaRuntime"),
4341
]),
44-
.target(name: "AWSLambdaEvents", dependencies: []),
45-
.testTarget(name: "AWSLambdaEventsTests", dependencies: ["AWSLambdaEvents"]),
4642
// testing helper
4743
.target(name: "AWSLambdaTesting", dependencies: [
4844
.byName(name: "AWSLambdaRuntime"),

Sources/AWSLambdaEvents/ALB.swift

-77
This file was deleted.

Sources/AWSLambdaEvents/APIGateway+V2.swift

-116
This file was deleted.

Sources/AWSLambdaEvents/APIGateway.swift

-93
This file was deleted.

0 commit comments

Comments
 (0)