What is the best way to capture the progress of file upload and download using Retrofit with kotlin
I have two different codes
1. I created a request extended class and performing update and getting callback in interface
2. I created extension function with request body and collecting it in flow by calculating the file size and content delivered
But in both cases I have to write a lot and I need one plug and play solution, by above i created a function and calling it from many places
Any recommendations?