Describe the bug
I'll take the @Factory annotation as an example.
For any app that has a package name which starts with "it.", the @Factory annotations (and pretty much every annotation) won't work.
The auto generated file Default.kt will not find the package name because "it" has the ParametersHolder type.
To Reproduce
Steps to reproduce the behavior:
Create a project with "it.example.app" as package name
Create a class with the @Factory annotation
Build
Expected behavior
Build succeed
Fix
Just declare a different name in the auto generated variable instead of use the default Kotlin it name.
After fix example:
public val defaultModule : Module = module {
factory() { parametersHolder ->
it.example.app.TestClass()
}
}
Koin project used and used version (please complete the following information):koin version 3.5.3koin-annotations version 1.3.0
Describe the bug I'll take the
@Factory
annotation as an example. For any app that has a package name which starts with "it.", the@Factory
annotations (and pretty much every annotation) won't work. The auto generated fileDefault.kt
will not find the package name because "it" has the ParametersHolder type.To Reproduce Steps to reproduce the behavior:
@Factory
annotationExpected behavior Build succeed
Fix Just declare a different name in the auto generated variable instead of use the default Kotlin
it
name.After fix example:
Koin project used and used version (please complete the following information):
koin version 3.5.3
koin-annotations version 1.3.0