-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Koin dsl #3966
Conversation
We are still interested, will not be closed. As usual, time reduced. Thanks a lot. EDIT: will ping you when conflicts must be solved to test/merge |
I'm not able to fix the conflicts because I don't have write access to the repository anymore 😢 I could try to cherry-pick and create a new PR from my fork though. Otherwise, you will need to fix the conflicts yourselves. So up to you 👍 |
We'll try to fix first. Thanks again for your engagement. |
Should be fixed 👍 |
b7d0df9
to
e76e228
Compare
Rebased. Little consideration: We can't inject over 10 dependencies using koin dsl. For example, that's why I kept |
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.
Some tiny comments here @abelgardep 🍻
owncloudApp/src/main/java/com/owncloud/android/dependecyinjection/LocalDataSourceModule.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/dependecyinjection/LocalDataSourceModule.kt
Outdated
Show resolved
Hide resolved
Changes applied and rebased @JuancaG05 🍻 |
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.
LGTM! Thanks for your contribution @abelgardep! 🚀
Koin now offer a new kind of DSL keyword that allow you to target a class constructor directly, and avoid to to have type your definition within a lambda expression.
Use koin constructor dsl to inject view models, repositories, data sources etc.. Its a little bit cleaner now, and no need to introduce
get() get() get()
over the whole module.QA