Update app repo URL

This commit is contained in:
arkon
2020-12-15 15:56:16 -05:00
parent 28a23452f2
commit 04fff91e23
6 changed files with 22 additions and 22 deletions

View File

@ -9,9 +9,9 @@ class GithubUpdateChecker {
private val repo: String by lazy {
if (BuildConfig.DEBUG) {
"tachiyomiorg/android-app-preview"
"tachiyomiorg/tachiyomi-preview"
} else {
"inorichi/tachiyomi"
"tachiyomiorg/tachiyomi"
}
}
@ -31,11 +31,11 @@ class GithubUpdateChecker {
val newVersion = versionTag.replace("[^\\d.]".toRegex(), "")
return if (BuildConfig.DEBUG) {
// Preview builds: based on releases in "tachiyomiorg/android-app-preview" repo
// Preview builds: based on releases in "tachiyomiorg/tachiyomi-preview" repo
// tagged as something like "r1234"
newVersion.toInt() > BuildConfig.COMMIT_COUNT.toInt()
} else {
// Release builds: based on releases in "inorichi/tachiyomi" repo
// Release builds: based on releases in "tachiyomiorg/tachiyomi" repo
// tagged as something like "v0.1.2"
newVersion != BuildConfig.VERSION_NAME
}

View File

@ -16,7 +16,7 @@ class WhatsNewDialogController(bundle: Bundle? = null) : DialogController(bundle
.title(text = activity!!.getString(R.string.updated_version, BuildConfig.VERSION_NAME))
.positiveButton(android.R.string.ok)
.neutralButton(R.string.whats_new) {
val url = "https://github.com/inorichi/tachiyomi/releases/tag/v${BuildConfig.VERSION_NAME}"
val url = "https://github.com/tachiyomiorg/tachiyomi/releases/tag/v${BuildConfig.VERSION_NAME}"
val intent = Intent(Intent.ACTION_VIEW, url.toUri())
startActivity(intent)
}

View File

@ -72,9 +72,9 @@ class AboutController : SettingsController() {
onClick {
val url = if (BuildConfig.DEBUG) {
"https://github.com/inorichi/tachiyomi/commits/dev"
"https://github.com/tachiyomiorg/tachiyomi/commits/dev"
} else {
"https://github.com/inorichi/tachiyomi/releases/tag/v${BuildConfig.VERSION_NAME}"
"https://github.com/tachiyomiorg/tachiyomi/releases/tag/v${BuildConfig.VERSION_NAME}"
}
val intent = Intent(Intent.ACTION_VIEW, url.toUri())
@ -87,7 +87,7 @@ class AboutController : SettingsController() {
titleRes = R.string.notices
onClick {
val intent = Intent(Intent.ACTION_VIEW, "https://github.com/inorichi/tachiyomi/blob/dev/PREVIEW_RELEASE_NOTES.md".toUri())
val intent = Intent(Intent.ACTION_VIEW, "https://github.com/tachiyomiorg/tachiyomi/blob/dev/PREVIEW_RELEASE_NOTES.md".toUri())
startActivity(intent)
}
}
@ -117,7 +117,7 @@ class AboutController : SettingsController() {
preference {
key = "pref_about_github"
title = "GitHub"
val url = "https://github.com/inorichi/tachiyomi"
val url = "https://github.com/tachiyomiorg/tachiyomi"
summary = url
onClick {
val intent = Intent(Intent.ACTION_VIEW, url.toUri())