mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-04 23:17:52 +02:00
@ -138,7 +138,7 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync
|
|||||||
try {
|
try {
|
||||||
val gzipInputStream = GZIPInputStream(ByteArrayInputStream(outputStream.toByteArray()))
|
val gzipInputStream = GZIPInputStream(ByteArrayInputStream(outputStream.toByteArray()))
|
||||||
val syncData = json.decodeFromString<SyncData>(gzipInputStream.reader(Charsets.UTF_8).readText())
|
val syncData = json.decodeFromString<SyncData>(gzipInputStream.reader(Charsets.UTF_8).readText())
|
||||||
logcat(LogPriority.DEBUG) { "JSON deserialized successfully with kotlinx.serialization" }
|
logcat(LogPriority.DEBUG) { "JSON deserialized successfully" }
|
||||||
syncData
|
syncData
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
logcat(
|
logcat(
|
||||||
|
Reference in New Issue
Block a user