Dagger – Hilt : Do we need to mark all activities with @AndroidEntryPoint

  android, dagger-hilt, dependency-injection, kotlin

So my question is as I am getting started with Hilt, do we need to mark all activities with @AndroidEntryPoint annotation or can we just create a BaseActivity and extend it to AppCompactActivity and mark that single class as the entry point?

Will this work? and what, if any, are the drawback of this style.

Thanks.

Source: Android Questions

LEAVE A COMMENT