This is a simple list and search Marvel Heroes app using the public API from Marvel.
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.
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
.
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.
This project is following the Kotlin code style guideline. To read more about it just follow it on Kotlin code style guide.
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.
Run unit tests:
./gradlew testDebugUnitTest