Is there a KMM(using UT in `commonTest` sourceset)...
# koin
a
Is there a KMM(using UT in
commonTest
sourceset) way to verify the koin modules? As mentioned for junit4 in the link https://insert-koin.io/docs/quickstart/android-viewmodel#verifying-your-app
a
not for now. Reflection is needed to help extract meta data from all your config classes. This is only available in JVM. Kotlin KMP is quite limited
a
Got it. Thanks for the update. Is there tracking issue for this on jb side? I think theoretically extraction Kotlin meta can happen w/o kotlin reflection(it's just a string stored in Metadata annotation which can be stored in other formats as well) Also is there other way to validate the modules without the need of reflection?
Also do annotation based validation suffer from same limitation? I remember we can also validate the same compile time by passing the arg to ksp compiler
a
annotation processing with ksp allows to catch all meta data (koin annotations project). Working on some new DSL part (koin-fu project) to see how we can leverage better DSL (likely to use compiler plugin at some point)
👍 1