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 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.
3
4
4
5
## 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
+
6
9
```kotlin
7
10
repositories {
8
11
mavenCentral()
@@ -14,6 +17,7 @@ dependencies {
14
17
```
15
18
16
19
### Snapshot releases
20
+
17
21
To use a snapshot release, specify the snapshot repository url in the `repositories` block and use the snapshot version in the `dependencies` block:
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:
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:
72
75
```properties
73
76
signing.gnupg.keyName=<YOUR_GNUPG_ID>
74
77
signing.gnupg.passphrase=<YOUR_GNUPG_PASSPHRASE>
@@ -80,20 +83,26 @@ and use the `publishToMavenLocal` task without the `localBuild` flag:
80
83
```
81
84
82
85
## Known issues
86
+
83
87
### JNA dependency
88
+
84
89
Depending on the JVM version you use, you might not have the JNA dependency on your classpath. The exception thrown will be
90
+
85
91
```shell
86
92
class file for com.sun.jna.Pointer not found
87
93
```
94
+
88
95
The solution is to add JNA as a dependency like so:
96
+
89
97
```kotlin
90
98
dependencies {
91
99
implementation("net.java.dev.jna:jna:5.12.1")
92
100
}
93
101
```
94
102
95
103
### x86 emulators
104
+
96
105
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.
Copy file name to clipboardExpand all lines: bdk-android/lib/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@ The [bitcoindevkit](https://bitcoindevkit.org/) language bindings library for Ko
4
4
5
5
# Package org.bitcoindevkit
6
6
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.
Copy file name to clipboardExpand all lines: bdk-jvm/README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# 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.
3
4
4
5
## 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:
Copy file name to clipboardExpand all lines: bdk-jvm/lib/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@ The [bitcoindevkit](https://bitcoindevkit.org/) language bindings library for Ko
4
4
5
5
# Package org.bitcoindevkit
6
6
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.
0 commit comments