flutter_libsparkmobile
SparkMobile wrapped as a Flutter plugin for cross-platform mobile and desktop apps. Intended to support Android, iOS, Linux, Mac, and Windows platforms.
Build
- Initialize submodules and setup.
cd flutter_libsparkmobile/scripts
./prebuild.sh
- Build the native library deps for your platform like:
cd flutter_libsparkmobile/scripts/linux
./build_all.sh
Example
See the example directory for a Flutter app that uses flutter_libsparkmobile.
You must have the native library built for your platform before running the example app. See the Build section above.
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)
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.
Run integration tests like ./interface bin && ./bin/interface_test.