2023-12-29 16:21:20 -06:00
2023-12-29 08:47:00 -06:00
2023-12-01 11:25:23 -06:00
2023-12-29 16:21:20 -06:00
2023-11-28 15:52:26 -06:00
2023-11-30 15:04:56 -06:00
2023-12-01 12:42:29 -06:00
2023-12-29 16:21:20 -06:00
2023-11-30 15:12:20 -06:00
2023-11-28 15:52:26 -06:00
2023-12-01 13:27:32 -06:00
2023-10-30 10:51:33 -05:00
2023-12-01 15:05:29 -06:00
2023-10-30 10:51:33 -05:00
2023-11-28 15:52:26 -06:00

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

  1. Initialize submodules and setup.
cd flutter_libsparkmobile/scripts
./prebuild.sh
  1. 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 --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.

Run integration tests like ./interface bin && ./bin/interface_test.

Description
No description provided
Readme MIT 896 KiB
Languages
C++ 42.5%
Dart 30.1%
CMake 14.1%
C 9.2%
Ruby 2.2%
Other 1.8%