This is a sample of using Dagger Hilt in a multi-module project.
But, unfortunately, Dagger Hilt doesn't work with Dynamic Feature Modules.
Therefore, DfmHiltActivity
will crash with a ClassCastException
.
In Dynamic Feature Modules, you still need to plain Dagger like
DfmDaggerActivity.
cf. https://developer.android.com/training/dependency-injection/hilt-multi-module#dfm