chore: upgrade ktlint to 1.8.0 and format codebase (#1024)

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57
2026-08-31 12:27:40 +03:00
committed by GitHub
co-authored by M57
parent 3f3b853758
commit cfe3e736fd
66 changed files with 1287 additions and 541 deletions
@@ -13,7 +13,9 @@ sealed interface AppUpdateState {
data object Checking : AppUpdateState
/** Latest release equals the installed version. */
data class UpToDate(val latestTag: String) : AppUpdateState
data class UpToDate(
val latestTag: String,
) : AppUpdateState
/** A newer release with an APK asset exists. */
data class UpdateAvailable(
@@ -24,15 +26,21 @@ sealed interface AppUpdateState {
) : AppUpdateState
/** APK download in progress; [progress] is 0..1. */
data class Downloading(val progress: Float) : AppUpdateState
data class Downloading(
val progress: Float,
) : AppUpdateState
/** Download finished and the system package installer was launched. */
data class Installing(val latestTag: String) : AppUpdateState
data class Installing(
val latestTag: String,
) : AppUpdateState
/** Install-from-unknown-sources not granted for this app yet. */
data object NeedsUnknownSourcesPermission : AppUpdateState
data class Error(val message: String) : AppUpdateState
data class Error(
val message: String,
) : AppUpdateState
}
/** The release tag a state carries, when it carries one. */