Skip to content

Commit e49140e

Browse files
author
github-actions
committed
Bump crypto version to 0.11.0 (matrix-rust-crypto-sdk 1e938df90d90b5d0a423499dea42e01167b4f428)
1 parent fbcad76 commit e49140e

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsCrypto {
22
const val majorVersion = 0
3-
const val minorVersion = 6
3+
const val minorVersion = 11
44
const val patchVersion = 0
55
}

crypto/crypto-android/src/main/kotlin/org/matrix/rustcomponents/sdk/crypto/matrix_sdk_crypto_ffi.kt

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10567,6 +10567,8 @@ sealed class DehydrationException(message: String): kotlin.Exception(message) {
1056710567

1056810568
class Pickle(message: String) : DehydrationException(message)
1056910569

10570+
class LegacyPickle(message: String) : DehydrationException(message)
10571+
1057010572
class MissingSigningKey(message: String) : DehydrationException(message)
1057110573

1057210574
class Json(message: String) : DehydrationException(message)
@@ -10588,11 +10590,12 @@ public object FfiConverterTypeDehydrationError : FfiConverterRustBuffer<Dehydrat
1058810590

1058910591
return when(buf.getInt()) {
1059010592
1 -> DehydrationException.Pickle(FfiConverterString.read(buf))
10591-
2 -> DehydrationException.MissingSigningKey(FfiConverterString.read(buf))
10592-
3 -> DehydrationException.Json(FfiConverterString.read(buf))
10593-
4 -> DehydrationException.Store(FfiConverterString.read(buf))
10594-
5 -> DehydrationException.PickleKeyLength(FfiConverterString.read(buf))
10595-
6 -> DehydrationException.Rand(FfiConverterString.read(buf))
10593+
2 -> DehydrationException.LegacyPickle(FfiConverterString.read(buf))
10594+
3 -> DehydrationException.MissingSigningKey(FfiConverterString.read(buf))
10595+
4 -> DehydrationException.Json(FfiConverterString.read(buf))
10596+
5 -> DehydrationException.Store(FfiConverterString.read(buf))
10597+
6 -> DehydrationException.PickleKeyLength(FfiConverterString.read(buf))
10598+
7 -> DehydrationException.Rand(FfiConverterString.read(buf))
1059610599
else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
1059710600
}
1059810601

@@ -10608,26 +10611,30 @@ public object FfiConverterTypeDehydrationError : FfiConverterRustBuffer<Dehydrat
1060810611
buf.putInt(1)
1060910612
Unit
1061010613
}
10611-
is DehydrationException.MissingSigningKey -> {
10614+
is DehydrationException.LegacyPickle -> {
1061210615
buf.putInt(2)
1061310616
Unit
1061410617
}
10615-
is DehydrationException.Json -> {
10618+
is DehydrationException.MissingSigningKey -> {
1061610619
buf.putInt(3)
1061710620
Unit
1061810621
}
10619-
is DehydrationException.Store -> {
10622+
is DehydrationException.Json -> {
1062010623
buf.putInt(4)
1062110624
Unit
1062210625
}
10623-
is DehydrationException.PickleKeyLength -> {
10626+
is DehydrationException.Store -> {
1062410627
buf.putInt(5)
1062510628
Unit
1062610629
}
10627-
is DehydrationException.Rand -> {
10630+
is DehydrationException.PickleKeyLength -> {
1062810631
buf.putInt(6)
1062910632
Unit
1063010633
}
10634+
is DehydrationException.Rand -> {
10635+
buf.putInt(7)
10636+
Unit
10637+
}
1063110638
}.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
1063210639
}
1063310640

0 commit comments

Comments
 (0)