Giter Club home page Giter Club logo

marvel-sample-app's Introduction

Marvel-Sample-App

A sample app in a modulable MVVM/Clean architecture

Description

This app uses the MVVM pattern combined with the clean architecture. The 3 parts of this architecture presenter/domain/data are in a different module, in order to get more independent layers.

To sum up :

  • The data layer implements the domain but does not know the presenter
  • The domain layer does not know any layer
  • The presenter layer implements the domain and does not know the data one

There is also an app module that contains the Application class.

How to run it

This project uses the secrets-gradle-plugin library in order to get the ApiKey. To run the project, you have to write on

local.properties

your publicKey & privateKey of the Marvel API, like this :

sdk.dir=..........

publicKey=[yourpublickey]
privateKey=[yourprivatekey]

Flavors

You will find on this app 2 flavors :

  • Mock : In order to get mocked data
  • Prod : In order to get data from API

The mocked data is sent thanks to a OkHttp Interceptor, implementing an entire framework (mockito) for only 2 calls would have been too heavy.

Libraries used

  • Moshi - handling JSON files

  • Okhttp - For adding the Authtoken & MockInterceptor

  • Retrofit - For API Calls

  • Rxjava - for reactive programming

  • Dagger2 - for dependency injection

  • Secret-Gradle-Plugin - For hiding apikeys

  • Paging 3 - for infinite scroll (Implemented with RxJava)

  • Material design - Front elements

  • Glide - For printing images

marvel-sample-app's People

Contributors

florent-sebag avatar

Watchers

 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.