koin
koin copied to clipboard
Module.singleOf(crossinline constructor: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Need MORE!
I have 19 repositories currently to inject I NEED MORE pretty please OR alternative way
I have written a single procedure to visit all my Data table by table and do common cleanup/archiving etc. the issue is I need to inject mote than the 10 allowed!
Is there an Alternative way?
Any solutions?
@Morons
You can refactor and extract some of your dependencies to a class and inject that class as described here https://refactoring.guru/smells/long-parameter-list.
Or you write your extension on the Scope
class.
In Kotlin language, the arbitrary number of arguments for a function is 22. This is the maximum number of dependencies you can have. I encourage you to refactor your dependencies in your case
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.