Closed yeoupooh closed 6 months ago
Hello @yeoupooh, indeed, it would be nice to implement a grammar parser someday. For now, I will publish a new version as soon as the tests pass. Thanks for your contribution :)
Currently, the CI system as well as Python scripts utilizes the example
app directory for tests, so I moved some Protobuf definitions into that folder. Will merge it soon!
Changes
I've found if enum and oneof are used in the message definition, then statement can be like
}\n\n// [RINF:RUST-SIGNAL]
in parsing proto file. That causes not generating send_signal_to_dart() function. So, my fix is simply string compare logic using contains() instead of startsWith(). I think in most cases it works. But I would suggest using a grammar parser in the future.Also added a unit test to verify the fix. To run it
flutter test
on flutter_ffi_plugin folder.Hope this helps.