1 min read

What if I told you that you don’t need to use expect/actual in Kotlin Multiplatform?

What if I told you that you don’t need to use expect/actual in Kotlin Multiplatform?
Photo by Erik Mclean / Unsplash

Platform-specific Koin modules can do the job better.

Expect/actual is great when your project is small. However, as your codebase grows, managing platform-specific dependencies quickly becomes a headache.

That’s where Koin modules shine. 💪 They let you replace expect/actual with a more flexible and scalable approach — keeping your architecture nice and clean.

Here's my KMP project where I implemented this approach.

See the slides with explanation below.