Follow the repo move to the be-nj organisation
Some checks failed
Build TV app / build (push) Failing after 2s
Some checks failed
Build TV app / build (push) Failing after 2s
Updater and README point at the new path. The old one redirects, but the updater should not depend on that. Also drops a stale GitHub-specific Accept header. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,8 @@ android {
|
||||
applicationId = "dev.castarr.tv"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionCode = 24
|
||||
versionName = "0.9.1"
|
||||
versionCode = 25
|
||||
versionName = "0.9.2"
|
||||
}
|
||||
|
||||
// Release signing from environment (see ~/.keys/castarr-release.env on the
|
||||
|
||||
@@ -18,12 +18,12 @@ object UpdateChecker {
|
||||
|
||||
private const val TAG = "UpdateChecker"
|
||||
private const val LATEST =
|
||||
"https://git.beckm4nn.net/api/v1/repos/benjamin/castarr/releases/latest"
|
||||
"https://git.beckm4nn.net/api/v1/repos/be-nj/castarr/releases/latest"
|
||||
|
||||
// Release assets need an API token to upload, so the APK is served from
|
||||
// an orphan branch instead — anonymously fetchable on a public repo.
|
||||
private const val APK_FALLBACK =
|
||||
"https://git.beckm4nn.net/benjamin/castarr/raw/branch/apk/castarr.apk"
|
||||
"https://git.beckm4nn.net/be-nj/castarr/raw/branch/apk/castarr.apk"
|
||||
|
||||
private var apkUrl: String = ""
|
||||
|
||||
@@ -103,7 +103,7 @@ object UpdateChecker {
|
||||
return try {
|
||||
connection.connectTimeout = 10_000
|
||||
connection.readTimeout = 15_000
|
||||
connection.setRequestProperty("Accept", "application/vnd.github+json")
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.inputStream.bufferedReader().use { it.readText() }
|
||||
} finally {
|
||||
connection.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user