ffi_template

ffi_template

The ffi plugin template for Aurora OS

EN | RU

ffi_template

A plugin template with the native C++ part and communication via ffi.

Contents

Installation and build

Add the plugin depending on the target application in the pubspec.yaml file:

dependencies:
  ffi_template:
    git:
      url: <plugin-url>

And update the dependencies:

flutter-aurora pub get

Compatibility

The plugin has been working correctly since the 5.0.0 version of the Aurora OS and Flutter 3.35.7.

Project structure

The project has a standard ffi plugin structure based on Dart and Flutter for the Aurora OS with a native part in C.

  • Catalog aurora contains CMakeList.txt to build the plugin's platform code.
  • Catalog example contains an example of using the plugin.
  • Catalog lib contains the source code of the plugin on Dart.
  • File ffi_template.dart - exports the plugin.
  • Catalog src contains the native code of the plugin in C.
  • File pubspec.yaml describes the dependencies and settings of the application.
  • File ffigen.yaml contains instructions for generating wrappers.

Terms of use and participation in development

The source code of the project is provided under license, which allows it to be used in third-party applications.

To participate in the development of the project, please read the participant agreement. If you plan to send your source code for inclusion in the project, you will need to accept the terms of the CLA.

Information about the participants is provided in the [AUTHORS] file(AUTHORS.md ).

Code of Conduct is the current set of rules of the Open Mobile Platform company, which informs about the expectations for interaction between community members when communicating and working on projects.