mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Update SDK
This commit is contained in:
committed by
Benoit Marty
parent
73627d9319
commit
b2306258b4
@@ -166,7 +166,7 @@ test_detekt_test = { module = "io.gitlab.arturbosch.detekt:detekt-test", version
|
|||||||
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
||||||
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
||||||
# only fix API breaks and may add some TODOs.
|
# only fix API breaks and may add some TODOs.
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.10.1"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.10.2"
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||||
|
|||||||
+1
@@ -11,6 +11,7 @@ import io.element.android.libraries.matrix.api.exception.ClientException
|
|||||||
|
|
||||||
sealed class RecoveryException(message: String) : Exception(message) {
|
sealed class RecoveryException(message: String) : Exception(message) {
|
||||||
class SecretStorage(message: String) : RecoveryException(message)
|
class SecretStorage(message: String) : RecoveryException(message)
|
||||||
|
class Import(message: String) : RecoveryException(message)
|
||||||
data object BackupExistsOnServer : RecoveryException("BackupExistsOnServer")
|
data object BackupExistsOnServer : RecoveryException("BackupExistsOnServer")
|
||||||
data class Client(val exception: ClientException) : RecoveryException(exception.message ?: "Unknown error")
|
data class Client(val exception: ClientException) : RecoveryException(exception.message ?: "Unknown error")
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -20,6 +20,9 @@ fun Throwable.mapRecoveryException(): RecoveryException {
|
|||||||
message = errorMessage
|
message = errorMessage
|
||||||
)
|
)
|
||||||
is RustRecoveryException.BackupExistsOnServer -> RecoveryException.BackupExistsOnServer
|
is RustRecoveryException.BackupExistsOnServer -> RecoveryException.BackupExistsOnServer
|
||||||
|
is RustRecoveryException.Import -> RecoveryException.Import(
|
||||||
|
message = errorMessage
|
||||||
|
)
|
||||||
is RustRecoveryException.Client -> RecoveryException.Client(
|
is RustRecoveryException.Client -> RecoveryException.Client(
|
||||||
source.mapClientException()
|
source.mapClientException()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user