Open Pschsch opened 1 year ago
The @KoinViewModel
annotation target the Android platform for now. This is why the annotation is in package org.koin.android.annotation
. But then I agree, nothing prevents from using it in KMP project in common part for example.
any update?
Describe the bug Koin Annotations use org.koin.androidx.viewmodel package for all platforms to generate viewModel definition
To Reproduce Steps to reproduce the behavior:
Expected behavior It's a little difficult to say, what declaration should be in jvm, ios and other platforms. Maybe single? UPD: Exactly, factory
Koin project used and used version (please complete the following information): [e.g]:
koin-annotations version 1.2.2
Additional moduleDefinition