koin-annotations
koin-annotations copied to clipboard
@ComponentScan not properly generating expect / actual classes (2.0.0)
trafficstars
Describe the bug Using expect / actual classes as defined in https://insert-koin.io/docs/reference/koin-annotations/kmp does not generate the classes.
There are 2 scenarios where this is causing issues:
- Having expect / actual classes in a module generates the module in only the platform specific folder and not
commonMain - Adding a second library that also uses KSP prevents generation of expect / actual classes altogether
Both of the above scenarios are working as of 1.3.1
To Reproduce Reproducer project available @ https://github.com/griffinsorrentino/koin-issue
Steps to reproduce the working config:
- Go to the
working-1.3.1branch - Sync gradle
- Clean the project
- Run the project
Steps to reproduce scenario 1 issue:
- Go to the
broken-without-dep-2.0.0branch - Sync gradle
- Clean the project
- Run the project
- Open the build folder and observe that the generated file for
commonMainis missing. You can no longer use thePlatformHelpermodule withincommonMain
Steps to reproduce scenario 2 issue:
- Go to the
broken-2.0.0branch - Sync gradle
- Clean the project
- Run the project
- Open the build folder and observe that while the
commonMainfile was generated, the module is empty.
Expected behavior Classes should be generated properly, as they were in 1.3.1
Koin project used and used version (please complete the following information):
koin-core version 4.0.2
koin-annotations version 2.0.0