Skip to content

Instantly share code, notes, and snippets.

@prempalsingh
Last active September 14, 2016 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prempalsingh/39df6113c409306d63f7a76e8d2e8001 to your computer and use it in GitHub Desktop.
Save prempalsingh/39df6113c409306d63f7a76e8d2e8001 to your computer and use it in GitHub Desktop.
GSoC 2016 Work Product - Prempal Singh - DHIS 2

##GSoC 2016 Work Product - Prempal Singh - DHIS2

My work involved contributing to the existing DHIS2 Android SDK to implement a shared database functionality using content provider and making the DHIS2 Core app which exposes the content provider to other client apps. The content provider was generated using DbFlow and all the CRUD operation calls were proxied to the content provider which ensured no changes in the existing codebase making DB calls.

My contributions can be seen here -

DHIS2 Android SDK (IPC code not included since that is still WIP)

DHIS2 Android Core

What works: Shared database functionality - All the apps no longer have a sandboxed database. They share a common database hosted by the DHIS2 Android Core app.

What's left: IPC - Although, sync and pull works fine but as a good practice, it should be delegated to the Core app and not handled by the client apps. The logic for IPC has been finalized but its implementation so as to not break the Clean architecture still needs to be decided upon.

I am grateful to the DHIS2 organisation for providing me the opportunity to work on this project and would like to thank my mentor Araz Abishov for guiding me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment