Skip to content

Commit

Permalink
chore: bump jna
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Feb 5, 2024
1 parent 141705e commit 221b4c8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: cargo clippy --all-targets --features "uniffi/bindgen-tests" -- -D warnings

- name: "Test"
run: CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test --features uniffi/bindgen-tests
run: CLASSPATH=./tests/jna/jna-5.14.0.jar cargo test --features uniffi/bindgen-tests

fmt:
name: "Rust fmt"
Expand Down
4 changes: 2 additions & 2 deletions bdk-android/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
}

android {
compileSdk = 31
compileSdk = 33

defaultConfig {
minSdk = 21
Expand All @@ -44,7 +44,7 @@ android {
}

dependencies {
implementation("net.java.dev.jna:jna:5.8.0@aar")
implementation("net.java.dev.jna:jna:5.12.0@aar")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
implementation("androidx.appcompat:appcompat:1.4.0")
implementation("androidx.core:core-ktx:1.7.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ internal class UniFfiAndroidPlugin : Plugin<Project> {
// The code above worked for uniffi 0.24.3 using the --library flag
// The code below works for uniffi 0.23.0
workingDir("${project.projectDir}/../../bdk-ffi")
val cargoArgs: List<String> = listOf("run", "--bin", "uniffi-bindgen", "generate", "src/bdk.udl", "--language", "kotlin", "--out-dir", "../bdk-android/lib/src/main/kotlin", "--no-format")
val cargoArgs: List<String> = listOf("run", "--bin", "uniffi-bindgen", "generate", "src/bdk.udl", "--language", "kotlin", "--config", "uniffi-android.toml", "--out-dir", "../bdk-android/lib/src/main/kotlin", "--no-format")

executable("cargo")
args(cargoArgs)
Expand Down
2 changes: 1 addition & 1 deletion bdk-ffi/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ supported bindings languages.

To skip integration tests and only run unit tests use `cargo test --lib`.

To run all tests including integration tests use `CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test`.
To run all tests including integration tests use `CLASSPATH=./tests/jna/jna-5.14.0.jar cargo test`.

Before running integration tests you must install the following development tools:

Expand Down
Binary file added bdk-ffi/tests/jna/jna-5.14.0.jar
Binary file not shown.
Binary file removed bdk-ffi/tests/jna/jna-5.8.0.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions bdk-ffi/uniffi-android.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[bindings.kotlin]
android = true
android_cleaner = true
2 changes: 1 addition & 1 deletion bdk-jvm/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tasks.withType<Test> {
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
implementation("net.java.dev.jna:jna:5.8.0")
implementation("net.java.dev.jna:jna:5.12.0")
api("org.slf4j:slf4j-api:1.7.30")
testImplementation("junit:junit:4.13.2")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.8.2")
Expand Down

0 comments on commit 221b4c8

Please sign in to comment.