Skip to content

Koin Annotations - Koin Compiler Plugin MigrationΒ #335

@arnaudgiuliani

Description

@arnaudgiuliani

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.

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 πŸ™

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions