Android MVVM with CommandBus - Full Part 2 - Splash Activity and ViewModel
Dry Code
In this episode we'll setup a Firebase project and hook it up to the Android project, develop the entire Splash Screen (Activity and ViewModel) and add some neat utility methods to the BaseViewModel. In the SplashViewModel we'll run our first usecase to determine a user's authentication status.
0:00 Caster.io Shutting Down!! 1:16 Setting up Firebase 3:00 The Plan - Part 2 3:40 Splash Screen Activity
7:53 Splash Screen ViewModel 11:40 DetermineAuthStatus UseCase 14:07 SplashViewModel onScreenCreated() 16:10 BaseViewModel subscription() 17:38 Running the Project
The CommandBus is a term I use to refer to this new solution for the problem of View/ViewModel communication in the Android MVVM architecture. It makes for more readable and testable code which you'll see in this video series
Code for all the course episodes can be found here: https://github.com/Odaym/Fire-Login - REMEMBER that you need to replace the project's google-services.json file with your own for it to work correctly with Firebase.
Firebase Console: https://console.firebase.google.com/
#AndroidMVVM #AndroidMVVMKotlin #Programming #MVVM
Follow me on Twitter: https://twitter.com/odaymaleh ... https://www.youtube.com/watch?v=yKiBFlfGR2Q
96464580 Bytes