mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Optimize imports
This commit is contained in:
@@ -10,10 +10,10 @@ import ca.gosyer.appdirs.AppDirs
|
|||||||
import ca.gosyer.jui.desktop.build.BuildConfig
|
import ca.gosyer.jui.desktop.build.BuildConfig
|
||||||
import ca.gosyer.jui.domain.migration.service.MigrationPreferences
|
import ca.gosyer.jui.domain.migration.service.MigrationPreferences
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.Path.Companion.toPath
|
import okio.Path.Companion.toPath
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class AppMigrations(
|
class AppMigrations(
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
package ca.gosyer.jui.domain
|
package ca.gosyer.jui.domain
|
||||||
|
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.SupervisorJob
|
import kotlinx.coroutines.SupervisorJob
|
||||||
@@ -20,7 +21,6 @@ import kotlinx.coroutines.flow.flatMapLatest
|
|||||||
import kotlinx.coroutines.flow.onStart
|
import kotlinx.coroutines.flow.onStart
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ServerListeners {
|
class ServerListeners {
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
package ca.gosyer.jui.domain.backup.interactor
|
package ca.gosyer.jui.domain.backup.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.client.request.HttpRequestBuilder
|
import io.ktor.client.request.HttpRequestBuilder
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ExportBackupFile(
|
class ExportBackupFile(
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
package ca.gosyer.jui.domain.backup.interactor
|
package ca.gosyer.jui.domain.backup.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.Path
|
import okio.Path
|
||||||
import okio.SYSTEM
|
import okio.SYSTEM
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ImportBackupFile(
|
class ImportBackupFile(
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
package ca.gosyer.jui.domain.backup.interactor
|
package ca.gosyer.jui.domain.backup.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
import ca.gosyer.jui.domain.backup.service.BackupRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.Path
|
import okio.Path
|
||||||
import okio.SYSTEM
|
import okio.SYSTEM
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ValidateBackupFile(
|
class ValidateBackupFile(
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ package ca.gosyer.jui.domain.base
|
|||||||
import ca.gosyer.jui.core.lang.throwIfCancellation
|
import ca.gosyer.jui.core.lang.throwIfCancellation
|
||||||
import ca.gosyer.jui.domain.server.Http
|
import ca.gosyer.jui.domain.server.Http
|
||||||
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.client.plugins.websocket.ws
|
import io.ktor.client.plugins.websocket.ws
|
||||||
import io.ktor.http.URLProtocol
|
import io.ktor.http.URLProtocol
|
||||||
import io.ktor.websocket.Frame
|
import io.ktor.websocket.Frame
|
||||||
@@ -24,7 +25,6 @@ import kotlinx.coroutines.flow.launchIn
|
|||||||
import kotlinx.coroutines.flow.mapLatest
|
import kotlinx.coroutines.flow.mapLatest
|
||||||
import kotlinx.coroutines.flow.receiveAsFlow
|
import kotlinx.coroutines.flow.receiveAsFlow
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@OptIn(DelicateCoroutinesApi::class)
|
@OptIn(DelicateCoroutinesApi::class)
|
||||||
abstract class WebsocketService(
|
abstract class WebsocketService(
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ import ca.gosyer.jui.domain.ServerListeners
|
|||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class AddMangaToCategory(
|
class AddMangaToCategory(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.category.interactor
|
package ca.gosyer.jui.domain.category.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class CreateCategory(
|
class CreateCategory(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.category.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class DeleteCategory(
|
class DeleteCategory(
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
package ca.gosyer.jui.domain.category.interactor
|
package ca.gosyer.jui.domain.category.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetCategories(
|
class GetCategories(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.category.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetMangaCategories(
|
class GetMangaCategories(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.category.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetMangaListFromCategory(
|
class GetMangaListFromCategory(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.category.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ModifyCategory(
|
class ModifyCategory(
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ import ca.gosyer.jui.domain.ServerListeners
|
|||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class RemoveMangaFromCategory(
|
class RemoveMangaFromCategory(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.category.interactor
|
package ca.gosyer.jui.domain.category.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ReorderCategory(
|
class ReorderCategory(
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ package ca.gosyer.jui.domain.category.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
import ca.gosyer.jui.domain.category.service.CategoryRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateCategoryMeta(
|
class UpdateCategoryMeta(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.model.Chapter
|
import ca.gosyer.jui.domain.chapter.model.Chapter
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.jvm.JvmName
|
import kotlin.jvm.JvmName
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.model.Chapter
|
import ca.gosyer.jui.domain.chapter.model.Chapter
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetChapter(
|
class GetChapter(
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
package ca.gosyer.jui.domain.chapter.interactor
|
package ca.gosyer.jui.domain.chapter.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.client.request.HttpRequestBuilder
|
import io.ktor.client.request.HttpRequestBuilder
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetChapterPages(
|
class GetChapterPages(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetChapters(
|
class GetChapters(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class RefreshChapters(
|
class RefreshChapters(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.model.Chapter
|
import ca.gosyer.jui.domain.chapter.model.Chapter
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.jvm.JvmName
|
import kotlin.jvm.JvmName
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.chapter.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.chapter.model.Chapter
|
import ca.gosyer.jui.domain.chapter.model.Chapter
|
||||||
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
import ca.gosyer.jui.domain.chapter.service.ChapterRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateChapterMeta(
|
class UpdateChapterMeta(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class BatchChapterDownload(
|
class BatchChapterDownload(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ClearDownloadQueue(
|
class ClearDownloadQueue(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class QueueChapterDownload(
|
class QueueChapterDownload(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class ReorderChapterDownload(
|
class ReorderChapterDownload(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class StartDownloading(
|
class StartDownloading(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class StopChapterDownload(
|
class StopChapterDownload(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.download.interactor
|
package ca.gosyer.jui.domain.download.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
import ca.gosyer.jui.domain.download.service.DownloadRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class StopDownloading(
|
class StopDownloading(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.extension.interactor
|
package ca.gosyer.jui.domain.extension.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetExtensionList(
|
class GetExtensionList(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.extension.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.extension.model.Extension
|
import ca.gosyer.jui.domain.extension.model.Extension
|
||||||
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class InstallExtension(
|
class InstallExtension(
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
package ca.gosyer.jui.domain.extension.interactor
|
package ca.gosyer.jui.domain.extension.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.Path
|
import okio.Path
|
||||||
import okio.SYSTEM
|
import okio.SYSTEM
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class InstallExtensionFile(
|
class InstallExtensionFile(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.extension.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.extension.model.Extension
|
import ca.gosyer.jui.domain.extension.model.Extension
|
||||||
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UninstallExtension(
|
class UninstallExtension(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.extension.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.extension.model.Extension
|
import ca.gosyer.jui.domain.extension.model.Extension
|
||||||
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
import ca.gosyer.jui.domain.extension.service.ExtensionRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateExtension(
|
class UpdateExtension(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.global.interactor
|
package ca.gosyer.jui.domain.global.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.global.service.GlobalRepository
|
import ca.gosyer.jui.domain.global.service.GlobalRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetGlobalMeta(
|
class GetGlobalMeta(
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ package ca.gosyer.jui.domain.global.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.global.model.GlobalMeta
|
import ca.gosyer.jui.domain.global.model.GlobalMeta
|
||||||
import ca.gosyer.jui.domain.global.service.GlobalRepository
|
import ca.gosyer.jui.domain.global.service.GlobalRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateGlobalMeta(
|
class UpdateGlobalMeta(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.library.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.library.service.LibraryRepository
|
import ca.gosyer.jui.domain.library.service.LibraryRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class AddMangaToLibrary(
|
class AddMangaToLibrary(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.library.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.library.service.LibraryRepository
|
import ca.gosyer.jui.domain.library.service.LibraryRepository
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class RemoveMangaFromLibrary(
|
class RemoveMangaFromLibrary(
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import ca.gosyer.jui.domain.base.WebsocketService
|
|||||||
import ca.gosyer.jui.domain.library.model.UpdateStatus
|
import ca.gosyer.jui.domain.library.model.UpdateStatus
|
||||||
import ca.gosyer.jui.domain.server.Http
|
import ca.gosyer.jui.domain.server.Http
|
||||||
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.websocket.Frame
|
import io.ktor.websocket.Frame
|
||||||
import io.ktor.websocket.readText
|
import io.ktor.websocket.readText
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class LibraryUpdateService(
|
class LibraryUpdateService(
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ package ca.gosyer.jui.domain.manga.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetManga(
|
class GetManga(
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ package ca.gosyer.jui.domain.manga.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class RefreshManga(
|
class RefreshManga(
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ package ca.gosyer.jui.domain.manga.interactor
|
|||||||
import ca.gosyer.jui.domain.ServerListeners
|
import ca.gosyer.jui.domain.ServerListeners
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
import ca.gosyer.jui.domain.manga.service.MangaRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.http.decodeURLQueryComponent
|
import io.ktor.http.decodeURLQueryComponent
|
||||||
import io.ktor.http.encodeURLQueryComponent
|
import io.ktor.http.encodeURLQueryComponent
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateMangaMeta(
|
class UpdateMangaMeta(
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import ca.gosyer.jui.domain.build.BuildKonfig
|
|||||||
import ca.gosyer.jui.domain.server.model.Auth
|
import ca.gosyer.jui.domain.server.model.Auth
|
||||||
import ca.gosyer.jui.domain.server.model.Proxy
|
import ca.gosyer.jui.domain.server.model.Proxy
|
||||||
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
import ca.gosyer.jui.domain.server.service.ServerPreferences
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.client.HttpClient
|
import io.ktor.client.HttpClient
|
||||||
import io.ktor.client.HttpClientConfig
|
import io.ktor.client.HttpClientConfig
|
||||||
import io.ktor.client.engine.HttpClientEngineConfig
|
import io.ktor.client.engine.HttpClientEngineConfig
|
||||||
@@ -30,7 +31,6 @@ import io.ktor.http.URLBuilder
|
|||||||
import io.ktor.http.URLProtocol
|
import io.ktor.http.URLProtocol
|
||||||
import io.ktor.serialization.kotlinx.json.json
|
import io.ktor.serialization.kotlinx.json.json
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.time.Duration.Companion.minutes
|
import kotlin.time.Duration.Companion.minutes
|
||||||
import kotlin.time.Duration.Companion.seconds
|
import kotlin.time.Duration.Companion.seconds
|
||||||
import io.ktor.client.plugins.auth.Auth as AuthPlugin
|
import io.ktor.client.plugins.auth.Auth as AuthPlugin
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.settings.interactor
|
package ca.gosyer.jui.domain.settings.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class AboutServer(
|
class AboutServer(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.settings.interactor
|
package ca.gosyer.jui.domain.settings.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetSettings(
|
class GetSettings(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.settings.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.settings.model.SetSettingsInput
|
import ca.gosyer.jui.domain.settings.model.SetSettingsInput
|
||||||
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
import ca.gosyer.jui.domain.settings.service.SettingsRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class SetSettings(
|
class SetSettings(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.source.model.Source
|
import ca.gosyer.jui.domain.source.model.Source
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetFilterList(
|
class GetFilterList(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.source.model.Source
|
import ca.gosyer.jui.domain.source.model.Source
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetLatestManga(
|
class GetLatestManga(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.source.model.Source
|
import ca.gosyer.jui.domain.source.model.Source
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetPopularManga(
|
class GetPopularManga(
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
import ca.gosyer.jui.domain.source.model.Source
|
import ca.gosyer.jui.domain.source.model.Source
|
||||||
import ca.gosyer.jui.domain.source.model.sourcefilters.SourceFilter
|
import ca.gosyer.jui.domain.source.model.sourcefilters.SourceFilter
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetSearchManga(
|
class GetSearchManga(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.source.interactor
|
package ca.gosyer.jui.domain.source.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetSourceList(
|
class GetSourceList(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.source.model.Source
|
import ca.gosyer.jui.domain.source.model.Source
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetSourceSettings(
|
class GetSourceSettings(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.source.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.source.model.sourcepreference.SourcePreference
|
import ca.gosyer.jui.domain.source.model.sourcepreference.SourcePreference
|
||||||
import ca.gosyer.jui.domain.source.service.SourceRepository
|
import ca.gosyer.jui.domain.source.service.SourceRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class SetSourceSetting(
|
class SetSourceSetting(
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import ca.gosyer.jui.domain.ServerListeners
|
|||||||
import ca.gosyer.jui.domain.manga.interactor.GetManga
|
import ca.gosyer.jui.domain.manga.interactor.GetManga
|
||||||
import ca.gosyer.jui.domain.manga.model.Manga
|
import ca.gosyer.jui.domain.manga.model.Manga
|
||||||
import ca.gosyer.jui.domain.source.model.MangaPage
|
import ca.gosyer.jui.domain.source.model.MangaPage
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.SupervisorJob
|
import kotlinx.coroutines.SupervisorJob
|
||||||
@@ -27,7 +28,6 @@ import kotlinx.coroutines.launch
|
|||||||
import kotlinx.coroutines.sync.Mutex
|
import kotlinx.coroutines.sync.Mutex
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
fun interface GetMangaPage {
|
fun interface GetMangaPage {
|
||||||
suspend fun get(page: Int): MangaPage?
|
suspend fun get(page: Int): MangaPage?
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
package ca.gosyer.jui.domain.source.model.sourcefilters
|
package ca.gosyer.jui.domain.source.model.sourcefilters
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.encodeToString
|
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
package ca.gosyer.jui.domain.source.model.sourcepreference
|
package ca.gosyer.jui.domain.source.model.sourcepreference
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.encodeToString
|
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.updates.interactor
|
package ca.gosyer.jui.domain.updates.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GetRecentUpdates(
|
class GetRecentUpdates(
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ package ca.gosyer.jui.domain.updates.interactor
|
|||||||
|
|
||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateCategory(
|
class UpdateCategory(
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import ca.gosyer.jui.domain.build.BuildKonfig
|
|||||||
import ca.gosyer.jui.domain.server.Http
|
import ca.gosyer.jui.domain.server.Http
|
||||||
import ca.gosyer.jui.domain.updates.model.GithubRelease
|
import ca.gosyer.jui.domain.updates.model.GithubRelease
|
||||||
import ca.gosyer.jui.domain.updates.service.UpdatePreferences
|
import ca.gosyer.jui.domain.updates.service.UpdatePreferences
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import io.ktor.client.call.body
|
import io.ktor.client.call.body
|
||||||
import io.ktor.client.request.get
|
import io.ktor.client.request.get
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
@@ -19,7 +20,6 @@ import kotlinx.coroutines.flow.flow
|
|||||||
import kotlinx.coroutines.flow.flowOn
|
import kotlinx.coroutines.flow.flowOn
|
||||||
import kotlinx.coroutines.flow.singleOrNull
|
import kotlinx.coroutines.flow.singleOrNull
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateChecker(
|
class UpdateChecker(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
package ca.gosyer.jui.domain.updates.interactor
|
package ca.gosyer.jui.domain.updates.interactor
|
||||||
|
|
||||||
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
import ca.gosyer.jui.domain.updates.service.UpdatesRepository
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.catch
|
import kotlinx.coroutines.flow.catch
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdateLibrary(
|
class UpdateLibrary(
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import ca.gosyer.jui.core.io.copyTo
|
|||||||
import ca.gosyer.jui.core.io.userDataDir
|
import ca.gosyer.jui.core.io.userDataDir
|
||||||
import ca.gosyer.jui.core.lang.withIOContext
|
import ca.gosyer.jui.core.lang.withIOContext
|
||||||
import ca.gosyer.jui.domain.build.BuildKonfig
|
import ca.gosyer.jui.domain.build.BuildKonfig
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
@@ -27,7 +28,6 @@ import okio.Path
|
|||||||
import okio.Path.Companion.toPath
|
import okio.Path.Companion.toPath
|
||||||
import okio.buffer
|
import okio.buffer
|
||||||
import okio.source
|
import okio.source
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import java.io.File.pathSeparatorChar
|
import java.io.File.pathSeparatorChar
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.io.Reader
|
import java.io.Reader
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import ca.gosyer.jui.domain.category.interactor.ReorderCategory
|
|||||||
import ca.gosyer.jui.domain.category.model.Category
|
import ca.gosyer.jui.domain.category.model.Category
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.minus
|
import kotlinx.collections.immutable.minus
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
@@ -25,7 +26,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
|||||||
import kotlinx.coroutines.flow.asStateFlow
|
import kotlinx.coroutines.flow.asStateFlow
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class CategoriesScreenViewModel(
|
class CategoriesScreenViewModel(
|
||||||
|
|||||||
@@ -57,13 +57,13 @@ import ca.gosyer.jui.uicore.components.VerticalScrollbar
|
|||||||
import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter
|
import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter
|
||||||
import ca.gosyer.jui.uicore.components.scrollbarPadding
|
import ca.gosyer.jui.uicore.components.scrollbarPadding
|
||||||
import ca.gosyer.jui.uicore.resources.stringResource
|
import ca.gosyer.jui.uicore.resources.stringResource
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import com.vanpra.composematerialdialogs.rememberMaterialDialogState
|
import com.vanpra.composematerialdialogs.rememberMaterialDialogState
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.coroutines.CoroutineExceptionHandler
|
import kotlinx.coroutines.CoroutineExceptionHandler
|
||||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
private val log = logging()
|
private val log = logging()
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import ca.gosyer.jui.domain.download.interactor.StopDownloading
|
|||||||
import ca.gosyer.jui.domain.download.service.DownloadService
|
import ca.gosyer.jui.domain.download.service.DownloadService
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
@@ -29,7 +30,6 @@ import kotlinx.coroutines.flow.stateIn
|
|||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class DownloadsScreenViewModel(
|
class DownloadsScreenViewModel(
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import ca.gosyer.jui.domain.extension.service.ExtensionPreferences
|
|||||||
import ca.gosyer.jui.i18n.MR
|
import ca.gosyer.jui.i18n.MR
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.persistentSetOf
|
import kotlinx.collections.immutable.persistentSetOf
|
||||||
@@ -38,7 +39,6 @@ import kotlinx.coroutines.launch
|
|||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.Source
|
import okio.Source
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import ca.gosyer.jui.ui.base.state.getStateFlow
|
|||||||
import ca.gosyer.jui.ui.util.lang.CollatorComparator
|
import ca.gosyer.jui.ui.util.lang.CollatorComparator
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -49,7 +50,6 @@ import kotlinx.coroutines.flow.toList
|
|||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Stable
|
@Stable
|
||||||
sealed class LibraryState {
|
sealed class LibraryState {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import ca.gosyer.jui.domain.updates.interactor.UpdateChecker.Update
|
|||||||
import ca.gosyer.jui.i18n.MR
|
import ca.gosyer.jui.i18n.MR
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.flow.MutableSharedFlow
|
import kotlinx.coroutines.flow.MutableSharedFlow
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.SharingStarted
|
import kotlinx.coroutines.flow.SharingStarted
|
||||||
@@ -23,7 +24,6 @@ import kotlinx.coroutines.flow.map
|
|||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.time.Instant
|
import kotlin.time.Instant
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ import ca.gosyer.jui.domain.base.WebsocketService.Actions
|
|||||||
import ca.gosyer.jui.domain.library.service.LibraryUpdateService
|
import ca.gosyer.jui.domain.library.service.LibraryUpdateService
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.MainScope
|
import kotlinx.coroutines.MainScope
|
||||||
import kotlinx.coroutines.cancel
|
import kotlinx.coroutines.cancel
|
||||||
import kotlinx.coroutines.flow.asStateFlow
|
import kotlinx.coroutines.flow.asStateFlow
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class LibraryUpdatesViewModel(
|
class LibraryUpdatesViewModel(
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import ca.gosyer.jui.ui.base.chapter.ChapterDownloadState
|
|||||||
import ca.gosyer.jui.ui.base.model.StableHolder
|
import ca.gosyer.jui.ui.base.model.StableHolder
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -53,7 +54,6 @@ import kotlinx.coroutines.flow.stateIn
|
|||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class MangaScreenViewModel(
|
class MangaScreenViewModel(
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import ca.gosyer.jui.ui.base.image.BitmapDecoderFactory
|
|||||||
import ca.gosyer.jui.ui.reader.loader.PagesState
|
import ca.gosyer.jui.ui.reader.loader.PagesState
|
||||||
import ca.gosyer.jui.ui.reader.loader.TachideskPageLoader
|
import ca.gosyer.jui.ui.reader.loader.TachideskPageLoader
|
||||||
import ca.gosyer.jui.ui.reader.model.ReaderChapter
|
import ca.gosyer.jui.ui.reader.model.ReaderChapter
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import com.seiko.imageloader.cache.disk.DiskCache
|
import com.seiko.imageloader.cache.disk.DiskCache
|
||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
||||||
import kotlinx.coroutines.flow.dropWhile
|
import kotlinx.coroutines.flow.dropWhile
|
||||||
@@ -20,7 +21,6 @@ import kotlinx.coroutines.flow.filterIsInstance
|
|||||||
import kotlinx.coroutines.flow.launchIn
|
import kotlinx.coroutines.flow.launchIn
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.coroutines.flow.take
|
import kotlinx.coroutines.flow.take
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
class ChapterLoader(
|
class ChapterLoader(
|
||||||
private val readerPreferences: ReaderPreferences,
|
private val readerPreferences: ReaderPreferences,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import ca.gosyer.jui.ui.base.model.StableHolder
|
|||||||
import ca.gosyer.jui.ui.reader.model.ReaderChapter
|
import ca.gosyer.jui.ui.reader.model.ReaderChapter
|
||||||
import ca.gosyer.jui.ui.reader.model.ReaderPage
|
import ca.gosyer.jui.ui.reader.model.ReaderPage
|
||||||
import cafe.adriel.voyager.core.concurrent.AtomicInt32
|
import cafe.adriel.voyager.core.concurrent.AtomicInt32
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import com.seiko.imageloader.asImageBitmap
|
import com.seiko.imageloader.asImageBitmap
|
||||||
import com.seiko.imageloader.cache.disk.DiskCache
|
import com.seiko.imageloader.cache.disk.DiskCache
|
||||||
import com.seiko.imageloader.component.decoder.DecodeResult
|
import com.seiko.imageloader.component.decoder.DecodeResult
|
||||||
@@ -49,7 +50,6 @@ import okio.BufferedSource
|
|||||||
import okio.FileSystem
|
import okio.FileSystem
|
||||||
import okio.buffer
|
import okio.buffer
|
||||||
import okio.use
|
import okio.use
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
class TachideskPageLoader(
|
class TachideskPageLoader(
|
||||||
val chapter: ReaderChapter,
|
val chapter: ReaderChapter,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import androidx.compose.runtime.Immutable
|
|||||||
import ca.gosyer.jui.domain.chapter.model.Chapter
|
import ca.gosyer.jui.domain.chapter.model.Chapter
|
||||||
import ca.gosyer.jui.ui.reader.loader.PageLoader
|
import ca.gosyer.jui.ui.reader.loader.PageLoader
|
||||||
import ca.gosyer.jui.ui.reader.loader.PagesState
|
import ca.gosyer.jui.ui.reader.loader.PagesState
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
@@ -21,7 +22,6 @@ import kotlinx.coroutines.flow.asStateFlow
|
|||||||
import kotlinx.coroutines.flow.filterIsInstance
|
import kotlinx.coroutines.flow.filterIsInstance
|
||||||
import kotlinx.coroutines.flow.flatMapLatest
|
import kotlinx.coroutines.flow.flatMapLatest
|
||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Immutable
|
@Immutable
|
||||||
data class ReaderChapter(
|
data class ReaderChapter(
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import ca.gosyer.jui.uicore.vm.ViewModel
|
|||||||
import cafe.adriel.voyager.core.screen.Screen
|
import cafe.adriel.voyager.core.screen.Screen
|
||||||
import cafe.adriel.voyager.core.screen.ScreenKey
|
import cafe.adriel.voyager.core.screen.ScreenKey
|
||||||
import cafe.adriel.voyager.core.screen.uniqueScreenKey
|
import cafe.adriel.voyager.core.screen.uniqueScreenKey
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.currentCoroutineContext
|
import kotlinx.coroutines.currentCoroutineContext
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import kotlinx.coroutines.flow.SharingStarted
|
import kotlinx.coroutines.flow.SharingStarted
|
||||||
@@ -54,7 +55,6 @@ import kotlinx.coroutines.flow.flow
|
|||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import kotlinx.coroutines.isActive
|
import kotlinx.coroutines.isActive
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.time.Duration.Companion.seconds
|
import kotlin.time.Duration.Companion.seconds
|
||||||
|
|
||||||
class SettingsAdvancedScreen : Screen {
|
class SettingsAdvancedScreen : Screen {
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ import ca.gosyer.jui.uicore.vm.ViewModel
|
|||||||
import cafe.adriel.voyager.core.screen.Screen
|
import cafe.adriel.voyager.core.screen.Screen
|
||||||
import cafe.adriel.voyager.core.screen.ScreenKey
|
import cafe.adriel.voyager.core.screen.ScreenKey
|
||||||
import cafe.adriel.voyager.core.screen.uniqueScreenKey
|
import cafe.adriel.voyager.core.screen.uniqueScreenKey
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import com.vanpra.composematerialdialogs.MaterialDialog
|
import com.vanpra.composematerialdialogs.MaterialDialog
|
||||||
import com.vanpra.composematerialdialogs.MaterialDialogState
|
import com.vanpra.composematerialdialogs.MaterialDialogState
|
||||||
import com.vanpra.composematerialdialogs.listItems
|
import com.vanpra.composematerialdialogs.listItems
|
||||||
@@ -95,7 +96,6 @@ import okio.Path
|
|||||||
import okio.Sink
|
import okio.Sink
|
||||||
import okio.Source
|
import okio.Source
|
||||||
import okio.buffer
|
import okio.buffer
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
|
|
||||||
class SettingsBackupScreen : Screen {
|
class SettingsBackupScreen : Screen {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import ca.gosyer.jui.ui.base.state.SavedStateHandle
|
|||||||
import ca.gosyer.jui.ui.base.state.getStateFlow
|
import ca.gosyer.jui.ui.base.state.getStateFlow
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
import kotlinx.coroutines.cancel
|
import kotlinx.coroutines.cancel
|
||||||
@@ -31,7 +32,6 @@ import kotlinx.coroutines.flow.map
|
|||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
class SourceScreenViewModel(
|
class SourceScreenViewModel(
|
||||||
private val source: Source,
|
private val source: Source,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import ca.gosyer.jui.ui.base.state.getStateFlow
|
|||||||
import ca.gosyer.jui.ui.sources.browse.filter.model.SourceFiltersView
|
import ca.gosyer.jui.ui.sources.browse.filter.model.SourceFiltersView
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -24,7 +25,6 @@ import kotlinx.coroutines.flow.mapLatest
|
|||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
class SourceFiltersViewModel(
|
class SourceFiltersViewModel(
|
||||||
private val sourceId: Long,
|
private val sourceId: Long,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import ca.gosyer.jui.ui.base.state.SavedStateHandle
|
|||||||
import ca.gosyer.jui.ui.base.state.getStateFlow
|
import ca.gosyer.jui.ui.base.state.getStateFlow
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -41,7 +42,6 @@ import kotlinx.coroutines.sync.Semaphore
|
|||||||
import kotlinx.coroutines.sync.withPermit
|
import kotlinx.coroutines.sync.withPermit
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class GlobalSearchViewModel(
|
class GlobalSearchViewModel(
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import ca.gosyer.jui.ui.base.state.SavedStateHandle
|
|||||||
import ca.gosyer.jui.ui.base.state.getStateFlow
|
import ca.gosyer.jui.ui.base.state.getStateFlow
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.persistentSetOf
|
import kotlinx.collections.immutable.persistentSetOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -32,7 +33,6 @@ import kotlinx.coroutines.flow.onEach
|
|||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class SourceHomeScreenViewModel(
|
class SourceHomeScreenViewModel(
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import ca.gosyer.jui.domain.source.model.sourcepreference.SourcePreference
|
|||||||
import ca.gosyer.jui.ui.sources.settings.model.SourceSettingsView
|
import ca.gosyer.jui.ui.sources.settings.model.SourceSettingsView
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -26,7 +27,6 @@ import kotlinx.coroutines.flow.onEach
|
|||||||
import kotlinx.coroutines.supervisorScope
|
import kotlinx.coroutines.supervisorScope
|
||||||
import me.tatarka.inject.annotations.Assisted
|
import me.tatarka.inject.annotations.Assisted
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class SourceSettingsScreenViewModel(
|
class SourceSettingsScreenViewModel(
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import ca.gosyer.jui.domain.updates.interactor.UpdatesPager
|
|||||||
import ca.gosyer.jui.ui.base.chapter.ChapterDownloadItem
|
import ca.gosyer.jui.ui.base.chapter.ChapterDownloadItem
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.persistentListOf
|
import kotlinx.collections.immutable.persistentListOf
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -38,7 +39,6 @@ import kotlinx.coroutines.flow.onEach
|
|||||||
import kotlinx.coroutines.flow.stateIn
|
import kotlinx.coroutines.flow.stateIn
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class UpdatesScreenViewModel(
|
class UpdatesScreenViewModel(
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ package ca.gosyer.jui.ui.main.components
|
|||||||
import ca.gosyer.jui.domain.updates.interactor.UpdateChecker
|
import ca.gosyer.jui.domain.updates.interactor.UpdateChecker
|
||||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||||
import ca.gosyer.jui.uicore.vm.ViewModel
|
import ca.gosyer.jui.uicore.vm.ViewModel
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import kotlinx.coroutines.MainScope
|
import kotlinx.coroutines.MainScope
|
||||||
import kotlinx.coroutines.cancel
|
import kotlinx.coroutines.cancel
|
||||||
import kotlinx.coroutines.flow.SharingStarted
|
import kotlinx.coroutines.flow.SharingStarted
|
||||||
@@ -16,7 +17,6 @@ import kotlinx.coroutines.flow.catch
|
|||||||
import kotlinx.coroutines.flow.filterIsInstance
|
import kotlinx.coroutines.flow.filterIsInstance
|
||||||
import kotlinx.coroutines.flow.shareIn
|
import kotlinx.coroutines.flow.shareIn
|
||||||
import me.tatarka.inject.annotations.Inject
|
import me.tatarka.inject.annotations.Inject
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
class TrayViewModel(
|
class TrayViewModel(
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ import androidx.compose.ui.graphics.drawscope.DrawScope.Companion.DefaultFilterQ
|
|||||||
import androidx.compose.ui.layout.ContentScale
|
import androidx.compose.ui.layout.ContentScale
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import ca.gosyer.jui.uicore.components.LoadingScreen
|
import ca.gosyer.jui.uicore.components.LoadingScreen
|
||||||
|
import com.diamondedge.logging.logging
|
||||||
import com.seiko.imageloader.model.ImageAction
|
import com.seiko.imageloader.model.ImageAction
|
||||||
import com.seiko.imageloader.model.ImageRequest
|
import com.seiko.imageloader.model.ImageRequest
|
||||||
import com.seiko.imageloader.rememberImageAction
|
import com.seiko.imageloader.rememberImageAction
|
||||||
import com.seiko.imageloader.rememberImageActionPainter
|
import com.seiko.imageloader.rememberImageActionPainter
|
||||||
import com.seiko.imageloader.rememberImagePainter
|
import com.seiko.imageloader.rememberImagePainter
|
||||||
import com.diamondedge.logging.logging
|
|
||||||
|
|
||||||
private val log = logging()
|
private val log = logging()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user