File tree Expand file tree Collapse file tree 2 files changed +387
-131
lines changed Expand file tree Collapse file tree 2 files changed +387
-131
lines changed Original file line number Diff line number Diff line change 1+ // swift-tools-version:5.5
2+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+ import PackageDescription
5+
6+ let package = Package (
7+ name: " bdk-swift " ,
8+ platforms: [
9+ . macOS( . v12) ,
10+ . iOS( . v15)
11+ ] ,
12+ products: [
13+ // Products define the executables and libraries a package produces, and make them visible to other packages.
14+ . library(
15+ name: " BitcoinDevKit " ,
16+ targets: [ " bdkFFI " , " BitcoinDevKit " ] ) ,
17+ ] ,
18+ dependencies: [
19+ // Dependencies declare other packages that this package depends on.
20+ // .package(url: /* package url */, from: "1.0.0"),
21+ ] ,
22+ targets: [
23+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
24+ // Targets can depend on other targets in this package, and on products in packages this package depends on.
25+ . binaryTarget(
26+ name: " bdkFFI " ,
27+ url: " https://github.com/bitcoindevkit/bdk-swift/releases/download/0.25.0/bdkFFI.xcframework.zip " ,
28+ checksum: " 4b9b4ebfc5c3d5d63eb62dd86a442f430262195cb247b0a402f522b25eff6708 " ) ,
29+ . target(
30+ name: " BitcoinDevKit " ,
31+ dependencies: [ " bdkFFI " ] ) ,
32+ . testTarget(
33+ name: " BitcoinDevKitTests " ,
34+ dependencies: [ " BitcoinDevKit " ] ) ,
35+ ]
36+ )
You can’t perform that action at this time.
0 commit comments