https://kotlinlang.org logo
#moko
Title
# moko
r

Romão

11/22/2023, 7:26 PM
Hello, i have a very simple KMM project, implemented ViewModel using mokomvvm. Now adding Di using Koin. Is MokoVM compliant with Koin? If so, can you please point me to a sample project? thanks
d

Darron Schall

11/23/2023, 12:32 AM
Yes, moko-mvvm works fine with Koin. See https://github.com/icerockdev/moko-mvvm/issues/160 for how to create the
viewModelDefinition
for each platform. Once you have the
viewModelDefinition
declared, then you declare your view models with it in common code:
Copy code
viewModelDefinition { ExampleViewModel() }
👀 1
r

Romão

11/23/2023, 10:52 AM
thanks will try it later
Hi, known project sample you can share? thanks
Please have a look on the following repo, i'm learning KMM, the basics https://github.com/tmromao/usersv2/tree/koin