This example demonstrates how to use Mosby MVI (Model-View-Intent) to build a reactive app. In this example we have built a shopping app, where users can put items into a shopping cart.
The idea of this sample is to use as few dependencies as possible. For instance, dagger has not been used to make the code understandable by all developers without any prior knowledge of dagger. So basically this example uses the following libraries:
- Mosby MVI (obviously) and RxJava 2 (required by Mosby MVI).
- Retrofit 2 and Moshi (json parser)
- Glide (for image loading)
This sample app loads data from a "backend" which is not a real http server, but rather some
static json files hosted in this repository (directory "server") on gihub. Therefore some computational
stuff like "get all items of a certain category" must be "computed" on the client side. This is done