java bindings - Android export files
Pre-releaseThis is a pre-release for Wallet.rs Java Android bindings.
Based on the currently open PR #782
Commit hash: b1ce2e836373f9ad95a8841f25861a8e17d21669
Install the attached files so that you achieve the following directory structure: (extract the jniLibs.zip into root_app/src/main/
)
root_app/src/main/
libs/
native.jar
jniLibs/
arm64-v8a/
libc++_shared.so
libiota_wallet_java.so
armeabi-v7a/
libc++_shared.so
TEMP_UNAVAILABLE_DUE_TO_ROCKSDB.txt
x86/
libc++_shared.so
libiota_wallet_java.so
x86_64/
libc++_shared.so
libiota_wallet_java.so
Then using Android Studio, add the native.jar to your project by right clicking -> Add As Library... -> Select your Android app Module and press OK.
Alternatively, add the jar to your build.gradle dependencies section using for example: implementation files('src\\main\\libs\\native.jar')
When trying to build the android-app
example in the repository, comment out all the archTriplets
inside wallet.rs/bindings/java/examples/android-app/build.gradle
. (Otherwise you will try to regenerate the .so
file)s
SHA256 of jniLibs.zip: 5acc55e3694b9121cb163def03cb423df41986a0498ce75bf3e3d886eefbddd4
SHA256 of native.jar: 4de55507874e40d26cb67c1fd7fa95ed986dd954ed9d4c85b20284ce0f993435
Files generated using Android NDK 21.1.6352462
Disclaimer:
ARM 32 bit devies are currently not supported due to RocksDb not cross compiling for this target (This is a wallet.rs dependency)