Closed congvc-dev closed 4 months ago
My workaround is manually create binding in FeatureModule
:
@Module
@ComponentScan(..)
public class FeatureModule {
@Single
internal provideB(): B = A()
}
did you put the package in @ComponentScan(..)
?
also it's in wrong repo. But that's ok if we solved it.
@arnaudgiuliani I did. Would a sample repo help you reproduce the issue?
yes please 🙏
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.
Describe the bug Hi everyone, I currently have a problem in my android project. All the necessary information is located in the Reproduce section. I hope you can diagnose the problem and fix the issue.
To Reproduce Steps to reproduce the behavior:
:app
application module:api
,:impl
, both are android library modules and uses these Koin components:koin-android
,koin-core
,koin-ksp-compiler
andkoin-annotations
:impl
uses:api
.:app
uses both of them:api
, createinterface B
. In:impl
, create@Single class A : B
:impl
, create@Module @ComponentScan class FeatureModule
to collect all the components:app
create a@Module(includes = [FeatureModule::class]) class ApplicationModule
[ksp] Unable to process:org.koin.compiler.BuilderProcessor: A
in task:impl:kspDebugKotlin
:app:compileDebugKotlin
Expected behavior
:impl
module and no compile time errors/waringsKoin module and version (in my
libs.versions.toml
file): ksp = "1.9.21-1.0.16" koinAnnotation = "1.3.0" koinBom = "3.5.1" koinCompiler = "1.3.0" androidGradlePlugin = "8.2.0" gradleWraper: v8.2Snippet or Sample project to help reproduce