Skip to content

[Koin Compiler Plugin] [Preview] #330

@arnaudgiuliani

Description

@arnaudgiuliani

Hello all 👋

I'm pleased to share a new upcoming part in Koin project: Koin Kotlin Compiler Plugin!

A Kotlin Compiler Plugin for Koin with automatic constructor injection. Write single<MyService>() instead of singleOf(::MyService) or single { MyService(get(), get()) } — the plugin handles the wiring at compile-time.

A native Kotlin Compiler Plugin that replaces the KSP compiler in Koin Annotations. Use @Singleton/@factory annotations (and others) — all resolved at compile-time by the Kotlin compiler, no KSP required.

Note: this note will be updated to keep you posted with the latest info, and let you help us test the latest Koin Plugin version 👍

Koin DSL & Annotations will get updates, thanks to the new plugin.

Here is an overview of what's coming 👇


Follow-up all about the Koin plugin: InsertKoinIO/koin#2333

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions