Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit bed0efe4 authored by Arnau Mora's avatar Arnau Mora Committed by GitHub
Browse files

Move subscriptions to database - Phase 1 (#105)



* Added Room and ksp

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added type converter for `Uri`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added Room declarations

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Deprecated `CalendarCredentials`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Generated Room schema

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed unused method

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Made `username` and `password` non-null

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed `put` method

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed account storage

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added foreign key

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Made `lastModified` and `lastSync` nullable

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed migration method

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Moved `getProvider`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed delete method to be moved somewhere else

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed `equals` and `hashCode` since `Subscription` is a `data class`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed dao alias

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Renamed `get` to `getBySubscriptionId`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Renamed `pop` to `remove`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed `LIMIT` from query

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed extensions

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Moved Android functions to `DatabaseAndroidInterface`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Updated database schema

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Credential: don't accept LiveData

---------

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>
Co-authored-by: default avatarRicki Hirner <hirner@bitfire.at>
parent d1731335
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment