Hilt create single dependency with multiple scopes

Viewed 122

Is there a way that I can have a dependency that I need to use in a service and activity created with different scopes in different modules so that I can Inject it in both the service and activity.

1 Answers

You can use @Singleton for this purpose.

Related