Java bindings for the Rust library btleplug.
repositories {
mavenCentral()
}
dependencies {
implementation("moe.prwk:btleplug4j:<version>")
}To build the project you'll need:
- JDK 22 and onwards (for the FFM API)
jextractmatching the JDK version- Rust
- Zig (for cross-compilation targeting Linux and macOS)
- MinGW (for cross-compilation targeting Windows)
cargo-zigbuildandcargo-xwinlibdbusdevelopment files andbluezwhen on Linux- macOS SDK (for cross-compilation targeting macOS)
It's suggested to build this on a Linux host machine.
After you've added the relevant targets via rustup (check build.gradle.kts for target triples), to build the project
simply run:
./gradlew buildThis project is licensed under MIT.
Additionally, this project uses btleplug, which is licensed under
BSD 3-Clause.
Please view the license for more info.