refactor: simplify AppContentRepository initialization logic.

This commit is contained in:
2026-04-21 21:34:22 +02:00
parent d0e5e978be
commit a2931b78f9
2 changed files with 34 additions and 41 deletions

View File

@@ -2,8 +2,8 @@ package hu.bbara.purefin.core.data
import hu.bbara.purefin.core.model.Library
import hu.bbara.purefin.core.model.Media
import java.util.UUID
import kotlinx.coroutines.flow.StateFlow
import java.util.UUID
interface HomeRepository {
val libraries: StateFlow<List<Library>>
@@ -11,6 +11,6 @@ interface HomeRepository {
val continueWatching: StateFlow<List<Media>>
val nextUp: StateFlow<List<Media>>
val latestLibraryContent: StateFlow<Map<UUID, List<Media>>>
suspend fun ensureReady()
suspend fun refreshHomeData()
fun ensureReady()
fun refreshHomeData()
}