Describe the bug
Highlighting in Android Studio doesn't work when using generated resources in a multi-platform project
To Reproduce
Steps to reproduce the behavior:
Add koin-annotations to a multiplatform project.
Add all necessary modules.
Try to register modules.
See error
Expected behavior
Highlighting in Android Studio works as expected.
Actual behavior
Highlighting in Android Studio doesn't work as expected.
This happens because when I add generated platform folders to srcDir, Android Studio still expects the common path:
I add kotlin.srcDir("build/generated/ksp/android/androidDebug/kotlin") for android
and kotlin.srcDir("build/generated/ksp/desktop/desktopMain/kotlin") for desktop
And Adnroid studio sees them:
But still doesn't see generated code from common code:
Important
I can build the project, this issue affects only visual representation.
koin-core version 3.2.0-beta-1koin-annotations version 1.0.0-beta-2
Describe the bug Highlighting in Android Studio doesn't work when using generated resources in a multi-platform project
To Reproduce Steps to reproduce the behavior:
Expected behavior Highlighting in Android Studio works as expected.
Actual behavior Highlighting in Android Studio doesn't work as expected.
This happens because when I add generated platform folders to
srcDir
, Android Studio still expects thecommon
path: I addkotlin.srcDir("build/generated/ksp/android/androidDebug/kotlin")
for android andkotlin.srcDir("build/generated/ksp/desktop/desktopMain/kotlin")
for desktopAnd Adnroid studio sees them:
But still doesn't see generated code from common code:
Important I can build the project, this issue affects only visual representation.
koin-core version 3.2.0-beta-1
koin-annotations version 1.0.0-beta-2
Additional Sample code: https://github.com/DoTheMonkeyBusiness/koinAnnotationIssue/tree/multiplatform_exception