koin icon indicating copy to clipboard operation
koin copied to clipboard

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

Results 458 koin issues
Sort by recently updated
recently updated
newest added

**Describe the bug** I have an activity test defined as ``` @RunWith(RobolectricTestRunner::class) @Config(instrumentedPackages = ["androidx.loader.content"], application = Application::class) class MainActivityTest: AutoCloseKoinTest() { @get:Rule val rule = createComposeRule() @get:Rule val coroutineRule...

status:checking

Fixed the Cast as described in title: ` java.lang.ClassCastException: androidx.compose.runtime.ComputedProvidableCompositionLocal cannot be cast to androidx.activity.ComponentActivity`

**Describe the bug** In my ViewModel i use need to specify an exception handler when launching a coroutine in viewModelScope as below `kotlin private val exceptionHandler = CoroutineExceptionHandler { _,...

question

i have turned on the options in startKoin for viewModelScopeFactory. My case has a very simple reproduction scenario given below The code below works ``` class Student { val name:...

status:wontfix
question

**Is your feature request related to a problem? Please describe.** Fix for cyclic dependencies, you should be able to use `Lazy` in constructors, but you'll get: `No definition found for...

status:wontfix
type:feature-proposal

**Describe the bug** The `org.koin.compose.viewmodel.koinActivityViewModel` call always fails since it incorrectly attempts to cast Jetpack Compose `androidx.activity.compose.LocalActivity` (which is always a `ProvidableCompositionLocal` directly to ComponentActivity (`viewModelStoreOwner = LocalActivity as ComponentActivity`)...

type:issue

**Describe the bug** Internal exception calling koinInject. Causes a crash immediately when called. ``` java.lang.NoSuchMethodError: No static method access$koinInject$lambda-0(Landroidx/compose/runtime/State;)Lkotlin/jvm/functions/Function0; in class Lorg/koin/compose/InjectKt; or its super classes (declaration of 'org.koin.compose.InjectKt' appears...

- fixed `koin_version`; - `compileOptions` fixed; - `jvmTarget` taken from `JavaVersion`; - warning for `resources.getColor` fixed; - `examples.jvm-prefs` fixed and added `koin_version` from versions file; - usage of `flatten` marked...

**Describe the bug** When using Koin Annotations, the modules code is generated in a hardcoded package org.koin.ksp.generated. We are enforcing a set of architectural rules for our Apps which include...

status:wrong_repo

**Title**: KSP Validation False Positive for Cross-Module Interface Bindings in KMP Project --- ### Environment - **Koin Version**: 4.0.2 - **Koin Annotations**: 2.0.0 - **Koin KSP Compiler**: 2.0.0 - **KSP...

status:wrong_repo