Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 717 Bytes

File metadata and controls

26 lines (18 loc) · 717 Bytes

Flutter

This example assumes that the flutter example and the signer-ffi/flutter/filecoin flutter plugin are in the same directory.

Android example

  1. Currently, we don't provide compiled artifacts, so you will have to build the signer-ffi crate specifying the desired target using the NDK:
cargo build --target aarch64-linux-android
  1. Copy and paste the resulting library into the jniLib directory of the filecoin plugin. For example, the standard directory for ARMv8 targets is android/src/jniLibs/arm64-v8a:
cp `$GENERATED_LIB_DIR/libfilecoin_signer_ffi.so` `$EXAMPLE_DIR/android/src/jniLibs/arm64-v8a`
  1. Run the example using the SDK:
flutter run