Code Monkey home page Code Monkey logo

android-app-with-kotlin-vmmv-retrofit2-room-tests's Introduction

Android Kotlin / VMMV / Retrofit2 / Room / Tests

Android app example using VMMV architectural pattern.

Run the app

  • To run the app clone the repository or download and uncompress it.
  • Open the project in android studio and run it.

To run the tests

  • Select a specifict test and run it.
  • Or chose Run 'All tests' with contextual menu over app folder in the left project panel.

Banck-end API

For this example i used https://jsonplaceholder.typicode.com

Desing pattern

The main design patter used is Material Design from (com.google.android.materia)

Main Libraries

  • Retrofit for http request
  • Room for data persistence

Benefits using the MVVM architecture with these libraries

  • The example app is based on Google recomendation: https://developer.android.com/topic/architecture#recommended-app-arch
  • I used viewBinding and dataBinding to pass some view controls to the view file.
  • The repository is based on a inteface and the viewModel use an inyected depencency of the repository instance, this allow an easy way to test the viewModel.

Tests

  • Unit tests including viewModel and LiveData tests
  • Instrumentation test checking Activity and RecyclerView

Extra

  • A splash screen for the first time loading the app.

android-app-with-kotlin-vmmv-retrofit2-room-tests's People

Contributors

gonzalogaleano avatar

Stargazers

 avatar David Figueroa avatar

Watchers

James Cloos 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.