Questions tagged [anvil-di]

Use for projects using Anvil Kotlin compiler plugin for the dependency injection.

Anvil is a Kotlin compiler plugin to make dependency injection with Dagger easier by automatically merging Dagger modules and component interfaces. Check the GitHub project for more details

2 questions
6
votes
1 answer

How it's supposed to use Anvil in multi module Android projects

I'm going to use Anvil in my project. https://github.com/square/anvil But I can't figure out what is desired model of usage for it? Should I have a single global AppScope and merge all bindings from every :core and :feature module into it? Thus,…
Maxim Alov
  • 604
  • 4
  • 14
0
votes
0 answers

Anvil: contribute multibinding in a module (not in component)

I have defined this classes for contributing some objects: interface NavGraphScope interface NavGraphIdProvider { val navGraphId: Int } and have some implementations like @ContributesMultibinding(NavGraphScope::class) object…
beigirad
  • 4,986
  • 2
  • 29
  • 52