Kodein icon indicating copy to clipboard operation
Kodein copied to clipboard

Painless Kotlin Dependency Injection

Results 20 Kodein issues
Sort by recently updated
recently updated
newest added

```kotlin class MainActivity : ComponentActivity(), DIAware { override val di by closestDI(AppEntry.instance) @Preview(showBackground = true) @Composable fun DefaultPreview() { withDI(di = androidContextDI()) { Greeting("Android") } } } ``` Using previews...

After #361. We need to provide a simpler et easier API to search bindings from the container tree. Furthermore, we shall document this usage!

In our code we create multiple caches and also put them in a set so that we can clear all caches. So I have a function that looks like this:...

[Android's D8 desugars java.time classes on devices running lower than API 26](https://jakewharton.com/d8-library-desugaring/#backporting-types) and this seems to be tripping up `typeToken`. Using the erased version in previous versions of Kodein worked...

Got an ANR report in the Play Console regarding Kodein. Looks like it may have deadlocked: Motorola Moto Z(3) (messi), 3840MB RAM, Android 9 ``` "main" prio=5 tid=1 Runnable |...

Jetpack Compose - View model on init recreate, on cleared not working. [https://github.com/AdeDom/KodeinCompose](url) How do I handle?

Basically, since I upgraded to Kodein 7.14.0, I'm getting that error. I have an app builder that receives a module that I'd want to be able to override previous bindings....

In release notes for release 7.14.0 declared support for compose 1.2.0-alpha01-dev745, but targets for ios now unsupported: `:client:ios:uikitArm64Main: Could not resolve org.kodein.di:kodein-di-framework-compose:7.14.0.`

I am working on a project with the android module enabled `import(androidXModule(this))` but I need to provide a new secure SharedPreferences implementation without removing `import(androidXModule(this))` how do I disable the...