So i’m trying to use anvil to build a 3 layer application graph where different libraries can contribute. I plan on having a shared set of scopes:
• ApplicationScope
• ActivityScope
• FragmentScope
I can use ContributesTo to add inject methods to the scopes, but i’m curious what’s the best way to get hold of the actual instances, since the host app would be the one that would know about the actual factories. I was thinking of defining the components in the library as well, but not running the anvil compiler there and instead just running it in the host app.