You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated _defaultModule file looks like this:
publicval_defaultModule:Module get() = module {
// .... other dependencies
defineRepositoryA() // not defined
defineRepositoryB() // not defined
defineRepositoryC() // not defined
}
Expected behavior
It looks like that KSP does not generate the method implementations for scoped dependencies while the other dependencies (with Single and Factory annotations) get generated like:
I do not know the constraints of defining methods for each repository one-by-one, but it looks like that the Scoped dependencies are grouped in 1.3.1, while in 1.4.0, each dependency has its own defineDependency-like method, which may restrain from grouping them together correctly.
Koin project used and used version (please complete the following information): io.insert-koin:koin-annotations-bom:1.4.0 and io.insert-koin:koin-annotations-bom:1.3.1
Additional moduleDefinition
None
The text was updated successfully, but these errors were encountered:
Describe the bug
Scoped functions will not get properly generated in default module resulting in "Unresolved reference
defineRepositoryA
" error.To Reproduce
Starting code:
The generated
_defaultModule
file looks like this:Expected behavior
It looks like that KSP does not generate the method implementations for scoped dependencies while the other dependencies (with Single and Factory annotations) get generated like:
Correct behavior (1.3.1) generating Kotlin Koin default module code:
I do not know the constraints of defining methods for each repository one-by-one, but it looks like that the
Scoped
dependencies are grouped in 1.3.1, while in 1.4.0, each dependency has its owndefineDependency
-like method, which may restrain from grouping them together correctly.Koin project used and used version (please complete the following information):
io.insert-koin:koin-annotations-bom:1.4.0
andio.insert-koin:koin-annotations-bom:1.3.1
Additional moduleDefinition
None
The text was updated successfully, but these errors were encountered: