-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Arnaud Giuliani edited this page Mar 26, 2018
·
44 revisions
This repository contains the following projects:
-
weatherapp
- WeatherApp in MVP style architecture
For each projects, we have the following package:
-
di
- Koin dependency injection definitions -
model
- The weather model -
repository
- weather data repository components (retrofit/okhttp and local) -
util
- util classes & extensions -
view
- the views of the app
The application is devided in 3 view:
-
splash
- activity - search default location) -
weather
- activity & fragments - Weather of the day + next days (click on a weather to open it in detail view) -
detail
- activity - Weather detail
The fr.ekito.myweatherapp.mock.view
in test
folder, contains Presenter/ViewModel mock tests
The fr.ekito.myweatherapp
in androidTest
folder, contains instrumented tests for Room (commented at start).
git history to follow steps ...
Checkout the first step and synchronize your project to download all needed dependencies
Migrate app from MVP to MVVM with Android Architecture Components
- 1.0 - Preparing
- 1.1 - First ViewModel & LiveData with Weather Detail View
- 1.2 - ViewModel & Events with the Splash View
- 1.3 - Shared ViewModel between Activity/Fragments, with the Weather View
Making the weather app work with embedded database using the Android Architecture Room API