Skip to content

Commit f0600ee

Browse files
author
github-actions
committed
Bump SDK version to 25.10.07 (matrix-rust-sdk to c7b4b5dc053b84242b1b43d21bad0002dae19952)
1 parent ca6c954 commit f0600ee

File tree

3 files changed

+55
-5
lines changed

3 files changed

+55
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kotlin version: 2.0.21
2+
error message: The daemon has terminated unexpectedly on startup attempt #1 with error code: 0. The daemon process output:
3+
1. Kotlin compile daemon is ready
4+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 10
4-
const val patchVersion = 2
4+
const val patchVersion = 7
55
}

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

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
25662566

25672567

25682568

2569+
2570+
25692571

25702572

25712573

@@ -3030,6 +3032,8 @@ internal interface UniffiLib : Library {
30303032
): Long
30313033
fun uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_notification_mode(`ptr`: Pointer,`isEncrypted`: Byte,`isOneToOne`: Byte,
30323034
): Long
3035+
fun uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_raw_push_rules(`ptr`: Pointer,
3036+
): Long
30333037
fun uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification_settings(`ptr`: Pointer,`roomId`: RustBuffer.ByValue,`isEncrypted`: Byte,`isOneToOne`: Byte,
30343038
): Long
30353039
fun uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_rooms_with_user_defined_rules(`ptr`: Pointer,`enabled`: RustBuffer.ByValue,
@@ -4300,6 +4304,8 @@ internal interface UniffiLib : Library {
43004304
): Short
43014305
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode(
43024306
): Short
4307+
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_raw_push_rules(
4308+
): Short
43034309
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings(
43044310
): Short
43054311
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules(
@@ -5519,6 +5525,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
55195525
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode() != 36211.toShort()) {
55205526
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
55215527
}
5528+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_raw_push_rules() != 17884.toShort()) {
5529+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5530+
}
55225531
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings() != 55295.toShort()) {
55235532
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
55245533
}
@@ -14086,6 +14095,11 @@ public interface NotificationSettingsInterface {
1408614095
*/
1408714096
suspend fun `getDefaultRoomNotificationMode`(`isEncrypted`: kotlin.Boolean, `isOneToOne`: kotlin.Boolean): RoomNotificationMode
1408814097

14098+
/**
14099+
* Returns the raw push rules in JSON format.
14100+
*/
14101+
suspend fun `getRawPushRules`(): kotlin.String?
14102+
1408914103
/**
1409014104
* Get the notification settings for a room.
1409114105
*
@@ -14379,6 +14393,30 @@ open class NotificationSettings: Disposable, AutoCloseable, NotificationSettings
1437914393
}
1438014394

1438114395

14396+
/**
14397+
* Returns the raw push rules in JSON format.
14398+
*/
14399+
@Throws(ClientException::class)
14400+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
14401+
override suspend fun `getRawPushRules`() : kotlin.String? {
14402+
return uniffiRustCallAsync(
14403+
callWithPointer { thisPtr ->
14404+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_raw_push_rules(
14405+
thisPtr,
14406+
14407+
)
14408+
},
14409+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
14410+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
14411+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
14412+
// lift function
14413+
{ FfiConverterOptionalString.lift(it) },
14414+
// Error FFI converter
14415+
ClientException.ErrorHandler,
14416+
)
14417+
}
14418+
14419+
1438214420
/**
1438314421
* Get the notification settings for a room.
1438414422
*
@@ -31744,9 +31782,14 @@ data class SpaceRoom (
3174431782
*/
3174531783
var `canonicalAlias`: kotlin.String?,
3174631784
/**
31747-
* The name of the room, if any.
31785+
* The room's name from the room state event if received from sync, or one
31786+
* that's been computed otherwise.
3174831787
*/
31749-
var `name`: kotlin.String?,
31788+
var `displayName`: kotlin.String,
31789+
/**
31790+
* Room name as defined by the room state event only.
31791+
*/
31792+
var `rawName`: kotlin.String?,
3175031793
/**
3175131794
* The topic of the room, if any.
3175231795
*/
@@ -31808,6 +31851,7 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3180831851
return SpaceRoom(
3180931852
FfiConverterString.read(buf),
3181031853
FfiConverterOptionalString.read(buf),
31854+
FfiConverterString.read(buf),
3181131855
FfiConverterOptionalString.read(buf),
3181231856
FfiConverterOptionalString.read(buf),
3181331857
FfiConverterOptionalString.read(buf),
@@ -31827,7 +31871,8 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3182731871
override fun allocationSize(value: SpaceRoom) = (
3182831872
FfiConverterString.allocationSize(value.`roomId`) +
3182931873
FfiConverterOptionalString.allocationSize(value.`canonicalAlias`) +
31830-
FfiConverterOptionalString.allocationSize(value.`name`) +
31874+
FfiConverterString.allocationSize(value.`displayName`) +
31875+
FfiConverterOptionalString.allocationSize(value.`rawName`) +
3183131876
FfiConverterOptionalString.allocationSize(value.`topic`) +
3183231877
FfiConverterOptionalString.allocationSize(value.`avatarUrl`) +
3183331878
FfiConverterTypeRoomType.allocationSize(value.`roomType`) +
@@ -31845,7 +31890,8 @@ public object FfiConverterTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom> {
3184531890
override fun write(value: SpaceRoom, buf: ByteBuffer) {
3184631891
FfiConverterString.write(value.`roomId`, buf)
3184731892
FfiConverterOptionalString.write(value.`canonicalAlias`, buf)
31848-
FfiConverterOptionalString.write(value.`name`, buf)
31893+
FfiConverterString.write(value.`displayName`, buf)
31894+
FfiConverterOptionalString.write(value.`rawName`, buf)
3184931895
FfiConverterOptionalString.write(value.`topic`, buf)
3185031896
FfiConverterOptionalString.write(value.`avatarUrl`, buf)
3185131897
FfiConverterTypeRoomType.write(value.`roomType`, buf)

0 commit comments

Comments
 (0)