Add new build type for weekly preview (#6067)

This adds new build type for minified non-debuggable preview builds.
"debugFull" is removed and "debug" will be unminified.

**It means preview build action needs to be updated to build "standardPreview"**
This commit is contained in:
Ivan Iskandar
2021-10-09 21:28:43 +07:00
committed by GitHub
parent e98f90b099
commit 7e61900cf5
3 changed files with 34 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ class AppUpdateChecker {
private val preferences: PreferencesHelper by injectLazy()
private val repo: String by lazy {
if (BuildConfig.DEBUG) {
if (BuildConfig.PREVIEW) {
"tachiyomiorg/tachiyomi-preview"
} else {
"tachiyomiorg/tachiyomi"
@@ -46,7 +46,7 @@ class AppUpdateChecker {
// Removes prefixes like "r" or "v"
val newVersion = versionTag.replace("[^\\d.]".toRegex(), "")
return if (BuildConfig.DEBUG) {
return if (BuildConfig.PREVIEW) {
// Preview builds: based on releases in "tachiyomiorg/tachiyomi-preview" repo
// tagged as something like "r1234"
newVersion.toInt() > BuildConfig.COMMIT_COUNT.toInt()