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:
parent
4a3a4947c5
commit
338706ff52
15 changed files with 430 additions and 32 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue