tivi
livedata-combineutil-java
Our great sponsors
tivi | livedata-combineutil-java | |
---|---|---|
28 | 11 | |
6,395 | 9 | |
- | - | |
9.8 | 0.0 | |
4 days ago | over 2 years ago | |
Kotlin | Java | |
Apache License 2.0 | 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.
tivi
-
Do you have an open source (base) project using latest tech?
Look no more: https://github.com/chrisbanes/tivi
- What are some open source android projects that you can go to see Best practices or how they implemented stuff
-
What do you use for compose navigation?
It's definitely the most verbose part of our app and one of the weakest parts of the Jetpack library. We used https://github.com/chrisbanes/tivi for some inspiration on how to organize your navigation structures.
-
What's modern approach to handling Preferences (UI & Storage) in Compose?
I have considered a few variants around this route. One easy way out would be just to launch a ComponentActivity with a PreferenceFragment like what Chris Banes does in TiVi ... but if you go with PreferenceFragment(Compat) it seems you are kinda stuck with SharedPreferences. If one attempts to supply DataStore wrapped in PreferenceDataStore, it seems types get messed up (TextPreference will store as a String, even if the InputType is number, etc).
-
Modern ways to expose Retrofit network progress and errors to a ViewModel?
Thanks I think what's confusing is that UI events are recommended to be modeled as Flows, which I guess is why Tivi uses Flows for even the simplest actions, but it does a lot of very fancy things. Most repository interactions seem to have an entire class extending an Interactor (e.g.) which catches and emits errors, progress and handles timeouts and does all that crazy queuing stuff with UI "messages" Flow
-
"outdated senior" needs your advice
I would read and study nowinandroid and tivi apps.
-
Compose Navigation with multiple graphs
Check out the approach from tivi https://github.com/chrisbanes/tivi/blob/main/app/src/main/java/app/tivi/AppNavigation.kt as an idea.
- Any Clean Architecture app courses that make use of Flows completely without LiveData?
- What resources would you recommend for learning how to build Multi-Module android apps?
-
Anyone here who has bought Philipp Lackner's course for developing multi-module apps?
They probably want you to do a module split like in https://github.com/chrisbanes/tivi or https://github.com/igorwojda/android-showcase, but what they probably don't realize is that modularization is a trade-off, namely greatly increased build configuration complexity for... well, having modules.
livedata-combineutil-java
-
How can I use view model in helper class?
3.) the MutableLiveDatas in the ViewModel initialized by SavedStateHandle.getLiveData should contain the fromDate and the toDate, and with the combination of these LiveDatas you can evaluate what to show on the screen
-
Jetpack Compose is now 1.0: announcing Android’s modern toolkit for building native UI
well the third-party libraries help but internally it's just MediatorLiveData which does ship with LiveData
-
What are the must go state management tools for an android kotlin app? React native we have redux, angular we have services with observables, etc…
If you're using Google's defaults, then you use a ViewModel created by Hilt and getting a reference to a SavedStateHandle, your state would be created of multiple MutableLiveDatas (each holding 1 property) created via savedStateHandle.getLiveData(), then you use MediatorLiveData (you can use a library like this or this) to combine the changes of the mutable properties into a single immutable state object observed by the "UI" (read: the view controller, aka the Fragment) using the viewLifecycleOwner property of Fragments.
-
Kotlin Flow cheat sheet
MutableLiveData (java combiner/kotlin combiner) == BehaviorRelay (kotlin combiner) == MutableSharedFlow (kotlin combiner) conceptually, so it's not important to me which one it is, as long as you can throw combiners at it.
-
I want to sort a LiveData<List<Players>> from Room in my Scorekeeper app. Do I need to be using Transformations? MutableLiveData? MediatorLiveData? Or something else?
Yep, that's why I have this kotlin combiner/java combiner for LiveData, but map/switchMap also rely on MediatorLiveData.
- Feedback on my latest Android project
-
What is wrong with MVVM?
people exposing 11 public LiveData fields for 11 private MutableLiveData fields instead of using MediatorLiveData as combiners to reduce the number of exposed LiveData fields
-
Architecture Question MVVM + DataBinding
While it is possible to combine these properties into a single emission using MediatorLiveData, if the MutableLiveData is exposed as MutableLiveData, then the fields can be directly two-way databound to XML, which is kinda the original goal and purpose of databinding.
-
Weekly Questions Thread - January 12, 2021
If you need help with combiners you can also check https://github.com/Zhuinden/livedata-combineutil-java/
-
Confused on how to pass data to my recyclerView
If you can't join them, you can combine LiveDatas and then map them to a common representation so that the adapter can treat it as a single list. And use itemViewType to determine which view to show per each item.
What are some alternatives?
compose-samples - Official Jetpack Compose samples.
orbit-mvi - A simple MVI framework for Kotlin Multiplatform and Android
android-mvvm-dagger-rxjava-retrofit - A sample project which demostrate use of MVVM and Dagger 2 with RxJava2 along with Retrofit
redux - Redux ported to java/android (name tbd)
gamedge - An Android application for browsing video games and checking the latest gaming news from around the world.
MvRx - Mavericks: Android on Autopilot
architecture-components-samples - Samples for Android Architecture Components.
cwac-security - CWAC-Security: Helping You Help Your Users Defend Their Data
android-showcase - 💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...
rx-combinetuple-kt - [ACTIVE] Helper function to combine RxJava observables into tuples.
fdroidclient - Android client application.
Clother - Clother is an Android client-server app for swapping unused clothes.