Skip to content

remove unnecessary preconcurrency imports #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.6
// swift-tools-version:5.7

import PackageDescription

Expand Down
6 changes: 3 additions & 3 deletions Sources/AWSLambdaEvents/Cloudwatch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
//
//===----------------------------------------------------------------------===//

#if swift(>=5.6)
@preconcurrency import struct Foundation.Date
#else
#if canImport(Darwin)
import struct Foundation.Date
#else
@preconcurrency import struct Foundation.Date
#endif

/// EventBridge has the same events/notification types as CloudWatch
Expand Down
6 changes: 3 additions & 3 deletions Sources/AWSLambdaEvents/DynamoDB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
//
//===----------------------------------------------------------------------===//

#if swift(>=5.6)
@preconcurrency import struct Foundation.Date
#else
#if canImport(Darwin)
import struct Foundation.Date
#else
@preconcurrency import struct Foundation.Date
#endif

// https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
Expand Down
6 changes: 3 additions & 3 deletions Sources/AWSLambdaEvents/Utils/DateWrappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
//
//===----------------------------------------------------------------------===//

#if swift(>=5.6)
@preconcurrency import struct Foundation.Date
#else
#if canImport(Darwin)
import struct Foundation.Date
#else
@preconcurrency import struct Foundation.Date
#endif
import class Foundation.DateFormatter
import struct Foundation.Locale
Expand Down
18 changes: 0 additions & 18 deletions docker/docker-compose.al2.54.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions docker/docker-compose.al2.55.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docker/docker-compose.al2.57.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: swift-aws-lambda-events:al2-5.7
build:
args:
base_image: "swiftlang/swift:nightly-main-amazonlinux2"
swift_version: "5.7"

test:
image: swift-aws-lambda-events:al2-5.7
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this file is not designed to be run directly
# instead, use the docker-compose.<os>.<swift> files
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.al2.52.yaml run test
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.al2.57.yaml run test
version: "3"

services:
Expand Down