The Koin team is excited to announce the release of Koin 4.0. This new version brings improvements across our Kotlin, Android, Compose, and multiplatf

Koin 4.0 — Official Release

submited by
Style Pass
2024-09-25 20:00:10

The Koin team is excited to announce the release of Koin 4.0. This new version brings improvements across our Kotlin, Android, Compose, and multiplatform APIs.

This new version, built on Kotlin 2.0, introduces a wide range of enhancements and Compose Multiplatform features, alongside important deprecations and the removal of old APIs.

This update leverages Kotlin’s latest features, especially in the multiplatform space with consistent UUID generation across platforms.

Make sure to setup your project with at least version 2.0.20, as using earlier versions might lead to crashes due to the new KMP API.

UUID generation is now fully supported for all KMP targets, using Kotlin’s kotlin.uuid.Uuid API. This ensures that KoinPlatformTools.generateId() produces unique, platform-independent UUIDs across all environments.

We’re really excited about Koin-Fu. For now, it’s very experimental. The idea is to start to rethink the Koin DSL. This would address the limitations of constructor DSL, where we need to maintain a static combination of types, which blocks us from allowing you to pass nullable arguments.

Leave a Comment