Skip to content
/ Todo Public

A simple Todo Application that has common core modules shared across wear, mobile and tablet

Notifications You must be signed in to change notification settings

02karthik/Todo

Repository files navigation

Todo App

(i)Simple todo application that uses MVP architecture, JUnit for unit testing and Expresso for integration testing. (ii)Uses same presenter for wear tablet and mobile phone.

Structure


alt tag

the above image depicts the basic overview of the app.

Usage of Dagger in the app.


alt tag

Since Picasso, Context and Shared Preference are being shared across all 3 views, we have decided to put it in TodoAppModule which resides inside corecommon. Same reason goes for the api module being resided inside corecommon. And also because TodoApp class(which extends application) is used commonly across the views for, SDK initialisations's etc.It's wise to keep it inside corecommon. Naturally because of TodoApp and Module class's being resided in corecommon, TodoComponent which is the main entry point for Dagger's graph, resides in corecommon. Because of this reason alone other module components cannot be subcomponent of TodoComponent, instead they depend on the Todocomponent and the relevant module.

Segregation of Views:
Todoview had to be common for wear mobile and tablet, displaying image based on weather info from the forecast api were not available inside wear, hence i had to segregate the todoview as shown in the diagram, So that the modules themselves decide which view they are going to implement.

alt tag

Please Note:
Add Unsplash and Forecast api keys in the CoreCommon build.gradle.

About

A simple Todo Application that has common core modules shared across wear, mobile and tablet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages