Refactor InternetManager:
- Add an interface. Change the name to
InternetConnectivityManager.
- Use
callbackFlow to get a cold Flow of connectivity states, get rid of the SharedFlow.
- Think about connectivity states. How many do we actually need? Maybe a simple boolean is enough.
Motivation:
https://www.youtube.com/watch?v=TzV0oCRDNfM