Skip to content

Commit db9c6eb

Browse files
Use local version of Breeze to implement the API
1 parent cb52065 commit db9c6eb

File tree

11 files changed

+30
-546
lines changed

11 files changed

+30
-546
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ build_lambda:
7171
docker run \
7272
--rm \
7373
--volume "$(MOUNT_ROOT)/:/src" \
74+
--volume "$(MOUNT_ROOT)/../Breeze:/Breeze" \
7475
--workdir "/src/$(DOCKER_PROJECT_PATH)" \
7576
$(SWIFT_DOCKER_IMAGE) \
7677
/bin/bash -c "swift build -c $(SWIFT_CONFIGURATION) -Xswiftc -g"
@@ -80,6 +81,7 @@ docker_bash:
8081
-it \
8182
--rm \
8283
--volume "$(MOUNT_ROOT):/src" \
84+
--volume "$(MOUNT_ROOT)/../Breeze:/Breeze" \
8385
--workdir "/src/" \
8486
$(SWIFT_DOCKER_IMAGE) \
8587
/bin/bash

Products/Package.resolved

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Products/Package.swift

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,18 @@ let package = Package(
1111
products: [
1212
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1313
.executable(name: "Products", targets: ["Products"]),
14-
.library(
15-
name: "DynamoDBService",
16-
targets: ["DynamoDBService"]
17-
),
1814
],
1915
dependencies: [
20-
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.1"),
21-
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", branch: "main"),
22-
.package(url: "https://github.com/soto-project/soto.git", from: "6.0.0"),
23-
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
16+
.package(path: "../../Breeze"),
2417
],
2518
targets: [
2619
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2720
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
28-
.target(
29-
name: "DynamoDBService",
30-
dependencies: [
31-
.product(name: "SotoDynamoDB", package: "soto"),
32-
.product(name: "Logging", package: "swift-log")
33-
]
34-
),
35-
.target(
36-
name: "DynamoDBLambda",
37-
dependencies: [
38-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
39-
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
40-
"DynamoDBService"
41-
]
42-
),
4321
.executableTarget(
4422
name: "Products",
4523
dependencies: [
46-
"DynamoDBLambda"
24+
.product(name: "BreezeLambdaAPI", package: "Breeze"),
25+
.product(name: "BreezeDynamoDBService", package: "Breeze"),
4726
]
4827
),
4928
.testTarget(

Products/Sources/DynamoDBLambda/APIGateway+Extensions.swift

Lines changed: 0 additions & 85 deletions
This file was deleted.

Products/Sources/DynamoDBLambda/DynamoDBLambda.swift

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)