Koin 4.0 has rolled out with a series of technical enhancements aimed at refining the framework across Kotlin, Android, Compose, and multiplatform APIs. Built on Kotlin 2.0, this release introduces important updates:
🔸 UUID Generation: Ensures unique, platform-independent UUIDs across all environments with Kotlin’s kotlin.uuid.Uuid API.
🔸 Internal Optimizations: Includes enhanced context passing for dynamic resolution, improved thread-safe collections, and migration to Kotlin’s Time API for internal timings.
🔸 ViewModel API: Expanded to a full multiplatform approach, centralizing ViewModel APIs for broader reuse across platforms.
🔸 AndroidX Startup: Optimizes application loading times significantly with up to 40% faster startup through the new koin-androidx-startup package.
🔸 Activity & Fragment Scope Fixes: Ensures robust scope management and lifecycle consistency in Android applications.
🔸 Compose API Improvements: Extends support for multiplatform features, stabilizes Wasm integration, and enhances lifecycle handling within Compose.
🔸 Testing API Enhancements: Introduces parameter injection for dynamic parts verification and automatic code proposals to fix missing definitions during testing.
🔸 Ktor API Updates: Aligns with the latest Ktor versions, enhances scope management, and prepares for upcoming Ktor 3 integrations.
Deprecations and API cleanup are part of this update, streamlining Koin for future advancements and removing outdated elements. 🔄🗑️
For detailed guides and more on what to expect, check this link! 📄🔗