Closed luongvo closed 5 years ago
altered @Reusable & @JvmStatic was a combination that fixed an issue in @Singleton in kotlin that wasn't resolved however now i altered the code to be Singleton as per the guides of Dagger and that issue Confirm to close the issue :D
SurveysRepository
inSurveriesViewModel
could be initialized bySurveriesViewModel
's constructor (and of course a factory is needed) instead of manually injecting https://github.com/HossamOnsy/NimbleTask/blob/72b016c266c9859185abc168933299e8c5a721fe/app/src/main/java/com/sam/nimbletask/viewmodels/SurveriesViewModel.kt#L32@Reusable
instead of@Singleton
?@JvmStatic
annotation in dagger modules?