opensrp / opensrp-client

Android app for Frontline Health Workers (FHWs).
Other
15 stars 32 forks source link

Dependency injection library on client side #94

Open koros opened 8 years ago

koros commented 8 years ago

Issue: Currently we are using org.ei.opensrp.Context class to manage singleton objects and modules on the opensrp client side, which is a bit cumbersome can get complex as the project grows

Suggested solution(s): We use dependency injection library (https://android-arsenal.com/tag/28) to manage our dependencies, i would suggest we use dagger(http://square.github.io/dagger/) i have used it before on both personal and commercial projects it's really helpful. @dimasciput @raihan-mpower @mberg @sohelsarder @ndisha @alihabib @raihan-mpower @dimasciput @djazayeri any views?

dimasciput commented 8 years ago

@koros should I implement this for master branch ?