mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2916 App | Tech | Prepare staging release (#1666)
Co-authored-by: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com>
This commit is contained in:
parent
14af7b40c1
commit
b78e3e4d0d
203 changed files with 2606 additions and 1726 deletions
|
@ -44,6 +44,6 @@ interface UserSettingsCache {
|
|||
suspend fun saveWidgetSession(session: WidgetSession)
|
||||
suspend fun clear()
|
||||
|
||||
suspend fun getAllContentSort(space: SpaceId): Pair<Id, Boolean>
|
||||
suspend fun getAllContentSort(space: SpaceId): Pair<Id, Boolean>?
|
||||
suspend fun setAllContentSort(space: SpaceId, sort: Id, isAsc: Boolean)
|
||||
}
|
|
@ -110,7 +110,7 @@ class UserSettingsDataRepository(private val cache: UserSettingsCache) : UserSet
|
|||
)
|
||||
}
|
||||
|
||||
override suspend fun getAllContentSort(space: SpaceId): Pair<Id, Boolean> {
|
||||
override suspend fun getAllContentSort(space: SpaceId): Pair<Id, Boolean>? {
|
||||
return cache.getAllContentSort(space)
|
||||
}
|
||||
|
||||
|
|
|
@ -378,6 +378,7 @@ class BlockDataRepository(
|
|||
)
|
||||
|
||||
override suspend fun searchObjects(
|
||||
space: SpaceId,
|
||||
sorts: List<DVSort>,
|
||||
filters: List<DVFilter>,
|
||||
fulltext: String,
|
||||
|
@ -385,6 +386,7 @@ class BlockDataRepository(
|
|||
limit: Int,
|
||||
keys: List<Id>
|
||||
): List<Map<String, Any?>> = remote.searchObjects(
|
||||
space = space,
|
||||
sorts = sorts,
|
||||
filters = filters,
|
||||
fulltext = fulltext,
|
||||
|
@ -398,6 +400,7 @@ class BlockDataRepository(
|
|||
): List<Command.SearchWithMeta.Result> = remote.searchObjectWithMeta(command)
|
||||
|
||||
override suspend fun searchObjectsWithSubscription(
|
||||
space: SpaceId,
|
||||
subscription: Id,
|
||||
sorts: List<DVSort>,
|
||||
filters: List<DVFilter>,
|
||||
|
@ -411,6 +414,7 @@ class BlockDataRepository(
|
|||
noDepSubscription: Boolean?,
|
||||
collection: Id?
|
||||
): SearchResult = remote.searchObjectsWithSubscription(
|
||||
space = space,
|
||||
subscription = subscription,
|
||||
sorts = sorts,
|
||||
filters = filters,
|
||||
|
@ -426,10 +430,12 @@ class BlockDataRepository(
|
|||
)
|
||||
|
||||
override suspend fun searchObjectsByIdWithSubscription(
|
||||
space: SpaceId,
|
||||
subscription: Id,
|
||||
ids: List<Id>,
|
||||
keys: List<String>
|
||||
): SearchResult = remote.searchObjectsByIdWithSubscription(
|
||||
space = space,
|
||||
subscription = subscription,
|
||||
ids = ids,
|
||||
keys = keys
|
||||
|
|
|
@ -148,6 +148,7 @@ interface BlockRemote {
|
|||
): Payload
|
||||
|
||||
suspend fun searchObjects(
|
||||
space: SpaceId,
|
||||
sorts: List<DVSort>,
|
||||
filters: List<DVFilter>,
|
||||
fulltext: String,
|
||||
|
@ -161,6 +162,7 @@ interface BlockRemote {
|
|||
): List<Command.SearchWithMeta.Result>
|
||||
|
||||
suspend fun searchObjectsWithSubscription(
|
||||
space: SpaceId,
|
||||
subscription: Id,
|
||||
sorts: List<DVSort>,
|
||||
filters: List<DVFilter>,
|
||||
|
@ -176,6 +178,7 @@ interface BlockRemote {
|
|||
): SearchResult
|
||||
|
||||
suspend fun searchObjectsByIdWithSubscription(
|
||||
space: SpaceId,
|
||||
subscription: Id,
|
||||
ids: List<Id>,
|
||||
keys: List<String>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue