Mercury-IM/persistence
2019-08-10 21:50:03 +02:00
..
src Alternative caps store 2019-08-10 21:50:03 +02:00
.gitignore Hacked Roster loading 2019-05-19 02:00:33 +02:00
build.gradle Alternative caps store 2019-08-10 21:50:03 +02:00
proguard-rules.pro Hacked Roster loading 2019-05-19 02:00:33 +02:00
README.md Temp 2019-06-10 02:52:08 +02:00

Abstract Persistence Layer of Mercury

This Android module defines interfaces for a persistence backend.

Ideally this module would at some point be a plain java (non-Android) module to allow for non-Android implementations. This is currently being blocked by LiveData being an Android library. We could fix this by replacing LiveData with RxJava, but this would require us to manually handle LifeCycles of ViewModels etc. so for now we stick with LiveData.

Packages

model package

Contains interfaces that define the structure of data classes.

repository package

Repositories build a user-friendly interface to query and modify data in the backend.

Implementations

Currently the module is only being implemented by the persistence-room Android module.