dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
115 stars 40 forks source link

[swift2objc] Filtering #1394

Open liamappelbe opened 1 month ago

liamappelbe commented 1 month ago

Like ffigen, swift2objc should have config options that let the user choose which APIs they want to generate wrappers for. Real Apple APIs have so many classes and methods that it's not practical to generate everything.

The Config should have callbacks that the user can set which return whether a particular class/struct/method/property should be generated. By default we should exclude everything.

liamappelbe commented 1 month ago

It'd be nice if we can do #1358 first and then implement filtering as a transformer