-
Notifications
You must be signed in to change notification settings - Fork 54
Run Flutter FFI plugin template ffigen on CI #433
Conversation
|
The test currently fails because is not in Flutter yet. |
Closes: * #105513 Will add a regression test on the FFIgen repo after merge: * dart-archive/ffigen#433
|
@liamappelbe PTAL |
liamappelbe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with comments.
test_flutter/flutter_template_tests/flutter_plugin_ffi_test.dart
Outdated
Show resolved
Hide resolved
| final bindingsGeneratedCopyUri = | ||
| libDirUri.resolve('${projectName}_bindings_generated_copy.dart'); | ||
|
|
||
| await Task.serial([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this Task stuff seems like a lot of boilerplate. Why not just write a runProcess and copyFile function, and do:
await runProcess(...);
await copyFile(...);
await runProcess(...);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had this laying around in another project. I can simplify it for this test if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge as-is if you're too busy to clean it up. It's only a test after all. I've already approved.
Integration test for: