|
3 | 3 | import PackageDescription
|
4 | 4 |
|
5 | 5 | let package = Package(
|
6 |
| - name: "swift-aws-lambda-runtime", |
| 6 | + name: "swift-aws-lambda-events", |
7 | 7 | products: [
|
8 |
| - // this library exports `AWSLambdaRuntimeCore` and adds Foundation convenience methods |
9 |
| - .library(name: "AWSLambdaRuntime", targets: ["AWSLambdaRuntime"]), |
10 |
| - // this has all the main functionality for lambda and it does not link Foundation |
11 |
| - .library(name: "AWSLambdaRuntimeCore", targets: ["AWSLambdaRuntimeCore"]), |
12 |
| - // common AWS events |
13 | 8 | .library(name: "AWSLambdaEvents", targets: ["AWSLambdaEvents"]),
|
14 |
| - // for testing only |
15 |
| - .library(name: "AWSLambdaTesting", targets: ["AWSLambdaTesting"]), |
16 |
| - ], |
17 |
| - dependencies: [ |
18 |
| - .package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.30.0")), |
19 |
| - .package(url: "https://github.com/apple/swift-log.git", .upToNextMajor(from: "1.4.2")), |
20 |
| - .package(url: "https://github.com/swift-server/swift-backtrace.git", .upToNextMajor(from: "1.2.3")), |
21 | 9 | ],
|
| 10 | + dependencies: [], |
22 | 11 | targets: [
|
23 |
| - .target(name: "AWSLambdaRuntime", dependencies: [ |
24 |
| - .byName(name: "AWSLambdaRuntimeCore"), |
25 |
| - .product(name: "NIO", package: "swift-nio"), |
26 |
| - .product(name: "NIOFoundationCompat", package: "swift-nio"), |
27 |
| - ]), |
28 |
| - .target(name: "AWSLambdaRuntimeCore", dependencies: [ |
29 |
| - .product(name: "Logging", package: "swift-log"), |
30 |
| - .product(name: "Backtrace", package: "swift-backtrace"), |
31 |
| - .product(name: "NIOHTTP1", package: "swift-nio"), |
32 |
| - .product(name: "_NIOConcurrency", package: "swift-nio"), |
33 |
| - ]), |
34 |
| - .testTarget(name: "AWSLambdaRuntimeCoreTests", dependencies: [ |
35 |
| - .byName(name: "AWSLambdaRuntimeCore"), |
36 |
| - .product(name: "NIOTestUtils", package: "swift-nio"), |
37 |
| - .product(name: "NIOFoundationCompat", package: "swift-nio"), |
38 |
| - ]), |
39 |
| - .testTarget(name: "AWSLambdaRuntimeTests", dependencies: [ |
40 |
| - .byName(name: "AWSLambdaRuntimeCore"), |
41 |
| - .byName(name: "AWSLambdaRuntime"), |
42 |
| - ]), |
43 | 12 | .target(name: "AWSLambdaEvents", dependencies: []),
|
44 | 13 | .testTarget(name: "AWSLambdaEventsTests", dependencies: ["AWSLambdaEvents"]),
|
45 |
| - // testing helper |
46 |
| - .target(name: "AWSLambdaTesting", dependencies: [ |
47 |
| - .byName(name: "AWSLambdaRuntime"), |
48 |
| - .product(name: "NIO", package: "swift-nio"), |
49 |
| - ]), |
50 |
| - .testTarget(name: "AWSLambdaTestingTests", dependencies: ["AWSLambdaTesting"]), |
51 |
| - // for perf testing |
52 |
| - .target(name: "MockServer", dependencies: [ |
53 |
| - .product(name: "NIOHTTP1", package: "swift-nio"), |
54 |
| - ]), |
55 |
| - .target(name: "StringSample", dependencies: ["AWSLambdaRuntime"]), |
56 |
| - .target(name: "CodableSample", dependencies: ["AWSLambdaRuntime"]), |
57 | 14 | ]
|
58 | 15 | )
|
0 commit comments