Example app
Example app¶
You can check out the mvicore-demo-app
module and deploy it to your Android device to see some of the possibilities of MVICore applied in practice.
Points of interest:
Feature1
: Simple state machine holding on to state of coloured buttons and counterFeature2
: Asynchronous state machine responsible for loading images from the The Cat APIMainActivityBindings
: ShowcasingBinder
usage, combining the state ofFeature1
+Feature2
and translating them to aViewModel
to the screen, also connecting the UI to the FeaturesApp.kt
for Middleware configurations- Dagger configuration to make
Feature1
andFeature2
live longer than the Activity, but lose their state on "sign out / sign in" cycle - Check out the DebugDrawer module (swipeable from the right side of the screen) for Time Travel Debugger controls.