/AddressMemoryCore

Java layer of abstraction for AddressMemory app.

Primary LanguageJava

AddressMemoryCore

Java layer of abstraction for AddressMemory app.

Using a Java layer of abstraction for an Android app, I am going to update this repository while it will serve as a dependency for the application's project.

Dependencies for this app

  • Dagger2, modules/AddressCoreModule, no need for a Dependecy Injector in this module.
  • Realm
  • RxJava 1.x, Realm is not fit yet for RxJava2
  • Mocking-Realm, for testing realm queries on JVM. (Moved to the Android project)
  • Databinding this app went from MVP into MVP{VM}. So it's easier to do level of abstraction.
    • Unit testing is even easier now, because you really have no dependency on the view. When testing, you only need to verify that the observable variables are set appropriately when the model changes. There is no need to mock out the view for testing as there was with the MVP pattern. Quote from Realm article about MVVM

Read User Stories

I got inspiration doing TDD level of abstraction from this video

Alt text for your video