backend implementation

This commit is contained in:
2026-07-25 21:54:24 +03:00
parent c49a5ed087
commit 9254829c5d
28 changed files with 130 additions and 35 deletions
@@ -0,0 +1,9 @@
package ru.shadowsparky.updater.domain
interface UpdateFetcher {
suspend fun fetch(versionCode: Long): UpdateInfo
companion object {
const val ARG_VERSION_CODE = "versionCode"
}
}
@@ -0,0 +1,12 @@
package ru.shadowsparky.updater.domain
import kotlinx.serialization.Serializable
@Serializable
data class UpdateInfo(
val versionCode: Long? = null,
val versionName: String? = null,
val url: String? = null,
val changelog: String? = null,
val force: Boolean = false
)