Ori Spokoini
09/08/2025, 8:18 AM@KoinViewModel
class ProfileEditorViewModel(
private val userRepository: UserRepository
) : ViewModel()
And in composeApp/.../FakeUserRepo.kt
@Factory
class FakeUserRepo() : UserRepository
Currently I’m using @Provided to suppress the injection error and then manually loading FakeUserRepo. I also tried ComponentScan, but it doesn’t seem to work across modules.
What’s the recommended way to handle this?arnaud.giuliani
09/10/2025, 3:02 PMarnaud.giuliani
09/10/2025, 3:02 PM@Configuration to let you gather modules within same space - https://insert-koin.io/docs/reference/koin-annotations/modules#configuration-management-with-configurationOri Spokoini
09/11/2025, 8:35 AMFakeUserRepo is in composeApp), so core.ui subproject scanner doesn’t know about it. Is it possible to inject a tagged class from composeApp/otherApp subprojects (without @Provided), and do you have any examples?arnaud.giuliani
09/11/2025, 8:55 AM