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

CLI: compile external packages #21

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

CLI: compile external packages #21

ethanblake4 opened this issue Apr 26, 2022 · 7 comments

Comments

@ethanblake4
Copy link
Owner

The dart_eval CLI should compile app dependencies from Pub, etc. Data about packages created by "pub get" is in .dart_tool/package_config.json.

@Chappie74
Copy link

Hey thanks for the work you've done. Any timeline on this?

@ethanblake4
Copy link
Owner Author

ethanblake4 commented Sep 14, 2022

@Chappie74 is there specific package(s) you want to be able to use? Right now, adding this wouldn't be that useful because most Pub packages use features that dart_eval doesn't support yet, but if you have a specific package in mind I can work on supporting it.

(Also, most existing packages can be used already by creating a bridge library like flutter_eval is, but I understand this isn't ideal)

@Chappie74
Copy link

Hey yes. So i've created this package .
Essentially I want to use it in another application, which allows the user to write/execute dynamic code to say move the mouse.
I previously had my setup in python, and could just have the user submit python code calling the various functions of the package and then just run it in eval. Similar functionality is needed.

Thanks for the reply.

@ethanblake4
Copy link
Owner Author

@Chappie74 Ok, well it's not a very complicated plugin but taking a quick look it'll still be a while before I get to all of that (exceptions, asserts, and platform interfaces in particular). Probably ~3-4 months.

I'd definitely recommend creating a bridge library if you need it sooner, it would be rather easy for that plugin since it has so few methods. Admittedly documentation is pretty sparse but if you just look at the bridging example in the example directory and the source code of flutter_eval it shouldn't take more than a couple hours to figure out. Happy to help over in Discussions if you have any trouble.

@Chappie74

This comment was marked as off-topic.

@ethanblake4

This comment was marked as off-topic.

@ethanblake4
Copy link
Owner Author

Support for Pub packages added in v0.7.0

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

No branches or pull requests

2 participants