Open PatilShreyas opened 4 years ago
I tried this early this year https://github.com/juanmendez/android-architecture-components. I didn't get a chance to go over all unit tests since they are explicitly using RxJava. I was able to use the same functionality for an app I published.
Currently in GitHubBrowserSample, architecture component -
LiveData
is used in Repository layer of the application for data flow as reactive stream which can be replaced with Kotlin CoroutinesFlow
APIs which provides much more features and best for repository layer. Flow is cold reactive stream which can be good at repository layer and we can use LiveData extensions atViewModel
for conversion ofFlow
intoLiveData
.This is suggestion. If it looks good to you then I'll be happy to contribute to this feature.