Fix what's new link in dialog

This commit is contained in:
arkon
2021-10-23 17:29:27 -04:00
parent 93e2b88d41
commit 22ed163c8f
3 changed files with 14 additions and 7 deletions

View File

@@ -70,3 +70,13 @@ val GITHUB_REPO: String by lazy {
"tachiyomiorg/tachiyomi"
}
}
val RELEASE_TAG: String by lazy {
if (BuildConfig.PREVIEW) {
"r${BuildConfig.COMMIT_COUNT}"
} else {
"v${BuildConfig.VERSION_NAME}"
}
}
val RELEASE_URL = "https://github.com/$GITHUB_REPO/releases/tag/$RELEASE_TAG"