Kodein

Painless Kotlin Dependency Injection

MIT License

Stars
3.1K

Bot releases are hidden (Show)

Kodein - 7.22.0 Latest Release

Published by romainbsl 5 months ago

Kodein - v7.21.2

Published by romainbsl 9 months ago

Compose Multiplatform

  • 1.6.0-alpha01
  • Fix Kotlin/Wasm targets
Kodein - v7.21.1

Published by romainbsl 11 months ago

Kodein - v7.21.1

Published by romainbsl 11 months ago

Kodein - 7.21.0

Published by romainbsl 11 months ago

Core

  • Kotlin 1.9.20

Android

  • AGP 8.2.0-rc03

Compose Multiplatform

  • 1.5.10-dev-wasm02

Full Changelog: https://github.com/kosi-libs/Kodein/compare/7.20.2...7.21.0

Kodein - 7.20.2

Published by romainbsl over 1 year ago

Jetpack Compose

  • Fixed #435 : generics were erased while retrieving Android ViewModel on Compose.
Kodein - 7.20.1

Published by romainbsl over 1 year ago

⚠️ 7.20.0 Has been badly published, Please use THIS version instead!

  • Jetpack Compose
    Creation of 1 modules to handle AndroidX ViewModel retrieval, eventually scoped within the NavGraph.

kodein-di-framework-android-x-compose : Works with AndroidX ViewModel and Navigation extensions.

Kodein - 7.20.0

Published by romainbsl over 1 year ago

⚠️ DO NOT USE : the new modules have been wrongly published.

Use 7.20.1 instead!

  • Jetpack Compose
    Creation of 2 modules to handle AndroidX ViewModel retrieval, eventually scoped within the NavGraph.

kodein-di-framework-compose-android: Works with AndroidX ViewModel

kodein-di-framework-compose-android-navigation Works with AndroidX ViewModel AND Jetpack Compose Navigation

Kodein - 7.19.1

Published by romainbsl over 1 year ago

  • Compose
    • Add a rememberViewModel factory retrieval function
Kodein - 7.19.0

Published by romainbsl over 1 year ago

  • Core
    • Kotlin 1.8.10
  • Compose
    • Multiplatform Compose 1.3.1
    • MacOS targets
Kodein - 7.18.0

Published by romainbsl almost 2 years ago

Enable Compose Multiplatform 1.3.0-rc2 with Kotlin 1.8.0 compatibility.

Kodein - 7.17.0

Published by romainbsl almost 2 years ago

  • Kotlin 1.8.0
  • Ktor 2.2.1
  • JS: Since Legacy backend as been deprecated, Kodein will only support IR.

⚠️ Compose capabilities are disable as the compiler plugin has not been released yet.
We should be able to re-enable it in 7.18.0 as soon as a new version of compiler plugin will be released.

Kodein - 7.16.0

Published by romainbsl almost 2 years ago

val di = DI {
    bindSet<Configuration> {
        add { provider { FooConfiguration() } }
        bind { singleton { BarConfiguration() } }
    }
}
Kodein - 7.15.1

Published by romainbsl almost 2 years ago

Enable Compose Multiplatform 1.2.0.

⚠️ Compose Multiplatform 1.2.0 is not compatible with Kotlin/JS 1.7.20, but you can use it with Kotlin 1.7.10.

Kodein - 7.15.0

Published by romainbsl about 2 years ago

  • Kotlin 1.7.20

⚠️ Compose capabilities are disable as the compiler plugin has not been released yet.
We should be able to re-enable it in 7.15.1 as soon as a new version of compiler plugin will be released.

Kodein - 7.15.0-kotlin-1.7.20-RC

Published by romainbsl about 2 years ago

⚠️ Compose capabilities are disable as the compiler plugin has not been released yet.
We should be able to re-enable it in 7.15.1 as soon as a new version of compiler plugin will be released.

Kodein - 7.14.0

Published by romainbsl over 2 years ago

  • Gradle 7.5
  • Kotlin 1.7.10
  • Enable compatibility with non-hierarchical projects
Kodein - 7.13.1

Published by romainbsl over 2 years ago

Compose Multiplatform 1.2.0-alpha01-dev745 with Kotlin 1.7 compatibility

Kodein - 7.13.0

Published by romainbsl over 2 years ago

CORE:
- Kotlin 1.7.0
- Deprecation cycle

⚠️ Compose capabilities are disable as the compiler plugin has not been released yet.
We will re-enable it in 7.13.1 as soon as a new version of compiler plugin will be released.

Kodein - 7.12.0

Published by romainbsl over 2 years ago

  • CORE

    • Kotlin 1.6.21
    • Constructor reference based binding (#408 thanks to @rocketraman)
    DI {
        bindSingleton { new(::PersonService) }
    }
    
    • Delegate binding (#406)
    DI {
        bindSingleton { Cls() }
        delegate<Cls>().to<Cls>()
    }
    
    • Create modules with delegate (#393)
    val myModule by Module { // implicitly named "myModule"
        bind { singleton { Cls() } }
    }
    
  • KTOR

    • Moved to 2.0: This has no impact for you, all the breaking changes are internals.
  • COMPOSE

    • Upgrade to 1.2.0-alpha01-dev683
  • EXTENSION:

    • Improve ConfigurableDI (#395 & #396)
  • Documentation fixes