Git Product home page Git Product logo

todo-sample's Introduction

Android sample

Illustration by Virginia Poltrack

CircleCI ktlint

Introduction

This is a sample app that using the Uncle Bob's clean architecture approach, alongside with the Android Architecture Components.

Coding style

The standard style that described in https://developer.android.com/kotlin/style-guide
This project uses a handy gradle plugin that will automatically format your code
Use ./gradlew spotlessApply to apply

Android Architecture Components

  • LiveData: lifecycle-aware observable data holder class
  • ViewModel: manage UI-related data, survive configuration changes such as screen rotations
  • DataBinding: bind UI components in your layouts to data sources
  • Navigation: this sample using the Single Activity approach, Android Navigation Component add an abstract layer to handle fragment transactions, Up and Back actions correctly combine with Safe Args plugin to generate fragment argument
  • WorkManager: manage deferrable, asynchronous tasks and when they should run. Use for seed database with sample data
  • Paging: load data gradually and gracefully

Dependency Injection

  • Dagger2: primarily known for slow build time, this sample slipt the setup into multiple modules
  • AssistedInject: compatible with Dagger2, perform constructor injection to classes that need data/class/instance available only at runtime

Contribution

Android Studio: 3.5.0-canary2 or later
All development process happens on the development branch, feel free to open a pull request, any change you make into this branch with automatically test, build and submit to google play beta track
Opt-in URL: https://play.google.com/apps/testing/com.sample.todo
Make sure to apply the style that described in the Coding style section

todo-sample's People

Contributors

nlgtuankiet avatar

Watchers

James Cloos avatar Hung Nguyen 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.