-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
62 lines (61 loc) · 2.05 KB
/
Copy pathPackage.swift
File metadata and controls
62 lines (61 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// swift-tools-version:6.2
import PackageDescription
let package = Package(
name: "google-cloud-swift",
platforms: [.macOS(.v14)],
products: [
.library(name: "FirebaseAdmin", targets: ["FirebaseAdmin"]),
.library(name: "GoogleCloud", targets: ["GoogleCloud"]),
],
traits: [
"ServiceLifecycleSupport",
.default(
enabledTraits: [
"ServiceLifecycleSupport"
]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "5.0.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.30.2"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "5.1.1"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.9.1"),
],
targets: [
.target(
name: "GoogleCloudBase",
dependencies: [
.product(name: "_CryptoExtras", package: "swift-crypto"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "JWTKit", package: "jwt-kit"),
.product(
name: "ServiceLifecycle",
package: "swift-service-lifecycle",
condition: .when(traits: ["ServiceLifecycleSupport"])
),
]
),
.target(
name: "GoogleCloud",
dependencies: [
"GoogleCloudBase",
.product(name: "AsyncHTTPClient", package: "async-http-client"),
]
),
.target(
name: "FirebaseAdmin",
dependencies: [
"GoogleCloudBase",
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "JWTKit", package: "jwt-kit"),
]
),
.testTarget(
name: "SharedTests",
dependencies: [
"GoogleCloud",
"FirebaseAdmin",
]
),
]
)