Skip to content

Commit

Permalink
Bump SDK version to 0.2.65 (matrix-rust-sdk to fa93daabd2cdcf62a05c8e…
Browse files Browse the repository at this point in the history
…efd7da9116809dd062)
  • Loading branch information
github-actions committed Nov 22, 2024
1 parent 84fe1d7 commit 81b2d82
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildVersionsSDK.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object BuildVersionsSDK {
const val majorVersion = 0
const val minorVersion = 2
const val patchVersion = 64
const val patchVersion = 65
}
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(








Expand Down Expand Up @@ -3139,6 +3141,8 @@ internal interface UniffiLib : Library {
): Unit
fun uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message(`message`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(`caption`: RustBuffer.ByValue,`formattedCaption`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id(uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_func_generate_webview_url(`widgetSettings`: RustBuffer.ByValue,`room`: Pointer,`props`: RustBuffer.ByValue,
Expand Down Expand Up @@ -3297,6 +3301,8 @@ internal interface UniffiLib : Library {
): Unit
fun uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(
): Short
fun uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(
Expand Down Expand Up @@ -4137,6 +4143,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message() != 1366.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() != 49747.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() != 15808.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -25037,9 +25046,13 @@ data class RoomInfo (
*/
var `numUnreadMentions`: kotlin.ULong,
/**
* The currently pinned event ids
* The currently pinned event ids.
*/
var `pinnedEventIds`: List<kotlin.String>,
/**
* The join rule for this room, if known.
*/
var `pinnedEventIds`: List<kotlin.String>
var `joinRule`: JoinRule?
) {

companion object
Expand Down Expand Up @@ -25078,6 +25091,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
FfiConverterSequenceString.read(buf),
FfiConverterOptionalTypeJoinRule.read(buf),
)
}

Expand Down Expand Up @@ -25111,7 +25125,8 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
FfiConverterULong.allocationSize(value.`numUnreadMessages`) +
FfiConverterULong.allocationSize(value.`numUnreadNotifications`) +
FfiConverterULong.allocationSize(value.`numUnreadMentions`) +
FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`)
FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`) +
FfiConverterOptionalTypeJoinRule.allocationSize(value.`joinRule`)
)

override fun write(value: RoomInfo, buf: ByteBuffer) {
Expand Down Expand Up @@ -25145,6 +25160,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
FfiConverterULong.write(value.`numUnreadNotifications`, buf)
FfiConverterULong.write(value.`numUnreadMentions`, buf)
FfiConverterSequenceString.write(value.`pinnedEventIds`, buf)
FfiConverterOptionalTypeJoinRule.write(value.`joinRule`, buf)
}
}

Expand Down Expand Up @@ -26632,6 +26648,15 @@ sealed class AllowRule {
companion object
}

/**
* A custom allow rule implementation, containing its JSON representation
* as a `String`.
*/
data class Custom(
val `json`: kotlin.String) : AllowRule() {
companion object
}



companion object
Expand All @@ -26643,6 +26668,9 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
1 -> AllowRule.RoomMembership(
FfiConverterString.read(buf),
)
2 -> AllowRule.Custom(
FfiConverterString.read(buf),
)
else -> throw RuntimeException("invalid enum value, something is very wrong!!")
}
}
Expand All @@ -26655,6 +26683,13 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
+ FfiConverterString.allocationSize(value.`roomId`)
)
}
is AllowRule.Custom -> {
// Add the size for the Int that specifies the variant plus the size needed for all fields
(
4UL
+ FfiConverterString.allocationSize(value.`json`)
)
}
}

override fun write(value: AllowRule, buf: ByteBuffer) {
Expand All @@ -26664,6 +26699,11 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
FfiConverterString.write(value.`roomId`, buf)
Unit
}
is AllowRule.Custom -> {
buf.putInt(2)
FfiConverterString.write(value.`json`, buf)
Unit
}
}.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
}
}
Expand Down Expand Up @@ -38668,6 +38708,21 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
)
}


/**
* Create a caption edit.
*
* If no `formatted_caption` is provided, then it's assumed the `caption`
* represents valid Markdown that can be used as the formatted caption.
*/ fun `createCaptionEdit`(`caption`: kotlin.String?, `formattedCaption`: FormattedBody?): EditedContent {
return FfiConverterTypeEditedContent.lift(
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(
FfiConverterOptionalString.lower(`caption`),FfiConverterOptionalTypeFormattedBody.lower(`formattedCaption`),_status)
}
)
}

fun `genTransactionId`(): kotlin.String {
return FfiConverterString.lift(
uniffiRustCall() { _status ->
Expand Down

0 comments on commit 81b2d82

Please sign in to comment.