SparkMobile wrapped as a Flutter plugin for cross-platform mobile and desktop apps. Supports Android, iOS, Linux, Mac, and Windows platforms.
Use flutter build
to build or flutter run
the example app.
Note that the example app requires Coinlib's secp256k1
lib to be built (use dart run coinlib:build_linux
for Linux, dart run coinlib:build_windows
for Windows, etc.).
See the example directory for a Flutter app that uses flutter_libsparkmobile
.
example/test/integration_test.dart
tests various vectors for correctness. Run it from example
as in flutter test integration_test/plugin_integration_test.dart
.
Bindings are generated using ffigen. After bindings are generated, wrap the bound functions in flutter_libsparkmobile.dart
.
If you need to test changes in sparkmobile
itself, you may need to install Boost development libraries as in sudo apt install libboost-all-dev
.