bdk-swift
This project builds a Swift package that provides Swift language bindings for the
[bdk] library. The Swift language bindings are created by the [bdk-ffi] project which is included as a module of this repository.
How to Use
To use the Swift language bindings for [bdk] in your Xcode iOS or MacOS project add
the github repository https://github.com/bitcoindevkit/bdk-swift and select one of the
release versions. You may then import and use the BitcoinDevKit library in your Swift
code. For example:
import BitcoinDevKit
...
Note: the Swift Package Manager package for bdk-swift is located in it's own repository (https://github.com/bitcoindevkit/bdk-swift), and that is where releases are created for it. But the code that generates the bindings is located in the https://github.com/bitcoindevkit/bdk-ffi repo in the bdk-swift/ directory.
How to test
swift test
Example Projects
- TBD
How to Build and Publish
If you are a maintainer of this project or want to build and publish this project to your own Github repository use the following steps:
If you are a maintainer of this project or want to build and publish this project to your own Github repository use the following steps:
- If it doesn't already exist, create a new
release/0.MINORbranch from themasterbranch. - Add a tag
v0.MINOR.0. - Run the
publish-spmworkflow on Github from thebdk-swiftrepo for version0.MINOR.0.