Skip to content
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

Binding generation #20

Closed
ethanblake4 opened this issue Apr 26, 2022 · 9 comments
Closed

Binding generation #20

ethanblake4 opened this issue Apr 26, 2022 · 9 comments

Comments

@ethanblake4
Copy link
Owner

ethanblake4 commented Apr 26, 2022

dart_eval should have a tool to scan an existing package (including the Dart and Flutter SDK) and auto-generate bindings. Maybe can use package:build?

(for anyone who finds this: If you need to write bindings right now I suggest using GitHub Copilot, it does a fairly good job generating the boilerplate)

@DenchikBY
Copy link

Hello! Is there are any eta for this? Wanna to use dio or other http client, but seems have to write too much boilerplate code for this, or mb exists some other workaround?

@ethanblake4
Copy link
Owner Author

@DenchikBY no eta sorry, I only work on this in my spare time. Easiest 'workaround' is if you create a function that does the data fetching with Dio you can pass it into an Eval function as an anonymous closure by simply wrapping with $Function and putting in the args array.

@DenchikBY

This comment was marked as off-topic.

@ethanblake4

This comment was marked as off-topic.

@narongchaiyakul

This comment was marked as off-topic.

@ethanblake4

This comment was marked as off-topic.

@narongchaiyakul

This comment was marked as off-topic.

@a-wallen
Copy link

Should this be a CLI option?

@ethanblake4
Copy link
Owner Author

Basic binding generator added to the CLI in v0.7.1 based on @a-wallen's work.

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

4 participants