Skip to content
Arnaud Giuliani edited this page Mar 26, 2018 · 44 revisions

Android Architecture & Architecture Components

Weather App

This repository contains the following projects:

  • weatherapp - WeatherApp in MVP style architecture

Package structure

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

Views

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

Tests

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

git history to follow steps ...

Prepare your environment

Checkout the first step and synchronize your project to download all needed dependencies

Part 1: MVP to MVVM with Arch Components

Migrate app from MVP to MVVM with Android Architecture Components

Steps

Part 2: Add database persistence with Room

Making the weather app work with embedded database using the Android Architecture Room API

Steps

Clone this wiki locally