forked from Electric-Coin-Company/zcash-swift-wallet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
63 lines (62 loc) · 1.93 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
57
58
59
60
61
62
63
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "ZcashLightClientKit",
platforms: [
.iOS(.v13),
.macOS(.v10_15)
],
products: [
.library(
name: "ZcashLightClientKit",
targets: ["ZcashLightClientKit"]
),
],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.8.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.13.0"),
.package(name: "libzcashlc", url: "https://github.com/zcash-hackworks/zcash-light-client-ffi.git", from: "0.0.3"),
],
targets: [
.target(
name: "ZcashLightClientKit",
dependencies: [
.product(name: "SQLite", package: "SQLite.swift"),
.product(name: "GRPC", package: "grpc-swift"),
.product(name: "libzcashlc", package: "libzcashlc"),
],
exclude: [
"Service/ProtoBuf/proto/compact_formats.proto",
"Service/ProtoBuf/proto/service.proto"
],
resources: [
.copy("Resources/checkpoints")
]
),
.target(
name: "TestUtils",
dependencies: ["ZcashLightClientKit"],
path: "Tests/TestUtils",
exclude: [
"proto/darkside.proto"
],
resources: [
.copy("test_data.db"),
.copy("cache.db"),
.copy("ZcashSdk_Data.db"),
]
),
.testTarget(
name: "OfflineTests",
dependencies: ["ZcashLightClientKit", "TestUtils"]
),
.testTarget(
name: "NetworkTests",
dependencies: ["ZcashLightClientKit", "TestUtils"]
),
.testTarget(
name: "DarksideTests",
dependencies: ["ZcashLightClientKit", "TestUtils"]
)
]
)