Michal Klimczak
08/25/2023, 8:34 AMStylianos Gakis
08/25/2023, 8:42 AMMichal Klimczak
08/25/2023, 8:49 AMStylianos Gakis
08/25/2023, 9:09 AMMichal Klimczak
08/25/2023, 9:22 AMStylianos Gakis
08/25/2023, 9:32 AMMichal Klimczak
08/25/2023, 9:39 AMtake a look at how ViewModels are provided by hiltYes, it's a good idea, thanks 🙂 As for the testing, the file downloader is more of a state holder that can be attached to some kind of UI and the state holder can be easily testable. Think about it this way - file downloading has an input of (source, destination) and an output of the current progress of the file download. It can be completely decoupled from the app's logic and therefore be a standalone components without traversing the app's architecture / CA layers. More on that pattern: https://developer.android.com/jetpack/compose/state#managing-state
Stylianos Gakis
08/25/2023, 10:06 AMMichal Klimczak
08/25/2023, 10:18 AMflow
of the download. launched by the state holder keeping the scope