What is the best layer to declare all the Hilt mod...
# android-architecture
m
What is the best layer to declare all the Hilt modules in a multi-module architecture? app module or domain?
j
by definition it would be impossible to declary any Hilt module in the domain layer
domain does not know about any other layer, so it is not able to provide any implementation and/or binding interfaces with classes
a
This might help. Look for Frameworks and Drivers section. Hilt and Dagger are dependency injection frameworks. https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html
👍 1