This story was originally published on HackerNoon at:
https://hackernoon.com/effortless-assisted-injection-in-multi-module-android-projects-introducing-anvil-utils.
Step by step reducing boilerplate required to make assisted factories work in a multi-module android project.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#android-development,
#kotlin-development,
#dagger-2,
#kotlin,
#dependency-injection,
#anvil-utils,
#multi-module-projects,
#what-is-anvil-utils, and more.
This story was written by:
@ilyagulya. Learn more about this writer by checking
@ilyagulya's about page,
and for more stories, please visit
hackernoon.com.
Anvil is a Kotlin compiler plugin which helps to drastically reduce the boilerplate needed to use Dagger 2 in your application.
Also, if properly configured, it can improve build times in your application by removing the requirement to run Dagger 2 annotation processor in your feature modules.