Git Product home page Git Product logo

sampleapparch's Introduction

SampleAppArch

Sample Application using the app archieture

Current Plan

Implementation Description Type
Android Architecture Component (AAC) Using the AAC as bone of the app structures App
MVP Extract the BaseFragment Features and link it to the AAC (e.g. ProgressDialog, AlertDialog) View, Presenter
Dagger2 As the Dependency Injectection to the DI
Google Github sample for AAC Networkbound, ApiResponse Reference the Networkbound class and related class to generic the API call and responses Model Gateway
Android Data Binding Library To easily bind the data to the UI and seperate the design and controller logic Presenter
Crashlytics To report the runtime error Testing

-Sample Navigation Drawer

Activity

package name used as Yigit proposed layer (datasource , responsitory, ui, viewModel) in 2017 Google IO

https://youtu.be/FrteWKKVyzI?t=29m41s

ui (UI Controllers , Fragments & Activities)

  • Activities & Fragments
  • Observers the View Model
  • Keeps the UI up-to-date
  • Forwards user Actions back to the ViewModel

viewmodel

  • Prepares keeps the data for the UI
  • Includes LiveData, Observable etc
  • Survives Configuration changes
  • The gateway for the UI Controller

repository

  • The complete data model for the App
  • Provide simple data modification & retrieval APIS
  • Coordinates fetching , syncing , persisting etc from different data sources

datasource

  • API to the data sources
  • E.g. Retrofit for a REST API
  • Room for local persistence
  • External content providers for OS

utils

  • Common Utils (Like Android databinding
  • Inject Utils (Dependency Injection)

How do I use this project?

This is a boilerplate project aimed to help bootstrap new Android MVP Applications. Feel free to fork this application. :)

License

   Copyright (C) 2017 Sample App Architecture

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to SampleArrArch

Just make pull request. You are in!

sampleapparch's People

Contributors

charlesng avatar

Watchers

James Cloos avatar Karthik Kompelli 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.