Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComponentScan generates an empty module when using expect/actual classes #191

Open
mattegoghero opened this issue Nov 23, 2024 · 0 comments

Comments

@mattegoghero
Copy link

mattegoghero commented Nov 23, 2024

Describe the bug
When creating a @module with @componentscan in a KMP project it seems that it's completely ignoring the expect/actual classes (inside the package specified to @componentscan) that is supposed to include in the annotated module.

To Reproduce
Download the sample project that I attached, it should contain all the configuration provided in the guide.
Launch: ./gradlew clean kspCommonMainMetadata
Go to: org/koin/ksp/generated/MyModuleGencom$test$koin$annotations.kt
Look at the generated module, it should be empty.

Expected behavior
The generated module should contain the singleton definition for MyComponent

Koin project used and used version (please complete the following information):
ksp: 2.0.20-1.0.25
koin: 4.0.0
koin-annotations: 2.0.0-beta02

The test project:
KoinAnnotationTest 2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant