fix: migrate to new update tracker (#6)
* fix: migrate to new update tracker * Fix download urls --------- Co-authored-by: wingio <wingio@users.noreply.github.com>
This commit is contained in:
parent
555d384571
commit
35eafd1207
3 changed files with 6 additions and 6 deletions
|
@ -14,8 +14,8 @@ android {
|
|||
applicationId = "dev.beefers.vendetta.manager"
|
||||
minSdk = 24
|
||||
targetSdk = 33
|
||||
versionCode = 1073
|
||||
versionName = "1.0.73"
|
||||
versionCode = 1074
|
||||
versionName = "1.0.74"
|
||||
|
||||
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
|
||||
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")
|
||||
|
|
|
@ -20,10 +20,10 @@ class DownloadManager(
|
|||
|
||||
// Discord APK downloading
|
||||
suspend fun downloadDiscordApk(version: String, out: File): File =
|
||||
download("$BACKEND_HOST/download/discord?v=$version", out)
|
||||
download("$BACKEND_HOST/tracker/download/$version/base", out)
|
||||
|
||||
suspend fun downloadSplit(version: String, split: String, out: File): File =
|
||||
download("$BACKEND_HOST/download/discord?v=$version&split=$split", out)
|
||||
download("$BACKEND_HOST/tracker/download/$version/$split", out)
|
||||
|
||||
suspend fun downloadVendetta(out: File) =
|
||||
download(
|
||||
|
@ -128,7 +128,7 @@ class DownloadManager(
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val BACKEND_HOST = "https://aliucord.com/"
|
||||
private const val BACKEND_HOST = "https://vd.k6.tf"
|
||||
}
|
||||
|
||||
}
|
|
@ -20,7 +20,7 @@ class RestService(
|
|||
|
||||
suspend fun getLatestDiscordVersions() = withContext(Dispatchers.IO) {
|
||||
httpService.request<Index> {
|
||||
url("https://discord.k6.tf/index.json")
|
||||
url("https://vd.k6.tf/tracker/index")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue