2022-08-24 14:18:28 -07:00
|
|
|
// swift-tools-version:5.6
|
2022-02-28 09:03:20 -08:00
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "ZcashLightClientKit",
|
|
|
|
platforms: [
|
2022-06-29 16:12:17 -07:00
|
|
|
.iOS(.v13),
|
2022-08-20 15:10:22 -07:00
|
|
|
.macOS(.v10_15)
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "ZcashLightClientKit",
|
|
|
|
targets: ["ZcashLightClientKit"]
|
|
|
|
),
|
|
|
|
],
|
|
|
|
dependencies: [
|
2022-06-16 08:37:16 -07:00
|
|
|
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.8.0"),
|
2022-11-21 03:56:04 -08:00
|
|
|
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.14.1"),
|
2022-12-21 04:30:05 -08:00
|
|
|
.package(name:"libzcashlc", url: "https://github.com/zcash-hackworks/zcash-light-client-ffi", from: "0.1.1"),
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
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",
|
2022-05-05 14:30:17 -07:00
|
|
|
"Service/ProtoBuf/proto/service.proto"
|
|
|
|
],
|
|
|
|
resources: [
|
2022-06-28 12:17:10 -07:00
|
|
|
.copy("Resources/checkpoints")
|
2022-02-28 09:03:20 -08:00
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "TestUtils",
|
|
|
|
dependencies: ["ZcashLightClientKit"],
|
|
|
|
path: "Tests/TestUtils",
|
|
|
|
exclude: [
|
|
|
|
"proto/darkside.proto"
|
|
|
|
],
|
|
|
|
resources: [
|
2022-04-26 13:33:24 -07:00
|
|
|
.copy("Resources/test_data.db"),
|
|
|
|
.copy("Resources/cache.db"),
|
2022-10-21 09:54:53 -07:00
|
|
|
.copy("Resources/darkside_caches.db"),
|
|
|
|
.copy("Resources/darkside_data.db"),
|
|
|
|
.copy("Resources/darkside_pending.db")
|
2022-02-28 09:03:20 -08:00
|
|
|
]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "OfflineTests",
|
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "NetworkTests",
|
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "DarksideTests",
|
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-12-21 04:30:05 -08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "PerformanceTests",
|
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-02-28 09:03:20 -08:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|