File tree 4 files changed +28
-4
lines changed
4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ import PackageDescription
6
6
import class Foundation. ProcessInfo
7
7
import struct Foundation. URL
8
8
9
+ #if os(macOS)
10
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
11
+ #else
12
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
13
+ #endif
14
+
9
15
let package = Package (
10
16
name: " swift-aws-lambda-runtime-example " ,
11
- platforms: [ . macOS ( . v15 ) ] ,
17
+ platforms: platforms ,
12
18
products: [
13
19
. executable( name: " APIGatewayLambda " , targets: [ " APIGatewayLambda " ] )
14
20
] ,
Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ import PackageDescription
6
6
import class Foundation. ProcessInfo
7
7
import struct Foundation. URL
8
8
9
+ #if os(macOS)
10
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
11
+ #else
12
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
13
+ #endif
14
+
9
15
let package = Package (
10
16
name: " AWSSDKExample " ,
11
- platforms: [ . macOS ( . v15 ) ] ,
17
+ platforms: platforms ,
12
18
products: [
13
19
. executable( name: " AWSSDKExample " , targets: [ " AWSSDKExample " ] )
14
20
] ,
Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ import PackageDescription
6
6
import class Foundation. ProcessInfo
7
7
import struct Foundation. URL
8
8
9
+ #if os(macOS)
10
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
11
+ #else
12
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
13
+ #endif
14
+
9
15
let package = Package (
10
16
name: " swift-aws-lambda-runtime-example " ,
11
- platforms: [ . macOS ( . v15 ) ] ,
17
+ platforms: platforms ,
12
18
products: [
13
19
. executable( name: " MyLambda " , targets: [ " MyLambda " ] )
14
20
] ,
Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ import PackageDescription
6
6
import class Foundation. ProcessInfo
7
7
import struct Foundation. URL
8
8
9
+ #if os(macOS)
10
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = [ . macOS( . v15) ]
11
+ #else
12
+ let platforms : [ PackageDescription . SupportedPlatform ] ? = nil
13
+ #endif
14
+
9
15
let package = Package (
10
16
name: " SotoLambdaExample " ,
11
- platforms: [ . macOS ( . v15 ) ] ,
17
+ platforms: platforms ,
12
18
products: [
13
19
. executable( name: " SotoLambdaExample " , targets: [ " SotoExample " ] )
14
20
] ,
You can’t perform that action at this time.
0 commit comments