Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
applicationId = "com.infomaniak.auth"
minSdk = androidMinSdk
targetSdk = appTargetSdk
versionCode = 2_00_004_02
versionCode = 2_00_004_03
versionName = "2.0.4"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import com.google.android.gms.auth.blockstore.StoreBytesData
import com.infomaniak.core.common.cancellable
import com.infomaniak.core.sentry.SentryLog
import com.infomaniak.multiplatform_authenticator.core.PasskeysStorageLocation
import io.sentry.Sentry
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.invoke
import kotlinx.coroutines.tasks.await
Expand Down Expand Up @@ -99,8 +98,7 @@ object BlockStoreBackup {
.build()
val bytes = blockstoreClient.retrieveBytes(retrieveRequest).await().blockstoreDataMap[PASSKEYS_KEY]?.bytes
?: return null
Sentry.addBreadcrumb("readPasskeysBackup(): Trying to decode ${bytes.size} bytes")
return ProtoBuf.decodeFromByteArray(bytes)
return ProtoBuf.decodeFromByteArray<PasskeysBackup>(bytes)
Comment thread
LouisCAD marked this conversation as resolved.
}

private suspend fun applyPasskeysBackup(backup: PasskeysBackup) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
accompanistPermissions = "0.37.3"
authenticatorCore = "1.0.0"
authenticatorCore = "1.0.1"
sonarqube = "7.3.1.8318"

[libraries]
Expand Down
Loading