To add a Hilt module you need to do this:
@Module
@InstallIn(SingletonComponent::class)
abstract class MyModule{
...
}
There are different scopes such as ActivityComponent, ViewModelComponent, etc, but it's not clear to me when would I need to use one different from SingletonComponent, after all this covers everything and always work. Is it just a matter of following good practices as with encapsulation?