Skip to content

Commit 5de630d

Browse files
authored
remove support for versions of Swift <= 5.6 (#49)
* remove support for versions of Swift <= 5.6 * Simplify the Package.swift for older Swift versions * bump swift version on example project and Dockerfile
1 parent f015dbf commit 5de630d

7 files changed

+9
-78
lines changed

Examples/Simple/Package.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

@@ -13,10 +13,11 @@ let package = Package(
1313
],
1414
dependencies: [
1515
// this is the dependency on the swift-aws-lambda-runtime library
16-
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", .branch("main")),
16+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2"),
1717
// this is the dependency on the swift-aws-lambda-events library
1818
// in real-world projects this would say
1919
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime-events.git", from: "1.0.0")
20+
// but here, we're using the local version
2021
.package(name: "swift-aws-lambda-events", path: "../.."),
2122
],
2223
targets: [

Package.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

@@ -12,7 +12,9 @@ let package = Package(
1212
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"),
1313
],
1414
targets: [
15-
.target(name: "AWSLambdaEvents", dependencies: [.product(name: "HTTPTypes", package: "swift-http-types")]),
16-
.testTarget(name: "AWSLambdaEventsTests", dependencies: ["AWSLambdaEvents"]),
15+
.target(name: "AWSLambdaEvents",
16+
dependencies: [.product(name: "HTTPTypes", package: "swift-http-types")]),
17+
.testTarget(name: "AWSLambdaEventsTests",
18+
dependencies: ["AWSLambdaEvents"]),
1719
]
1820
)

[email protected]

-15
This file was deleted.

[email protected]

-15
This file was deleted.

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG swift_version=5.7
1+
ARG swift_version=5.8
22
ARG base_image=swift:$swift_version-amazonlinux2
33
FROM $base_image
44
# needed to do again after FROM due to docker limitation

docker/docker-compose.al2.56.yaml

-21
This file was deleted.

docker/docker-compose.al2.57.yaml

-21
This file was deleted.

0 commit comments

Comments
 (0)