Giter Site home page Giter Site logo

inventidevelopment / androidskeleton Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 3.0 204 KB

Simple template app based on jsonplaceholder example REST API

License: Apache License 2.0

Java 16.48% Kotlin 83.52%
android template rxjava kotlin java clean-architecture testing mosby conductor dagger

androidskeleton's Introduction

Android Skeleton

Simple template app based on jsonplaceholder example REST API.

Goals

TODO explain our goals

Architecture

We use simplified version of clean architecture.

  • Data - not sure yet how to handle this layer in this template, this can be different from app to app so it may be appropriate to use something simple like SharedPreferences or we can create more flavours(branches?) of this layer
  • Domain - Use cases and stuff
  • Presentation - MVP maybe parts of MVI on some complex forms

Glue between these layers is RxJava

Package by feature inside every main layer

Used libraries

Inspiration & Acknowledgements

Articles

Repos

How to use this

TODO

TODO List

  • Setup github project
  • Add all essential dependencies and make sure everything compiles
  • Create Main activity as an conductor host
  • Create first example screen with view(conductor), presenter
  • Translate everything to kotlin
  • Setup dagger for everything
  • Setup leakCanary
  • Setup retrofit with first api call
  • Architect use cases and domain logic
  • Architect Repository and data layer
  • Remote error handling
  • Correct repository data source observable composition
  • Presenter subscription management and config change
  • Configuration change data management
  • All the preparations for for testing(mock flavour etc)
  • Write unit and UI tests
  • Firebase branch

Reactive types

Observable/Flowable - onSubscribe onNext(T value)* (onComplete() | onError(Throwable e))?

Single - onSubscribe (onSuccess(T value) | onError(Throwable e)?

Completable - onSubscribe (onComplete() | onError(Throwable e))?

Maybe - onSubscribe (onSuccess(T value) | onError(Throwable e) | onComplete())?

License

Copyright 2017 Inventi Development s.r.o

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.

androidskeleton's People

Contributors

ecnill avatar lukasvykuka avatar semanticer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

androidskeleton's Issues

Modularize

Create 3 basic modules, presentation, domain, data

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.