chore: Sync project [skip ci]

This commit is contained in:
Ahmad Ansori Palembani 2024-10-02 08:31:42 +07:00
parent 5ba3600c28
commit 04d0003963
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 7 additions and 9 deletions

View file

@ -35,7 +35,7 @@ body:
required: true
- label: If this is an issue with an extension, or a request for an extension, I should be contacting the extensions repository's maintainer/support for help.
required: true
- label: I have updated the app to version **[1.8.5.7](https://github.com/null2264/yokai/releases/latest)**.
- label: I have updated the app to version **[1.8.5.8](https://github.com/null2264/yokai/releases/latest)**.
required: true
- label: I have checked through the app settings for my feature.
required: true

View file

@ -100,7 +100,7 @@ body:
required: true
- label: I have tried the [troubleshooting guide](https://mihon.app/help/).
required: true
- label: I have updated the app to version **[1.8.5.7](https://github.com/null2264/yokai/releases/latest)**.
- label: I have updated the app to version **[1.8.5.8](https://github.com/null2264/yokai/releases/latest)**.
required: true
- label: I have updated all installed extensions.
required: true

View file

@ -31,7 +31,7 @@ fun runCommand(command: String): String {
return String(byteOut.toByteArray()).trim()
}
val _versionName = "1.8.5.7"
val _versionName = "1.8.5.8"
val betaCount by lazy {
val betaTags = runCommand("git tag -l --sort=refname v${_versionName}-b*")
@ -54,7 +54,7 @@ val supportedAbis = setOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
android {
defaultConfig {
applicationId = "eu.kanade.tachiyomi"
versionCode = 148
versionCode = 149
versionName = _versionName
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled = true

View file

@ -18,9 +18,7 @@ import okio.gzip
import okio.sink
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import uy.kohesive.injekt.injectLazy
import yokai.domain.backup.BackupPreferences
import yokai.domain.storage.StorageManager
import yokai.i18n.MR
import yokai.util.lang.getString
import java.io.FileOutputStream
@ -73,10 +71,10 @@ class BackupCreator(
dir?.createFile(Backup.getBackupFilename())
} else {
UniFile.fromUri(context, uri)
}
} ?: throw IllegalStateException("Unable to retrieve backup destination")
if (file == null || !file.isFile) {
throw IllegalStateException("Unable to create backup file")
if (!file.isFile) {
throw IllegalStateException("Invalid backup destination")
}
val backupManga = mangaBackupCreator(getDatabaseManga(options.readManga), options)