Mikael Alfredsson
06/20/2020, 9:06 AM@Provides
@Singleton
fun providesMessageCenter(): MessageCenter = MessageCenter()
for me, this seems to be quite unnecessary and I guess I could annotate the MessageCenter
class directly instead to get it into the graph. Whats the best way of doing this (or is the best way to keep it as it is?)Arun
06/20/2020, 9:08 AM@Singleton
class MessageCenter @Inject constructor()
should do the trick and you could remove the @Provides
method.Mikael Alfredsson
06/20/2020, 9:09 AMArun
06/20/2020, 9:13 AMMikael Alfredsson
06/20/2020, 9:13 AM