LifecycleCollector
reactive-mvvm-android
LifecycleCollector | reactive-mvvm-android | |
---|---|---|
1 | 1 | |
4 | 3 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | almost 2 years ago | |
Kotlin | Kotlin | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LifecycleCollector
-
LiveData is superior to StateFlow for UI and ViewModel layer.
You can have a look at my little library, which is gives you three extension functions on flows: LifecycleCollector. However, it uses the experimental repeatOnLifecycle() under the hood.
reactive-mvvm-android
-
Is code supposted to be all in main activity?
I would definitely avoid putting everything in the Activity. Usually you want to separate your code between multiple layers like data, domain and view. Then you can choose a pattern like MVVM, MVI or MVP (MVP is not used that much anymore). Here you have a repo I made with a reactive MVVM example: Github Reactive MVVM with Flows
What are some alternatives?
loco - 🚀 launch on & cancel on lifecycle events
architecture-samples - A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
androidx - Development environment for Android Jetpack extension libraries under the androidx namespace. Synchronized with Android Jetpack's primary development branch on AOSP.
AndroidCleanArchitecture - This is a project built with Love ❤️ and also with Clean architecture in Android .
river - Extensions & Enterprise Integrations for Kotlin flows
Clean-MVVM-Playground - Playground project to try new tech in Android world
pomodoro-scheduler - This is a simple and configurable pomodoro timer [Moved to: https://github.com/emenjivar/pomodoro-timer]
viewmodel-lifecycle - 🌳 ViewModel Lifecycle allows you to track and observe Jetpack's ViewModel lifecycle changes.
Foodium - 🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).