-
- Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
Hello all π
Happy to announce the Koin Compiler Plugin β a native Kotlin K2 compiler integration for Koin dependency injection.
What changes
- Compile-time auto-wiring (no runtime reflection)
- Works with both DSL and Annotations
- No more KSP configuration
- Full Kotlin Multiplatform support
- Ktor & Compose Multiplatform ready
You need last Koin 4.2.0-RC1 and Kotlin 2.3.20-Beta1.
As Koin Annotations users, you can check and upgrade now. Remove KSP, add the compiler plugin, keep your annotations unchanged. You will see that @ComponentScan can scan through all compilation units (commonMain, nativeMain ...). There will be fewer problems with KSP.
- Migration KSP to Koin Compiler Plugin guide: https://insert-koin.io/docs/migration/from-ksp-to-compiler-plugin/
- Koin Plugin Setup: https://insert-koin.io/docs/intro/koin-compiler-plugin
- Getting Started Samples with Koin Plugin: https://github.com/InsertKoinIO/koin-getting-started
More official launch article: https://medium.com/@giuliani-arnaud/koin-powered-by-kotlin-compiler-0722f1cc96a4
If you have any feedback, post here or in separated issue π
Reactions are currently unavailable