Hello! I am playing around `WorkManager` nowadays....
# android
k
Hello! I am playing around
WorkManager
nowadays. I was just wondering if you have any recommended design patterns/code samples that you have used in your projects for injecting/using class instances into your
Worker
classes without the use of any dependency injection frameworks. Those classes can be repositories, data sources, etc, that may have executions of IO operations. Worth to mention: what I see, in general, is either the use of
Hilt
to inject the instances of classes to the constructors of `Worker`s or using singletons (kotlin objects) to make function calls. I am asking for other alternatives to use. Note: it is important to note that I am asking this question for Periodic Worker which complicates the usecase as I am imagining.
😶 3