Skip to content

Commit 53e3ee3

Browse files
docs: update readme files and other documentation
1 parent 599307a commit 53e3ee3

File tree

7 files changed

+41
-26
lines changed

7 files changed

+41
-26
lines changed

bdk-android/README.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# bdk-android
2-
This project builds an .aar package for the Android platform that provide Kotlin language bindings for the [`bdk`] library. The Kotlin language bindings are created by the [`bdk-ffi`] project which is included in the root of this repository.
2+
3+
This project builds an .aar package for the Android platform that provide Kotlin language bindings for the [BDK] libraries. The Kotlin language bindings are created by the [`bdk-ffi`] project which is included in the root of this repository.
34

45
## How to Use
5-
To use the Kotlin language bindings for [`bdk`] in your Android project add the following to your gradle dependencies:
6+
7+
To use the Kotlin language bindings for BDK in your Android project add the following to your gradle dependencies:
8+
69
```kotlin
710
repositories {
811
mavenCentral()
@@ -14,6 +17,7 @@ dependencies {
1417
```
1518

1619
### Snapshot releases
20+
1721
To use a snapshot release, specify the snapshot repository url in the `repositories` block and use the snapshot version in the `dependencies` block:
1822
```kotlin
1923
repositories {
@@ -26,49 +30,48 @@ dependencies {
2630
```
2731

