From 41d7cee020682bf75fb1620b9792ff6793c50f9c Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 12 Feb 2021 11:06:54 -0500 Subject: [PATCH] Remove ExperimentalSerializationApi opt-in annotations --- .../eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt | 2 -- .../eu/kanade/tachiyomi/data/backup/full/FullBackupRestore.kt | 2 -- .../tachiyomi/data/backup/full/FullBackupRestoreValidator.kt | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt index a11bb8967..ab5ad6648 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt @@ -29,7 +29,6 @@ import eu.kanade.tachiyomi.data.database.models.Track import eu.kanade.tachiyomi.data.database.models.toMangaInfo import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.source.model.toSManga -import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.protobuf.ProtoBuf import okio.buffer import okio.gzip @@ -37,7 +36,6 @@ import okio.sink import timber.log.Timber import kotlin.math.max -@OptIn(ExperimentalSerializationApi::class) class FullBackupManager(context: Context) : AbstractBackupManager(context) { val parser = ProtoBuf diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestore.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestore.kt index 3fe4b0a90..ce306f26c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestore.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestore.kt @@ -14,13 +14,11 @@ import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.data.database.models.Track import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.util.lang.launchIO -import kotlinx.serialization.ExperimentalSerializationApi import okio.buffer import okio.gzip import okio.source import java.util.Date -@OptIn(ExperimentalSerializationApi::class) class FullBackupRestore(context: Context, notifier: BackupNotifier, private val online: Boolean) : AbstractBackupRestore(context, notifier) { override fun performRestore(uri: Uri): Boolean { diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestoreValidator.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestoreValidator.kt index 4cb30234c..90e6be5c1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestoreValidator.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupRestoreValidator.kt @@ -5,12 +5,10 @@ import android.net.Uri import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.backup.AbstractBackupRestoreValidator import eu.kanade.tachiyomi.data.backup.full.models.BackupSerializer -import kotlinx.serialization.ExperimentalSerializationApi import okio.buffer import okio.gzip import okio.source -@OptIn(ExperimentalSerializationApi::class) class FullBackupRestoreValidator : AbstractBackupRestoreValidator() { /** * Checks for critical backup file data.