Skip to content

[jnigen] watch mode #2021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dcharkes opened this issue Feb 20, 2025 · 1 comment
Open

[jnigen] watch mode #2021

dcharkes opened this issue Feb 20, 2025 · 1 comment

Comments

@dcharkes
Copy link
Collaborator

Package build_runner has a watch mode, to enable generating files on save.

If we introduce a hook/generate.dart it would likely have a batch mode, and a watch mode.

FFIgen currently only has a batch mode, we should consider starting to support a watch mode.

This will require first solving:

@dcharkes
Copy link
Collaborator Author

(If we'd then hook/generate.dart scan the Dart files for // import com.example.foo.Foo.java grab those lines and put them in a generated jnigen config, and report both the Java files and the Dart files as dependencies, you'd add an import comment to a Dart file, wait a bit and then be able to call the Java function!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant