// 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", Version(stringLiteral: "0.13.0")...Version(stringLiteral: "0.13.99")), .package(name:"libzcashlc", url: "https://github.com/zcash-hackworks/zcash-light-client-ffi", from: "0.1.0-beta.1") ], 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("Resources/test_data.db"), .copy("Resources/cache.db"), .copy("Resources/darkside_caches.db"), .copy("Resources/darkside_data.db"), .copy("Resources/darkside_pending.db") ] ), .testTarget( name: "OfflineTests", dependencies: ["ZcashLightClientKit", "TestUtils"] ), .testTarget( name: "NetworkTests", dependencies: ["ZcashLightClientKit", "TestUtils"] ), .testTarget( name: "DarksideTests", dependencies: ["ZcashLightClientKit", "TestUtils"] ) ] )