-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
56 lines (53 loc) · 1.46 KB
/
Package.swift
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
// swift-tools-version:5.2
import PackageDescription
var packageDependencies: [Package.Dependency] = [
.package(name: "Promise.swift", url: "https://github.com/k-o-d-e-n/promise.swift.git", .branch("master"))
]
var targetDependencies: [Target.Dependency] = [
.product(name: "Promise.swift", package: "Promise.swift")
]
#if os(Linux)
packageDependencies += [
.package(url: "https://github.com/apple/swift-se-0282-experimental", .branch("master"))
]
targetDependencies += [
.product(name: "SE0282_Experimental", package: "swift-se-0282-experimental"),
]
#endif
let package = Package(
name: "Realtime",
products: [
.library(
name: "Realtime",
targets: ["Realtime"]
),
.library(
name: "RealtimeTestLib",
targets: ["RealtimeTestLib"]
),
.library(
name: "Realtime+Firebase",
targets: ["Realtime+Firebase"]
),
],
dependencies: packageDependencies,
targets: [
.target(
name: "Realtime",
dependencies: targetDependencies
),
.target(
name: "Realtime+Firebase",
dependencies: ["Realtime"]
),
.target(
name: "RealtimeTestLib",
dependencies: ["Realtime"],
path: "./Tests/RealtimeTestLib"
),
.testTarget(
name: "RealtimeTests",
dependencies: ["RealtimeTestLib"]
),
]
)