2832
### Example Projects
29-
* [bdk-kotlin-example-wallet](https://github.com/bitcoindevkit/bdk-kotlin-example-wallet)
30-
* [Devkit Wallet](https://github.com/thunderbiscuit/devkit-wallet)
33+
34+
* [Devkit Wallet](https://github.com/bitcoindevkit/devkit-wallet)
3135
* [Padawan Wallet](https://github.com/thunderbiscuit/padawan-wallet)
3236

3337
### How to build
34-
_Note that Kotlin version `1.9.23` or later is required to build the library._
38+
39+
_Note that Kotlin version `2.1.10` or later is required to build the library._
3540

3641
1. Clone this repository.
3742
```shell
3843
git clone https://github.com/bitcoindevkit/bdk-ffi
3944
```
40-
2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions.
41-
3. Install Android SDK and Build-Tools for API level 30+
42-
4. Setup `ANDROID_SDK_ROOT` and `ANDROID_NDK_ROOT` path variables which are required by the build tool. Note that currently, NDK version 25.2.9519653 or above is required. For example:
45+
2. Install Android SDK and Build-Tools for API level 30+
46+
3. Setup `ANDROID_SDK_ROOT` and `ANDROID_NDK_ROOT` path variables which are required by the build tool. Note that currently, NDK version 25.2.9519653 or above is required. For example:
4347
```shell
4448
# macOS
4549
export ANDROID_SDK_ROOT=~/Library/Android/sdk
4650
export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/25.2.9519653
4751

48-
# linux
52+
# Linux
4953
export ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
5054
export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/25.2.9519653
5155
```
52-
53-
7. Build kotlin bindings
56+
4. Build Kotlin bindings
5457
```sh
5558
# build Android library
5659
cd bdk-android
5760
bash ./scripts/build-<your-local-architecture>.sh
5861
```
59-
60-
8. Start android emulator and run tests
62+
5. Start android emulator and run tests
6163
```sh
6264
./gradlew connectedAndroidTest
6365
```
6466

6567
## How to publish to your local Maven repo
68+
6669
```shell
6770
cd bdk-android
6871
./gradlew publishToMavenLocal -P localBuild
6972
```
7073

71-
Note that the commands assume you don't need the local libraries to be signed. If you do wish to sign them, simply set your `~/.gradle/gradle.properties` signing key values like so:
74+
Note that the command above assumes you don't need the local libraries to be signed. If you do wish to sign them, simply set your `~/.gradle/gradle.properties` signing key values like so:
7275
```properties
7376
signing.gnupg.keyName=<YOUR_GNUPG_ID>
7477
signing.gnupg.passphrase=<YOUR_GNUPG_PASSPHRASE>
@@ -80,20 +83,26 @@ and use the `publishToMavenLocal` task without the `localBuild` flag:
8083
```
8184

8285
## Known issues
86+
8387
### JNA dependency
88+
8489
Depending on the JVM version you use, you might not have the JNA dependency on your classpath. The exception thrown will be
90+
8591
```shell
8692
class file for com.sun.jna.Pointer not found
8793
```
94+
8895
The solution is to add JNA as a dependency like so:
96+
8997
```kotlin
9098
dependencies {
9199
implementation("net.java.dev.jna:jna:5.12.1")
92100
}
93101
```
94102

95103
### x86 emulators
104+
96105
For some older versions of macOS, Android Studio will recommend users install the x86 version of the emulator by default. This will not work with the bdk-android library, as we do not support 32-bit architectures. Make sure you install an x86_64 emulator to work with bdk-android.
97106

98-
[`bdk`]: https://github.com/bitcoindevkit/bdk
107+
[BDK]: https://github.com/bitcoindevkit/
99108
[`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi

bdk-android/lib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ The [bitcoindevkit](https://bitcoindevkit.org/) language bindings library for Ko
44

55
# Package org.bitcoindevkit
66

7-
The types coming from BDK directly. The functionality exposed in this package is in fact a combination of the [bdk_wallet](https://crates.io/crates/bdk_wallet), [bdk_core](https://crates.io/crates/bdk_core), [bdk_electrum](https://crates.io/crates/bdk_electrum), and [bdk_esplora](https://crates.io/crates/bdk_esplora) crates.
7+
The functionality exposed in this package is in fact a combination of the [bdk_wallet](https://crates.io/crates/bdk_wallet), [bdk_core](https://crates.io/crates/bdk_core), [bdk_electrum](https://crates.io/crates/bdk_electrum), [bdk_esplora](https://crates.io/crates/bdk_esplora), [bitcoin](https://crates.io/crates/bitcoin), and [miniscript](https://crates.io/crates/miniscript) crates.

bdk-jvm/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# bdk-jvm
2-
This project builds a .jar package for the JVM platform that provides Kotlin language bindings for the [`bdk`] library. The Kotlin language bindings are created by the `bdk-ffi` project which is included in the root of this repository.
2+
3+
This project builds a .jar package for the JVM platform that provides Kotlin language bindings for the [BDK] libraries. The Kotlin language bindings are created by the `bdk-ffi` project which is included in the root of this repository.
34

45
## How to Use
5-
To use the Kotlin language bindings for [`bdk`] in your JVM project add the following to your gradle dependencies:
6+
To use the Kotlin language bindings for BDK in your JVM project add the following to your gradle dependencies:
67
```kotlin
78
repositories {
89
mavenCentral()
@@ -73,5 +74,5 @@ dependencies {
7374
}
7475
```
7576

76-
[`bdk`]: https://github.com/bitcoindevkit/bdk
77+
[BDK]: https://github.com/bitcoindevkit/
7778
[`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi

bdk-jvm/lib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ The [bitcoindevkit](https://bitcoindevkit.org/) language bindings library for Ko
44

55
# Package org.bitcoindevkit
66

7-
The types coming from BDK directly. The functionality exposed in this package is in fact a combination of the [bdk_wallet](https://crates.io/crates/bdk_wallet), [bdk_core](https://crates.io/crates/bdk_core), [bdk_electrum](https://crates.io/crates/bdk_electrum), and [bdk_esplora](https://crates.io/crates/bdk_esplora) crates.
7+
The functionality exposed in this package is in fact a combination of the [bdk_wallet](https://crates.io/crates/bdk_wallet), [bdk_core](https://crates.io/crates/bdk_core), [bdk_electrum](https://crates.io/crates/bdk_electrum), [bdk_esplora](https://crates.io/crates/bdk_esplora), [bitcoin](https://crates.io/crates/bitcoin), and [miniscript](https://crates.io/crates/miniscript) crates.

bdk-python/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# bdk-python
2+
23
The Python language bindings for the [bitcoindevkit](https://github.com/bitcoindevkit).
34

45
See the [package on PyPI](https://pypi.org/project/bdkpython/).
56

67
## Install from PyPI
8+
79
Install the latest release using
810
```shell
911
pip install bdkpython
1012
```
1113

1214
## Run the tests
15+
1316
```shell
1417
pip install --requirement requirements.txt
1518
bash ./scripts/generate-linux.sh # here you should run the script appropriate for your platform
@@ -19,6 +22,7 @@ python -m unittest --verbose
1922
```
2023

2124
## Build the package
25+
2226
```shell
2327
# Install dependencies
2428
pip install --requirement requirements.txt
@@ -31,6 +35,7 @@ python setup.py --verbose bdist_wheel
3135
```
3236

3337
## Install locally
38+
3439
```shell
3540
pip install ./dist/bdkpython-<yourversion>.whl
3641
```

bdk-python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
## Simple example
1414
```python
15-
import bdkpython as bdk
15+
from bdkpython import Wallet
1616
```
1717
"""
1818

bdk-swift/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# bdk-swift
22

33
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 is included as a module of this repository.
4+
[BDK] libraries. The Swift language bindings are created by the [`bdk-ffi`] project which is included as a module of this repository.
55

66
Supported target platforms are:
77

@@ -11,7 +11,7 @@ Supported target platforms are:
1111

1212
## How to Use
1313

14-
To use the Swift language bindings for [`bdk`] in your [Xcode] iOS or macOS project add
14+
To use the Swift language bindings for [BDK] in your [Xcode] iOS or macOS project add
1515
the GitHub repository https://github.com/bitcoindevkit/bdk-swift and select one of the
1616
release versions. You may then import and use the `BitcoinDevKit` library in your Swift
1717
code. For example:
@@ -43,10 +43,10 @@ If you are a maintainer of this project or want to build and publish this projec
4343
own GitHub repository use the following steps:
4444

4545
1. If it doesn't already exist, create a new `release/0.MINOR` branch from the `master` branch.
46-
2. Add a tag `v0.MINOR.PATCH`.
47-
3. Run the `publish-spm` workflow on GitHub from the `bdk-swift` repo for version `0.MINOR.PATCH`.
46+
2. Add a tag `vMAJOR.MINOR.PATCH`.
47+
3. Run the `publish-spm` workflow on GitHub from the `bdk-swift` repo for version `MAJOR.MINOR.PATCH`.
4848

4949
[Swift]: https://developer.apple.com/swift/
5050
[Xcode]: https://developer.apple.com/documentation/Xcode
51-
[`bdk`]: https://github.com/bitcoindevkit/bdk
51+
[`BDK`]: https://github.com/bitcoindevkit/
5252
[`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi

0 commit comments

Comments
 (0)