Migrated from VeryGoodOpenSource/very_good_flutter_plugin#148
Description
I didn't use it yet to be honest, but I think that using Pigeon is currently the state of the art for writing new plugins.
From 16.0.4:
Currently pigeon supports generating:
Kotlin and Java code for Android
Swift and Objective-C code for iOS and macOS
C++ code for Windows
So some fallback for Linux and Web would be required.
Requirements
[ ] Understanding how the code generation works for Pigeon and this generator tool
Additional Context
Pigeon is a code generator tool to make communication between Flutter and the host platform type-safe, easier, and faster.
Pigeon removes the necessity to manage strings across multiple platforms and languages. It also improves efficiency over common method channel patterns. Most importantly though, it removes the need to write custom platform channel code, since pigeon generates it for you.
Pigeon currently doesn't support all the platforms that FFI does support.
We probably need to understand what the Flutter team's roadmap is for federated plugins and if FFI support will continue or be deprecated.
In order to support this we essentially need to re-write a lot of the backend implementation here. If we go down this path we may want to offer a choice between the FFI and Pigeon implementation. If this is chosen then we should also try and get https://github.com/felangel/mason/issues/215 completed first.
Description
I didn't use it yet to be honest, but I think that using Pigeon is currently the state of the art for writing new plugins.
From 16.0.4:
So some fallback for Linux and Web would be required.
Requirements
Additional Context