Skip to content

firo-org/sparkmobile for cross-platform Flutter applications.

License

Notifications You must be signed in to change notification settings

cypherstack/flutter_libsparkmobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a5b90f6 · Feb 26, 2025
Sep 16, 2024
Feb 5, 2025
Jan 3, 2024
Feb 26, 2025
Dec 29, 2023
Jan 3, 2024
Nov 20, 2024
Feb 5, 2025
Nov 30, 2023
Jan 2, 2024
Dec 1, 2023
Jan 2, 2024
Oct 30, 2023
Jan 8, 2024
Jan 8, 2024
Feb 26, 2025
Dec 1, 2023
Feb 5, 2025

Repository files navigation

flutter_libsparkmobile

SparkMobile wrapped as a Flutter plugin for cross-platform mobile and desktop apps. Supports Android, iOS, Linux, Mac, and Windows platforms.

Build

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.).

Example

See the example directory for a Flutter app that uses flutter_libsparkmobile.

Integration tests

example/test/integration_test.dart tests various vectors for correctness. Run it from example as in flutter test integration_test/plugin_integration_test.dart.

Development

Bindings generation (dart run ffigen --config ffigen.yaml)

Bindings are generated using ffigen. After bindings are generated, wrap the bound functions in flutter_libsparkmobile.dart.

sparkmobile troubleshooting

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.