Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
architecture-samples
A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
I have a confession to make, after reading through StateFlow and SharedFlow documentation, watching Android Developers's video, and reading nowinandroid source codes, I'm not convinced to migrate LiveData to StateFlow or SharedFlow. At least for now. Here's why:
The stable version of Jetpack Compose is just released last year. While I do like writing UI using Compose, I think most companies still need more time to adopt Compose.
For merging multiple data-sources, like network and database, I can use Repository backed with NetworkDataSources and DbDataSources. For data manipulation, Kotlin's collection has many useful functions (map, reduce, groupBy, count, etc.). If I want to ensure a data can only be emitted once, a simple modification to LiveData is enough (SingleLiveData
Related posts
- I have been unable to find some good and upto date android projects on using api, retrofit and mvvm architecture on youtube. Was hoping you guys can suggest some good playlists to learn these and other important topics.
- Is code supposted to be all in main activity?
- An Open Source Task Prioritise app made with Jetpack Compose!
- I've created an Open Source Task Prioritize App called Einsen using Jetpack Compose!
- Performance Impact Analysis of Gradle 8.7 in Android Projects