anvil
A Kotlin compiler plugin to make dependency injection with Dagger 2 easier. (by square)
dikt
Simple and powerful DI for kotlin multiplatform (by sergeshustoff)
Our great sponsors
anvil | dikt | |
---|---|---|
7 | 7 | |
1,033 | 125 | |
1.7% | - | |
8.5 | 6.7 | |
5 days ago | 7 days 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.
anvil
Posts with mentions or reviews of anvil.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-02.
-
Whetstone: A DI framework for Android that simplifies working with Dagger 2 using Anvil
In terms of of what Anvil is I'd really recommend reading the README It's a lot more flexible than Hilt and provides a code generation hook so if you have a codebase specific DI pattern you can also set that up to be auto-generated with a custom annotation if you desire.
-
Anvil, generating factories without kapt, and module structure.
Recently I've been looking into Anvil as an alternative to Dagger and realised that it can handily generate factories for you without kapt. That brings some exciting potential for build time improvement so I was eager to try it out. However very quickly I got stuck.
-
Multiplatform dependency injection libraries equivalent to Dagger/Anvil
I'm currently using Dagger and Anvil for my DI needs. It's been working really well, especially around what Anvil permits in terms of multibindings defined on the type declaration rather than in a module. For example:
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 anvil and dikt you can also consider the following projects:
kotlin-inject - Dependency injection lib for kotlin
Kodein - Painless Kotlin Dependency Injection