Giter Club home page Giter Club logo

tgs's Introduction

TGS

TGS Home Android Application with Android Architecture Components

NOTE
It is a relatively more complex and complete example so if you are not familiar with Architecture Components, you are highly recommended to check other examples

Application to monitor IOT devices and Control from their phones This is a sample app that uses Android Architecture Components with Dagger 2. NOTE It is a relatively more complex and complete example so if you are not familiar with Architecture Components, you are highly recommended to check other examples in this repository first.

Introduction

Functionality The app is composed of 3 main screens.

SearchFragment Allows you to search repositories on Flipshop. Each search result is kept in the database in RepoSearchResult table where the list of repository IDs are denormalized into a single column. The actual Repo instances live in the Repo table. Each time a new page is fetched, the same RepoSearchResult record in the Database is updated with the new list of repository ids. NOTE The UI currently loads all Repo items at once, which would not perform well on lower end devices. Instead of manually writing lazy adapters, we've decided to wait until the built in support in Room is released.

RepoFragment This fragment displays the details of a repository and its contributors.

UserFragment This fragment displays a user and their repositories.

Building You can open the project in Android studio and press run.

ViewModel Each ViewModel is tested using local unit tests with mock Repository implementations.

Repository Tests Each Repository is tested using local unit tests with mock web service and mock database.

Webservice Tests The project uses MockWebServer project to test REST api interactions.

Libraries

Android Support Library Android Architecture Components Android Data Binding

Dagger 2 for dependency injection

Retrofit for REST api communication

Glide for image loading

tgs's People

Contributors

logicgupta avatar

Watchers

 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.