koin-annotations
koin-annotations copied to clipboard
Koin Annotations - About Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform insert-koin.io
**Describe the bug** There is a missing new line between `MODULE_HEADER` and header imports. Generated code example: ```kotlin import org.koin.dsl.*import org.koin.compose.viewmodel.dsl.viewModel ``` **To Reproduce** Steps to reproduce the behavior: 1....
make @Scope repeatable to configure multiple scopes e.g. ```kotlin @Scope(MyScope::class) @Scope(MyAnotherScope::class) class MyClass(val d : MyDependency) ``` will generate: ```kotlin scope { scoped { MyClass(get()) } } scope { scoped...
**Is your feature request related to a problem? Please describe.** I'm working on an SDK which uses Koin Annotations, and I'd like to understand what proguard rules are needed, if...
**Describe the bug** After updating to version 2.0.0-RC3 it started thwroing an error when launching iOS version. Android works correctly. ``` org/koin/ksp/generated/KoinMeta-cbe4b97d.kt:312:14: error: Conflicting declarations: val _KSP_TestUiScreensLoginLoginViewModel: Unit ``` **Expected...
**Describe the bug** After upgrading to Kotlin 2.1.20 and open ksp2, it build failed: ``` Reason: Task ':composeApp:kspDebugKotlinAndroid' uses this output of task ':composeApp:kspCommonMainKotlinMetadata' without declaring an explicit or implicit...
I'm migrating from Hilt and it has one great feature that is missing in Koin. Inside the library, you can create a module that will be part of the default...
**Describe the bug** I was trying to write a KSP code gen for [Circuit](https://github.com/slackhq/circuit) with Koin. I was able to generate code properly but looks like somehow default module is...
@ComponentScan behavior with no value provided has changed since 2.0.0-RC3 and can break compilation
**Describe the bug** Created from [this comment](https://github.com/InsertKoinIO/koin-annotations/pull/131#issuecomment-2677001861). Koin started to generate `defaultModule`s in my project, in multi-module projects it'd be normal to generate multiple default modules, which is causing naming...
**Describe the bug** Using expect / actual classes as defined in https://insert-koin.io/docs/reference/koin-annotations/kmp does not generate the classes. There are 2 scenarios where this is causing issues: 1. Having expect /...
**Describe the bug** When updating from 2.0.0-Beta05 to 2.0.0-RC4, a lot of dependencies using Lazy are notified by ksp that produces a dependency cycle. When marking KOIN_CONFIG_CHECK as false, the...