chore: bump jna
This commit is contained in:
parent
141705e2ed
commit
50f102bbd3
2
.github/workflows/cont_integration.yml
vendored
2
.github/workflows/cont_integration.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
run: cargo clippy --all-targets --features "uniffi/bindgen-tests" -- -D warnings
|
run: cargo clippy --all-targets --features "uniffi/bindgen-tests" -- -D warnings
|
||||||
|
|
||||||
- name: "Test"
|
- 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:
|
fmt:
|
||||||
name: "Rust fmt"
|
name: "Rust fmt"
|
||||||
|
@ -19,11 +19,11 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = 31
|
compileSdk = 33
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 31
|
targetSdk = 33
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
consumerProguardFiles("consumer-rules.pro")
|
consumerProguardFiles("consumer-rules.pro")
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.java.dev.jna:jna:5.8.0@aar")
|
implementation("net.java.dev.jna:jna:5.14.0@aar")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
|
||||||
implementation("androidx.appcompat:appcompat:1.4.0")
|
implementation("androidx.appcompat:appcompat:1.4.0")
|
||||||
implementation("androidx.core:core-ktx:1.7.0")
|
implementation("androidx.core:core-ktx:1.7.0")
|
||||||
|
@ -144,7 +144,7 @@ internal class UniFfiAndroidPlugin : Plugin<Project> {
|
|||||||
// The code above worked for uniffi 0.24.3 using the --library flag
|
// The code above worked for uniffi 0.24.3 using the --library flag
|
||||||
// The code below works for uniffi 0.23.0
|
// The code below works for uniffi 0.23.0
|
||||||
workingDir("${project.projectDir}/../../bdk-ffi")
|
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")
|
executable("cargo")
|
||||||
args(cargoArgs)
|
args(cargoArgs)
|
||||||
|
44
bdk-ffi/Cargo.lock
generated
44
bdk-ffi/Cargo.lock
generated
@ -668,50 +668,6 @@ dependencies = [
|
|||||||
"getrandom",
|
"getrandom",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "regex"
|
|
||||||
version = "1.10.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15"
|
|
||||||
dependencies = [
|
|
||||||
"aho-corasick",
|
|
||||||
"memchr",
|
|
||||||
"regex-automata 0.4.5",
|
|
||||||
"regex-syntax 0.8.2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "regex-automata"
|
|
||||||
version = "0.1.10"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
|
|
||||||
dependencies = [
|
|
||||||
"regex-syntax 0.6.29",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "regex-automata"
|
|
||||||
version = "0.4.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd"
|
|
||||||
dependencies = [
|
|
||||||
"aho-corasick",
|
|
||||||
"memchr",
|
|
||||||
"regex-syntax 0.8.2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "regex-syntax"
|
|
||||||
version = "0.6.29"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "regex-syntax"
|
|
||||||
version = "0.8.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ring"
|
name = "ring"
|
||||||
version = "0.17.7"
|
version = "0.17.7"
|
||||||
|
@ -5,7 +5,7 @@ supported bindings languages.
|
|||||||
|
|
||||||
To skip integration tests and only run unit tests use `cargo test --lib`.
|
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:
|
Before running integration tests you must install the following development tools:
|
||||||
|
|
||||||
|
BIN
bdk-ffi/tests/jna/jna-5.14.0.jar
Normal file
BIN
bdk-ffi/tests/jna/jna-5.14.0.jar
Normal file
Binary file not shown.
Binary file not shown.
3
bdk-ffi/uniffi-android.toml
Normal file
3
bdk-ffi/uniffi-android.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[bindings.kotlin]
|
||||||
|
android = true
|
||||||
|
android_cleaner = true
|
@ -59,7 +59,7 @@ tasks.withType<Test> {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
|
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
|
||||||
implementation("net.java.dev.jna:jna:5.8.0")
|
implementation("net.java.dev.jna:jna:5.14.0")
|
||||||
api("org.slf4j:slf4j-api:1.7.30")
|
api("org.slf4j:slf4j-api:1.7.30")
|
||||||
testImplementation("junit:junit:4.13.2")
|
testImplementation("junit:junit:4.13.2")
|
||||||
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.8.2")
|
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.8.2")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user