Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 588 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 588 Bytes

Rust ⇄ Flutter: Commands

Generate Dart bindings

flutter_rust_bridge_codegen generate \
  --rust-input crate::api \
  --rust-root rust \
  --dart-output lib/bridge/bridge_generated.dart

Compile Rust library for Android

cargo ndk -t arm64-v8a -t armeabi-v7a -o ../android/app/src/main/jniLibs build --release
  • these targets are not added yet

Run the app

# using fvm
fvm flutter run --flavor {production|nightly}

Build APK

# using fvm
fvm flutter build apk --flavor production

Note: Nightly is only for CI.