Skip to content

Commit 81b2d82

Browse files
author
github-actions
committed
Bump SDK version to 0.2.65 (matrix-rust-sdk to fa93daabd2cdcf62a05c8eefd7da9116809dd062)
1 parent 84fe1d7 commit 81b2d82

File tree

2 files changed

+59
-4
lines changed

2 files changed

+59
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 0
33
const val minorVersion = 2
4-
const val patchVersion = 64
4+
const val patchVersion = 65
55
}

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

+58-3
Original file line numberDiff line numberDiff line change
@@ -2169,6 +2169,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
21692169

21702170

21712171

2172+
2173+
21722174

21732175

21742176

@@ -3139,6 +3141,8 @@ internal interface UniffiLib : Library {
31393141
): Unit
31403142
fun uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message(`message`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
31413143
): Pointer
3144+
fun uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(`caption`: RustBuffer.ByValue,`formattedCaption`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3145+
): RustBuffer.ByValue
31423146
fun uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id(uniffi_out_err: UniffiRustCallStatus,
31433147
): RustBuffer.ByValue
31443148
fun uniffi_matrix_sdk_ffi_fn_func_generate_webview_url(`widgetSettings`: RustBuffer.ByValue,`room`: Pointer,`props`: RustBuffer.ByValue,
@@ -3297,6 +3301,8 @@ internal interface UniffiLib : Library {
32973301
): Unit
32983302
fun uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message(
32993303
): Short
3304+
fun uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(
3305+
): Short
33003306
fun uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(
33013307
): Short
33023308
fun uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(
@@ -4137,6 +4143,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
41374143
if (lib.uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message() != 1366.toShort()) {
41384144
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
41394145
}
4146+
if (lib.uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() != 49747.toShort()) {
4147+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4148+
}
41404149
if (lib.uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() != 15808.toShort()) {
41414150
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
41424151
}
@@ -25037,9 +25046,13 @@ data class RoomInfo (
2503725046
*/
2503825047
var `numUnreadMentions`: kotlin.ULong,
2503925048
/**
25040-
* The currently pinned event ids
25049+
* The currently pinned event ids.
25050+
*/
25051+
var `pinnedEventIds`: List<kotlin.String>,
25052+
/**
25053+
* The join rule for this room, if known.
2504125054
*/
25042-
var `pinnedEventIds`: List<kotlin.String>
25055+
var `joinRule`: JoinRule?
2504325056
) {
2504425057

2504525058
companion object
@@ -25078,6 +25091,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2507825091
FfiConverterULong.read(buf),
2507925092
FfiConverterULong.read(buf),
2508025093
FfiConverterSequenceString.read(buf),
25094+
FfiConverterOptionalTypeJoinRule.read(buf),
2508125095
)
2508225096
}
2508325097

@@ -25111,7 +25125,8 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2511125125
FfiConverterULong.allocationSize(value.`numUnreadMessages`) +
2511225126
FfiConverterULong.allocationSize(value.`numUnreadNotifications`) +
2511325127
FfiConverterULong.allocationSize(value.`numUnreadMentions`) +
25114-
FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`)
25128+
FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`) +
25129+
FfiConverterOptionalTypeJoinRule.allocationSize(value.`joinRule`)
2511525130
)
2511625131

2511725132
override fun write(value: RoomInfo, buf: ByteBuffer) {
@@ -25145,6 +25160,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2514525160
FfiConverterULong.write(value.`numUnreadNotifications`, buf)
2514625161
FfiConverterULong.write(value.`numUnreadMentions`, buf)
2514725162
FfiConverterSequenceString.write(value.`pinnedEventIds`, buf)
25163+
FfiConverterOptionalTypeJoinRule.write(value.`joinRule`, buf)
2514825164
}
2514925165
}
2515025166

@@ -26632,6 +26648,15 @@ sealed class AllowRule {
2663226648
companion object
2663326649
}
2663426650

26651+
/**
26652+
* A custom allow rule implementation, containing its JSON representation
26653+
* as a `String`.
26654+
*/
26655+
data class Custom(
26656+
val `json`: kotlin.String) : AllowRule() {
26657+
companion object
26658+
}
26659+
2663526660

2663626661

2663726662
companion object
@@ -26643,6 +26668,9 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
2664326668
1 -> AllowRule.RoomMembership(
2664426669
FfiConverterString.read(buf),
2664526670
)
26671+
2 -> AllowRule.Custom(
26672+
FfiConverterString.read(buf),
26673+
)
2664626674
else -> throw RuntimeException("invalid enum value, something is very wrong!!")
2664726675
}
2664826676
}
@@ -26655,6 +26683,13 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
2665526683
+ FfiConverterString.allocationSize(value.`roomId`)
2665626684
)
2665726685
}
26686+
is AllowRule.Custom -> {
26687+
// Add the size for the Int that specifies the variant plus the size needed for all fields
26688+
(
26689+
4UL
26690+
+ FfiConverterString.allocationSize(value.`json`)
26691+
)
26692+
}
2665826693
}
2665926694

2666026695
override fun write(value: AllowRule, buf: ByteBuffer) {
@@ -26664,6 +26699,11 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
2666426699
FfiConverterString.write(value.`roomId`, buf)
2666526700
Unit
2666626701
}
26702+
is AllowRule.Custom -> {
26703+
buf.putInt(2)
26704+
FfiConverterString.write(value.`json`, buf)
26705+
Unit
26706+
}
2666726707
}.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
2666826708
}
2666926709
}
@@ -38668,6 +38708,21 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
3866838708
)
3866938709
}
3867038710

38711+
38712+
/**
38713+
* Create a caption edit.
38714+
*
38715+
* If no `formatted_caption` is provided, then it's assumed the `caption`
38716+
* represents valid Markdown that can be used as the formatted caption.
38717+
*/ fun `createCaptionEdit`(`caption`: kotlin.String?, `formattedCaption`: FormattedBody?): EditedContent {
38718+
return FfiConverterTypeEditedContent.lift(
38719+
uniffiRustCall() { _status ->
38720+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(
38721+
FfiConverterOptionalString.lower(`caption`),FfiConverterOptionalTypeFormattedBody.lower(`formattedCaption`),_status)
38722+
}
38723+
)
38724+
}
38725+
3867138726
fun `genTransactionId`(): kotlin.String {
3867238727
return FfiConverterString.lift(
3867338728
uniffiRustCall() { _status ->

0 commit comments

Comments
 (0)