1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3557 Migration | Enhancement | Add process progress to migration screen (#2279)

This commit is contained in:
Evgenii Kozlov 2025-04-10 15:51:34 +02:00 committed by GitHub
parent 4a3a4947c5
commit 338706ff52
Signed by: github
GPG key ID: B5690EEEBB952194
15 changed files with 430 additions and 32 deletions

View file

@ -9,6 +9,8 @@ dependencies {
implementation libs.kotlin
implementation libs.coroutines
compileOnly libs.javaxInject
testImplementation project(":test:utils")
testImplementation project(":test:core-models-stub")
testImplementation libs.junit

View file

@ -3,6 +3,8 @@ package com.anytypeio.anytype.data.auth.event
import com.anytypeio.anytype.core_models.Process
import com.anytypeio.anytype.domain.workspace.EventProcessDropFilesChannel
import com.anytypeio.anytype.domain.workspace.EventProcessImportChannel
import com.anytypeio.anytype.domain.workspace.EventProcessMigrationChannel
import javax.inject.Inject
import kotlinx.coroutines.flow.Flow
interface EventProcessImportRemoteChannel {
@ -29,4 +31,17 @@ class EventProcessDropFilesDateChannel(
override fun observe(): Flow<List<Process.Event.DropFiles>> {
return channel.observe()
}
}
}
interface EventProcessMigrationRemoteChannel {
fun observe(): Flow<List<Process.Event.Migration>>
}
class EventProcessMigrationDateChannel @Inject constructor(
private val channel: EventProcessMigrationRemoteChannel
) : EventProcessMigrationChannel {
override fun observe(): Flow<List<Process.Event.Migration>> {
return channel.observe()
}
}