tangxiaocheng / SramBikeStore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Takeaway Summary

The overall architecture is based on this Repo: https://github.com/bufferapp/android-clean-architecture-boilerplate , to make it more practical for this take-home practice, I trimmed a lot of features, and kept the essential clean architecture framework.

  • It uses repository to provide single source of truth for data and handles the server error with unit test.
  • It uses use-cases to handle business logic.
  • It uses presenter to connect the use-cases and the view.
  • It makes Activity code as simple as possible, no if-else statement at all.
  • It uses sealed class to wrap the network responses.
  • It uses AutoDispose to manage RxJava stream subscription.
  • It uses Scabbard to visualize Dagger 2 dependency graphs as the below image. Dagger Graph

Requirements

You could install the app using the following command.

./gradlew :app:installDebug

APK download

https://github.com/tangxiaocheng/SramBikeStore/blob/Document/doc/app-debug.apk

For app preview

#1

About


Languages

Language:Kotlin 100.0%