Open peter-kovacs-accedo opened 7 months ago
Is it Java compat extension?
No, I'm using those for kotlin. The issue is that Koin cannot resolve types which are coming from other packages.
Before this update I needed to use
protected val myService: MyService by inject(MyService::class.java)
With the changes it's enough to call:
protected val myService: MyService by inject()
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.
Just checking in, Did you evaluate this PR?
In my project when I want to use
get()
orinject()
functions I have to specify types explicitly, which makes huge overhead in the project.See PR: https://github.com/InsertKoinIO/koin/pull/1772
For more context: I'm working on a feature based application, where lots of interfaces can be injected with different implementations (only one by each sub-project) and it's handled when a dependency is not present on a given sub-project. When I want to use
inject()
orget()
I'm getting errors like:However it's simple to solve.