kotlin-inject
Dependency injection lib for kotlin (by evant)
dikt
Simple and powerful DI for kotlin multiplatform (by sergeshustoff)
Our great sponsors
kotlin-inject | dikt | |
---|---|---|
9 | 7 | |
1,063 | 138 | |
- | - | |
8.0 | 6.0 | |
21 days ago | 5 months ago | |
Kotlin | Kotlin | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kotlin-inject
Posts with mentions or reviews of kotlin-inject.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-02.
-
Alternative to Hilt for KMM but not Koin
I haven't used it myself you could check out: https://github.com/evant/kotlin-inject
-
Multiplatform dependency injection libraries equivalent to Dagger/Anvil
I would suggest looking at Kotlin-Inject, it's a compile-time DI like Dagger and it's really pleasant to use.
-
Is there extra benefits of using Koin instead of Dagger Hilt in KMM?
Dagger/ hilt will not work on kmm being that they are java projects. One project that is similar to them though on kmm is kotlin-inject which might be something to look at.
-
Yet another DI for kotlin multiplatform
I'd say it's second after this one. That one has multiplatform support in snapshot version, while mine is in alpha)
-
Yet another DI library, bit this time it's not a service locator
Interesting! Author of kotlin-inject here, I had originally looked at writing a compiler plugin and using IR but the lack of documentation and a non-stable api scared me away. Cool that you were able to get it to work.
dikt
Posts with mentions or reviews of dikt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-02.
- Alternative to Hilt for KMM but not Koin
-
Multiplatform dependency injection libraries equivalent to Dagger/Anvil
You might want to check this out https://github.com/sergeshustoff/dikt. The repo also lists other alternatives that you can look into.
-
best compiler plugins?
Here is my di compiler plugin https://github.com/sergeshustoff/dikt. Half the time I had no idea what the hell I'm doing with all that undocumented API.
- Yet another DI for kotlin multiplatform
- Yet another DI library, bit this time it's not a service locator
What are some alternatives?
When comparing kotlin-inject and dikt you can also consider the following projects:
koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
Kodein - Painless Kotlin Dependency Injection
anvil - A Kotlin compiler plugin to make dependency injection with Dagger 2 easier.
Dagger2 - A fast dependency injector for Android and Java.
ksp - Kotlin Symbol Processing API
motif - A simple DI API for Android / Java
NotyKT 🖊️ - 📒 NotyKT is a complete 💎Kotlin-stack (Backend + Android) 📱 application built to demonstrate the use of Modern development tools with best practices implementation🦸.
PeopleInSpace - Kotlin Multiplatform project with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, Compose for Web and Kotlin/JS + React clients along with Ktor backend.