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),
|
2023-01-18 08:09:04 -08:00
|
|
|
.macOS(.v12)
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
products: [
|
|
|
|
.library(
|
|
|
|
name: "ZcashLightClientKit",
|
|
|
|
targets: ["ZcashLightClientKit"]
|
2023-01-18 08:09:04 -08:00
|
|
|
)
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
dependencies: [
|
2023-02-09 10:55:46 -08:00
|
|
|
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.14.0"),
|
2022-11-21 03:56:04 -08:00
|
|
|
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.14.1"),
|
2023-09-19 09:31:55 -07:00
|
|
|
.package(url: "https://github.com/zcash-hackworks/zcash-light-client-ffi", revision: "8b4fb74880d57752493518fe26491f07028ea071")
|
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"),
|
2023-02-02 08:58:12 -08:00
|
|
|
.product(name: "libzcashlc", package: "zcash-light-client-ffi")
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
exclude: [
|
2023-02-03 02:23:35 -08:00
|
|
|
"Modules/Service/GRPC/ProtoBuf/proto/compact_formats.proto",
|
2023-04-24 14:15:20 -07:00
|
|
|
"Modules/Service/GRPC/ProtoBuf/proto/service.proto",
|
|
|
|
"Error/Sourcery/"
|
2022-05-05 14:30:17 -07:00
|
|
|
],
|
|
|
|
resources: [
|
2022-06-28 12:17:10 -07:00
|
|
|
.copy("Resources/checkpoints")
|
2023-01-19 11:46:03 -08:00
|
|
|
]
|
2022-02-28 09:03:20 -08:00
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "TestUtils",
|
|
|
|
dependencies: ["ZcashLightClientKit"],
|
|
|
|
path: "Tests/TestUtils",
|
|
|
|
exclude: [
|
2023-03-31 10:10:35 -07:00
|
|
|
"proto/darkside.proto",
|
|
|
|
"Sourcery/AutoMockable.stencil",
|
2023-05-05 10:30:47 -07:00
|
|
|
"Sourcery/generateMocks.sh"
|
2022-02-28 09:03:20 -08:00
|
|
|
],
|
|
|
|
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"),
|
2023-02-13 03:18:08 -08:00
|
|
|
.copy("Resources/sandblasted_mainnet_block.json"),
|
|
|
|
.copy("Resources/txBase64String.txt"),
|
2023-02-13 03:53:47 -08:00
|
|
|
.copy("Resources/txFromAndroidSDK.txt"),
|
2023-02-16 08:27:49 -08:00
|
|
|
.copy("Resources/integerOverflowJSON.json"),
|
|
|
|
.copy("Resources/sapling-spend.params"),
|
|
|
|
.copy("Resources/sapling-output.params")
|
2022-02-28 09:03:20 -08:00
|
|
|
]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "OfflineTests",
|
2023-01-19 11:46:03 -08:00
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-02-28 09:03:20 -08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "NetworkTests",
|
2023-01-19 11:46:03 -08:00
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-02-28 09:03:20 -08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "DarksideTests",
|
2023-01-19 11:46:03 -08:00
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-12-21 04:30:05 -08:00
|
|
|
),
|
2023-03-28 06:30:03 -07:00
|
|
|
.testTarget(
|
|
|
|
name: "AliasDarksideTests",
|
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"],
|
|
|
|
exclude: [
|
|
|
|
"scripts/"
|
|
|
|
]
|
|
|
|
),
|
2022-12-21 04:30:05 -08:00
|
|
|
.testTarget(
|
|
|
|
name: "PerformanceTests",
|
2023-01-19 11:46:03 -08:00
|
|
|
dependencies: ["ZcashLightClientKit", "TestUtils"]
|
2022-02-28 09:03:20 -08:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|