Code Monkey home page Code Monkey logo

weather_forecast's Introduction

Weather Forecast Android App

This repo shows a simple Model-View ViewModel Architecture with Use Cases to write decoupled, testalble and maintainable code.

Don't forget to see the unit test package HERE

Alt text

A View (Activity and Fragment) knows about the view-model but the view-model has no idea about the view. The view-model use independent use case components to collect all the necessary data.

Example

Alt text

App walkthrough

HomeActivity

Alt text

Add a city to database

Alt text

Use Places predictions for autocompletion

Alt text

When the user taps on the cloud he/she can see the hourly weather forecast for the next 5 days using the Local Weather API

Alt text

Dependencies

Library Use
androidx.lifecycle Lifecycle-aware components like ViewModel, LiveData etc
com.afollestad.material-dialogs fluid, and extensible dialogs API for Kotlin & Android
retrofit basic type-safe HTTP client for Android
gson basic serialization/deserialization library to convert Java Objects into JSON and back
androidx.room basic persistence library that provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite
picasso basic image downloading and caching library for Android
places provides programmatic access to Google's database of local place and business information, as well as the device's current place
mockito basic mocking framework for unit tests

weather_forecast's People

Contributors

domgeorg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.