libserialport_plus 0.0.1 copy "libserialport_plus: ^0.0.1" to clipboard
libserialport_plus: ^0.0.1 copied to clipboard

Flutter libserialport FFI plugin

libserialport_plus #

Flutter libserialport FFI plugin

Getting Started #

To get started you need to initialize the libserialport submodule with:

git submodule update --init --recursive

The native build systems that are invoked by FFI (and method channel) plugins are:

  • For Android: Gradle, which invokes the Android NDK for native builds.
    • See the documentation in android/build.gradle.
  • For iOS and MacOS: Xcode, via CocoaPods.
    • See the documentation in ios/libserialport_plus.podspec.
    • See the documentation in macos/libserialport_plus.podspec.
  • For Linux and Windows: CMake.
    • See the documentation in linux/CMakeLists.txt.
    • See the documentation in windows/CMakeLists.txt.

Binding to native code #

To use the native code, bindings in Dart are needed. To avoid writing these by hand, they are generated from the header file (src/libserialport/libserialport.h) by package:ffigen. Regenerate the bindings by running dart run ffigen --config ffigen.yaml.

0
likes
150
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter libserialport FFI plugin

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

equatable, ffi, flutter, plugin_platform_interface

More

Packages that depend on libserialport_plus