Milad-Akarie / injectable

Code Generator for get_it
MIT License
562 stars 142 forks source link

Dependency Injection in microlibrary packages #139

Closed geovin89 closed 1 year ago

geovin89 commented 4 years ago

More of a knowledge question rather than an issue. My project is using a micro-library architecture where each layer is separated into different packages as shown here https://dart.dev/guides/libraries/create-library-packages. I would like to use injectable for dependency injection in this project but couldn't find a way to do it reading about it in the injectable library.

I would greatly appreciate it for any help that you could provide regarding this

GoncaloPT commented 4 years ago

I'm developing the implementation of such a feature. I'll do PR in the next week

GoncaloPT commented 4 years ago

I've finished a 0.1 version of it. you can see it in the following fork: https://github.com/GoncaloPT/injectable/blob/master/README.md#support-for-micro-packages I'll talk to injectable owners to see their interest in pushing this as a new feature... @Milad-Akarie what do you think?

rafampessoa commented 3 years ago

Very interesting on it

fryette commented 3 years ago

Any news on it? @geovin89

jhancock4d commented 3 years ago

Ditto. I'd love to see this so that we can inject without manually having to define them in a module.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions