dart-lang / native

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

Automate generation of lists of package:objective_c exports #1249

Open liamappelbe opened 3 months ago

liamappelbe commented 3 months ago

package:objective_c exports a bunch of generated classes/enums etc. The lists of these exports are duplicated in a few different places. We have a test that verifies all the lists match, but it would be better to automatically generate them. The tests uses regexps to find all the important things in the generated file, so we could instead use those regexps to generate the lists directly in pkgs/objective_c/tool/generate_code.dart.

Relevant files:

liamappelbe commented 3 months ago

Btw pkgs/objective_c/ffigen_objc.yaml probably doesn't need to explicitly list all the interfaces etc