Optimize imports

This commit is contained in:
Syer10
2025-10-07 18:24:17 -04:00
parent 534293a7ed
commit a3609bd790
83 changed files with 81 additions and 83 deletions

View File

@@ -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(

View File

@@ -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 {

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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?

View File

@@ -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

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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

View File

@@ -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(

View File

@@ -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()

View File

@@ -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(

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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,

View File

@@ -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,

View File

@@ -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(

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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,

View File

@@ -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,

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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()