batsw / AndroidAnonymityChat

A secure and serverless chat application that uses the TOR network (Deep Web) to send the messages
GNU Lesser General Public License v3.0
8 stars 1 forks source link

Persistency: create a form of storing app data #30

Closed tudorcodrea closed 7 years ago

tudorcodrea commented 7 years ago

As a [DEVELOPER] I want to be able to make use of a data store, so that I can place app data in a structured form..

tudorcodrea commented 7 years ago

For the current development state it is enough an in memory data persistence mechanism to allow the Chat View functionality to work and to be implemented

tudorcodrea commented 7 years ago

it has been provided a HashMap that is simulation the actual behavior of the real Persistency Mechanism

tudorcodrea commented 7 years ago

Reopening this issue to continue with a final form of data storing

tudorcodrea commented 7 years ago

The purpose is to have a SQLite DB to hold the data and a proper formatted internal structure to be efficient and as small as possible footprint-wise and resource taking wise.

tudorcodrea commented 7 years ago

the decided data storage form is under a db file created by SQLite embedded DB itself. The previous commit provides the DB structure, entities and CRUD operation implementation on the tables.

tudorcodrea commented 7 years ago

the app data persistence form has been defined and implemented

tudorcodrea commented 7 years ago

the commit 47f5ed5 comes with alot of refinement on DB handling also, fixing Contact-Chat-ChatMessages tables FK connections by making SESSION_ID columns UNIQUE

tudorcodrea commented 7 years ago

as of now the DB is integrated into the app