Coder Social home page Coder Social logo

superheroes's Introduction

SuperHeroes

This is a simple list and search Marvel Heroes app using the public API from Marvel.

Project architecture

The architecture chosen to this project was the MVP.

Model–view–presenter (MVP) is a derivation of the model–view–controller (MVC) architectural pattern which mostly used for building user interfaces. In MVP, the presenter assumes the functionality of the “middle-man”. In MVP, all presentation logic is pushed to the presenter. MVP advocates separating business and persistence logic out of the Activity and Fragment

MVP Reference.

Versioning

The versioning scheme follows major.minor.commit_count. Major and minor numbers are increased manually. Commit count is extracted from the number of commits present in the master branch. Run this task to check the latest version ./gradlew version.

Dependency Injection

Dagger is the tool who help us here. It is a fully static, compile-time dependency injection framework for both Java and Android. Take at look here if you want to learn more.

Code Style

This project is following the Kotlin code style guideline. To read more about it just follow it on Kotlin code style guide.

Linting

Run Kotlin lint: ./gradlew ktlint

Run Kotlin lint and apply automatic fixes: ./gradlew ktlintFormat

Using RxLint to make sure our subscribers will handle the onError() callback and it was added to the current CompositeDisposable to avoid memory leaks or crashes by not dispose the subscription correctly.

Testing

Run unit tests: ./gradlew testDebugUnitTest

superheroes's People

Contributors

paulovitorns avatar

Watchers

James Cloos 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.