https://kotlinlang.org logo
#android
Title
# android
p

pollux-

08/10/2020, 7:35 PM
I have a multi module project configured to work with Dagger. I came across a use case, where I need the same component need to be shared with all the activities in the same module. How can I create a shared component without putting it inside the application class
s

StavFX

08/10/2020, 7:42 PM
There’s nothing special about the Application class, It’s just a singleton that holds onto an instance of your component. So you can use any other Singleton to do the same thing
2 Views