Skip to content

Commit a93eff2

Browse files
committedSep 30, 2024·
use FoundationEssentials
1 parent f32927f commit a93eff2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎Examples/APIGateway/Sources/main.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414

1515
import AWSLambdaEvents
1616
import AWSLambdaRuntime
17-
import class Foundation.JSONEncoder
18-
17+
#if canImport(FoundationEssentials)
18+
import FoundationEssentials
19+
#else
20+
import Foundation
21+
#endif
1922
let encoder = JSONEncoder()
2023
let runtime = LambdaRuntime {
2124
(event: APIGatewayV2Request, context: LambdaContext) -> APIGatewayV2Response in

0 commit comments

Comments
 (0)
Please sign in to comment.