mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

[CONTRIBUTING] How to use pigeon to generate native code wrappers

Open srmncnk opened this issue 2 years ago • 4 comments

I want to contribute by adding / exposing some additional functionality, already present in the native SDK but not exposed by the flutter wrapper.

Looking at the project, I understand that platform channel communication is done via pigeon. But I don't know how to generate the code (from .dart files or maybe .orig files?) to expose native functionality.

Please provide some documentation (or maybe just point me in the right direction here and I'll add the docs myself) on how to use pigeon, which files to use for the interface and which paths to use.

srmncnk avatar Jul 14 '23 13:07 srmncnk

Maybe @yunikkk, @LjubiTech-Maxko or @kiryldz have some pointers?.

srmncnk avatar Jul 18 '23 10:07 srmncnk

Hey @srmncnk, thanks for the suggestion! You are right about the pigeon use to generate the bindings. The setup is partially private at the moment (as we generate the pigeon templates themselves also), but we plan to expose it to enable community to add or enhance the bindings. No timeline for this however for now, we'll post the updates in the ticket when it's available.

yunikkk avatar Jul 20 '23 09:07 yunikkk

@yunikkk Thanks for the update. Please mention it here when it becomes available. We're very interested in contributing.

srmncnk avatar Jul 20 '23 11:07 srmncnk

Hey @srmncnk, thanks for the suggestion! You are right about the pigeon use to generate the bindings. The setup is partially private at the moment (as we generate the pigeon templates themselves also), but we plan to expose it to enable community to add or enhance the bindings. No timeline for this however for now, we'll post the updates in the ticket when it's available.

Almost a year has passed since this comment. Is there any update?

azaderdogan avatar Mar 12 '25 13:03 azaderdogan