Ashishsingh009 / weather

Android Jetpack ,MVVM and TDD implementations
1 stars 0 forks source link

WeatherApp

Android Jetpack ,MVVM and TDD implementations

for API used weather and forecastApi from https://openweathermap.org/api

Getting Started

*MVVM Architecture: In MVVM, ViewModel exposes streams of events to which the Views can bind to. Like this, the ViewModel does not need to hold a reference to the View anymore, like the Presenter is. This also means that all the interfaces that the MVP pattern requires, are now dropped.

*Android Databinding: Part of Android Jetpack, is a support library that allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically.

*Dependancy Injection(Daggar2):- Dagger is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square and now maintained by Google.

*Android JUNIT4: Build local unit Test cases.

*Retrofit- For n/w calling using okhttp client.

Prerequisites

Android Studio 3.5 or newer.

Installing

A step by step series of examples that tell you how to get a development env running

Checkout The code with Gitlink in android Studio.
file->new->open from versioncontrol->git
Build the project.

Running the tests

Build the Jacoco report from gradle, Please connect to device and accept the location permission. Please see the the report for this project.

alt text

*Unit Test Cases.

alt text

*for Forecast Graph. alt text alt text

For Bar Chart

Authors