diff --git a/buildSrc/src/main/kotlin/BuildVersionsSDK.kt b/buildSrc/src/main/kotlin/BuildVersionsSDK.kt index 064f8ad..1f1643a 100644 --- a/buildSrc/src/main/kotlin/BuildVersionsSDK.kt +++ b/buildSrc/src/main/kotlin/BuildVersionsSDK.kt @@ -1,5 +1,5 @@ object BuildVersionsSDK { const val majorVersion = 0 const val minorVersion = 2 - const val patchVersion = 41 + const val patchVersion = 42 } diff --git a/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt b/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt index f4d1ef4..9a28ed9 100644 --- a/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt +++ b/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt @@ -23296,11 +23296,6 @@ public object FfiConverterTypeOidcConfiguration: FfiConverterRustBuffer EventSendState.VerifiedUserChangedIdentity( FfiConverterSequenceString.read(buf), ) - 4 -> EventSendState.SendingFailed( + 4 -> EventSendState.CrossSigningNotSetup + 5 -> EventSendState.SendingFromUnverifiedDevice + 6 -> EventSendState.SendingFailed( FfiConverterString.read(buf), FfiConverterBoolean.read(buf), ) - 5 -> EventSendState.Sent( + 7 -> EventSendState.Sent( FfiConverterString.read(buf), ) else -> throw RuntimeException("invalid enum value, something is very wrong!!") @@ -26313,6 +26322,18 @@ public object FfiConverterTypeEventSendState : FfiConverterRustBuffer { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + ) + } + is EventSendState.SendingFromUnverifiedDevice -> { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + ) + } is EventSendState.SendingFailed -> { // Add the size for the Int that specifies the variant plus the size needed for all fields ( @@ -26346,14 +26367,22 @@ public object FfiConverterTypeEventSendState : FfiConverterRustBuffer { + is EventSendState.CrossSigningNotSetup -> { buf.putInt(4) + Unit + } + is EventSendState.SendingFromUnverifiedDevice -> { + buf.putInt(5) + Unit + } + is EventSendState.SendingFailed -> { + buf.putInt(6) FfiConverterString.write(value.`error`, buf) FfiConverterBoolean.write(value.`isRecoverable`, buf) Unit } is EventSendState.Sent -> { - buf.putInt(5) + buf.putInt(7) FfiConverterString.write(value.`eventId`, buf) Unit }