A flutter plugin project that exposes the sdk-core using ffi. The flutter_rust_bridge is used to generate the bindings.
- Flutter version
3.19.0
- set the ANDROID_NDK_HOME env variable to your sdk home folder
export ANDROID_NDK_HOME=<your android ndk directory>
Install protocol buffer compiler
- MacOS, using Homebrew
brew install protobuf
- Linux
apt install -y protobuf-compiler
- install cargo-ndk to provide simplified android build:
cargo install cargo-ndk
- Install flutter_rust_bridge:
cargo install flutter_rust_bridge_codegen --version 1.82.6
On first usage you will need to run:
make init
Then for iOS:
make ios
And for android
make android
- Android libraries
- ./android/src/main/jniLibs/arm64-v8a/libbreez_sdk_bindings.so
- ./android/src/main/jniLibs/armeabi-v7a/libbreez_sdk_bindings.so
- ./android/src/main/jniLibs/x86/libbreez_sdk_bindings.so
- ./android/src/main/jniLibs/x86_64/libbreez_sdk_bindings.so
- iOS library is imported through libs/sdk-bindings/bindings-swift