feat: in-app self-updating via GitHub Releases, CI/CD pipeline, and R2 config re-fetching
Build & Release Android APK / Build & Publish Release APK (push) Waiting to run

This commit is contained in:
Vaishno Singh
2026-11-18 23:42:22 +05:30
parent 583f421d7f
commit 57b96a21f2
13 changed files with 1094 additions and 9 deletions
@@ -0,0 +1,30 @@
package com.expapp.trigger.update
import java.io.File
data class ReleaseInfo(
val tagName: String,
val versionName: String,
val title: String,
val changelog: String,
val downloadUrl: String,
val apkFileName: String,
val sizeBytes: Long
)
sealed class UpdateCheckResult {
data class UpdateAvailable(val info: ReleaseInfo) : UpdateCheckResult()
object UpToDate : UpdateCheckResult()
data class Error(val message: String) : UpdateCheckResult()
}
sealed class DownloadState {
object Idle : DownloadState()
data class Downloading(
val progressPercent: Int,
val bytesDownloaded: Long,
val totalBytes: Long
) : DownloadState()
data class ReadyToInstall(val apkFile: File) : DownloadState()
data class Failed(val error: String) : DownloadState()
}