You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project builds a Swift package that provides [Swift] language bindings for the
4
-
[`bdk`] library. The Swift language bindings are created by the [`bdk-ffi`] project which
5
-
is included as a git submodule of this repository.
3
+
This project is only used to publish a [Swift] package manager package called `bdk-swift` with language bindings and corresponding bdkFFI.xcframework for the
4
+
`BitcoinDevKit` framework created by the [bdk-ffi] project. The Swift language bindings files are created by the [bdk-ffi]`./bdk-ffi` sub-project which are copied into, committed and tagged in this `bdk-swift` repo by the `publish-spm` github actions workflow.
6
5
7
-
## How to Use
8
-
9
-
To use the Swift language bindings for [`bdk`] in your [Xcode] iOS or MacOS project add
10
-
the github repository (https://github.com/bitcoindevkit/bdk-swift) and select one of the
11
-
release versions. You may then import and use the `BitcoinDevKit` library in your Swift
12
-
code. For example:
13
-
14
-
```swift
15
-
importBitcoinDevKit
16
-
17
-
...
18
-
let desc ="wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
If you are a maintainer of this project or want to build and publish this project to your
31
-
own Github repository use the following steps:
10
+
To use the Swift language bindings for `BitcoinDevKit` in your [Xcode] iOS or MacOS project:
32
11
33
-
1. If it doesn't already exist, create a new `release/0.MINOR` branch from the `master` branch
34
-
2. Run the `publish-spm` workflow on Github for branch `release/0.MINOR` and version `0.MINOR.0`
35
-
3. Copy the changelog from corresponding `bdk-ffi` release description to this release
12
+
1. Add the "bdk-swift" package from the repo https://github.com/bitcoindevkit/bdk-swift and select one of the latest minor versions.
13
+
2. Add the `BitcoinDevKit` framework in your Target config.
14
+
3. Import and use the `BitcoinDevKit` library in your Swift code. For example:
0 commit comments