WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8f09346

Browse files
author
github-actions
committed
Bump SDK version to 25.12.10 (matrix-rust-sdk to b19377a96c6274641ebc85bd783474450a75776e)
1 parent c786b3f commit 8f09346

File tree

2 files changed

+40
-35
lines changed

2 files changed

+40
-35
lines changed
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 = 12
4-
const val patchVersion = 4
4+
const val patchVersion = 10
55
}

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

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,8 @@ external fun uniffi_matrix_sdk_ffi_checksum_method_loginwithqrcodehandler_scan(
21162116
): Short
21172117
external fun uniffi_matrix_sdk_ffi_checksum_method_qrcodedata_server_name(
21182118
): Short
2119+
external fun uniffi_matrix_sdk_ffi_checksum_method_qrcodedata_to_bytes(
2120+
): Short
21192121
external fun uniffi_matrix_sdk_ffi_checksum_method_knockrequestactions_accept(
21202122
): Short
21212123
external fun uniffi_matrix_sdk_ffi_checksum_method_knockrequestactions_decline(
@@ -2228,8 +2230,6 @@ external fun uniffi_matrix_sdk_ffi_checksum_method_room_members_no_sync(
22282230
): Short
22292231
external fun uniffi_matrix_sdk_ffi_checksum_method_room_membership(
22302232
): Short
2231-
external fun uniffi_matrix_sdk_ffi_checksum_method_room_new_latest_event(
2232-
): Short
22332233
external fun uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id(
22342234
): Short
22352235
external fun uniffi_matrix_sdk_ffi_checksum_method_room_predecessor_room(
@@ -3269,6 +3269,8 @@ external fun uniffi_matrix_sdk_ffi_fn_constructor_qrcodedata_from_bytes(`bytes`:
32693269
): Long
32703270
external fun uniffi_matrix_sdk_ffi_fn_method_qrcodedata_server_name(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
32713271
): RustBuffer.ByValue
3272+
external fun uniffi_matrix_sdk_ffi_fn_method_qrcodedata_to_bytes(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
3273+
): RustBuffer.ByValue
32723274
external fun uniffi_matrix_sdk_ffi_fn_clone_knockrequestactions(`handle`: Long,uniffi_out_err: UniffiRustCallStatus,
32733275
): Long
32743276
external fun uniffi_matrix_sdk_ffi_fn_free_knockrequestactions(`handle`: Long,uniffi_out_err: UniffiRustCallStatus,
@@ -3389,8 +3391,6 @@ external fun uniffi_matrix_sdk_ffi_fn_method_room_members_no_sync(`ptr`: Long,
33893391
): Long
33903392
external fun uniffi_matrix_sdk_ffi_fn_method_room_membership(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
33913393
): RustBuffer.ByValue
3392-
external fun uniffi_matrix_sdk_ffi_fn_method_room_new_latest_event(`ptr`: Long,
3393-
): Long
33943394
external fun uniffi_matrix_sdk_ffi_fn_method_room_own_user_id(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
33953395
): RustBuffer.ByValue
33963396
external fun uniffi_matrix_sdk_ffi_fn_method_room_predecessor_room(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
@@ -4842,6 +4842,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
48424842
if (lib.uniffi_matrix_sdk_ffi_checksum_method_qrcodedata_server_name() != 52906.toShort()) {
48434843
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48444844
}
4845+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_qrcodedata_to_bytes() != 22532.toShort()) {
4846+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4847+
}
48454848
if (lib.uniffi_matrix_sdk_ffi_checksum_method_knockrequestactions_accept() != 60529.toShort()) {
48464849
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
48474850
}
@@ -4965,7 +4968,7 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
49654968
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_latest_encryption_state() != 9465.toShort()) {
49664969
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
49674970
}
4968-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_latest_event() != 57709.toShort()) {
4971+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_latest_event() != 37006.toShort()) {
49694972
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
49704973
}
49714974
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_leave() != 3346.toShort()) {
@@ -5010,9 +5013,6 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
50105013
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_membership() != 65038.toShort()) {
50115014
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
50125015
}
5013-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_new_latest_event() != 27925.toShort()) {
5014-
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5015-
}
50165016
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id() != 32346.toShort()) {
50175017
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
50185018
}
@@ -15913,6 +15913,12 @@ public interface QrCodeDataInterface {
1591315913
*/
1591415914
fun `serverName`(): kotlin.String?
1591515915

15916+
/**
15917+
* Serialize the [`QrCodeData`] into a byte vector for encoding as a QR
15918+
* code.
15919+
*/
15920+
fun `toBytes`(): kotlin.ByteArray
15921+
1591615922
companion object
1591715923
}
1591815924

@@ -16039,6 +16045,23 @@ open class QrCodeData: Disposable, AutoCloseable, QrCodeDataInterface
1603916045

1604016046

1604116047

16048+
/**
16049+
* Serialize the [`QrCodeData`] into a byte vector for encoding as a QR
16050+
* code.
16051+
*/override fun `toBytes`(): kotlin.ByteArray {
16052+
return FfiConverterByteArray.lift(
16053+
callWithHandle {
16054+
uniffiRustCall() { _status ->
16055+
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_qrcodedata_to_bytes(
16056+
it,
16057+
_status)
16058+
}
16059+
}
16060+
)
16061+
}
16062+
16063+
16064+
1604216065

1604316066

1604416067

@@ -16386,7 +16409,7 @@ public interface RoomInterface {
1638616409

1638716410
suspend fun `latestEncryptionState`(): EncryptionState
1638816411

16389-
suspend fun `latestEvent`(): EventTimelineItem?
16412+
suspend fun `latestEvent`(): LatestEventValue
1639016413

1639116414
/**
1639216415
* Leave this room.
@@ -16458,8 +16481,6 @@ public interface RoomInterface {
1645816481
*/
1645916482
fun `membership`(): Membership
1646016483

16461-
suspend fun `newLatestEvent`(): LatestEventValue
16462-
1646316484
fun `ownUserId`(): kotlin.String
1646416485

1646516486
/**
@@ -17643,7 +17664,7 @@ open class Room: Disposable, AutoCloseable, RoomInterface
1764317664

1764417665

1764517666
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
17646-
override suspend fun `latestEvent`() : EventTimelineItem? {
17667+
override suspend fun `latestEvent`() : LatestEventValue {
1764717668
return uniffiRustCallAsync(
1764817669
callWithHandle { uniffiHandle ->
1764917670
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_room_latest_event(
@@ -17655,7 +17676,7 @@ open class Room: Disposable, AutoCloseable, RoomInterface
1765517676
{ future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
1765617677
{ future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
1765717678
// lift function
17658-
{ FfiConverterOptionalTypeEventTimelineItem.lift(it) },
17679+
{ FfiConverterTypeLatestEventValue.lift(it) },
1765917680
// Error FFI converter
1766017681
UniffiNullRustCallStatusErrorHandler,
1766117682
)
@@ -17992,26 +18013,6 @@ open class Room: Disposable, AutoCloseable, RoomInterface
1799218013
}
1799318014

1799418015

17995-
17996-
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
17997-
override suspend fun `newLatestEvent`() : LatestEventValue {
17998-
return uniffiRustCallAsync(
17999-
callWithHandle { uniffiHandle ->
18000-
UniffiLib.uniffi_matrix_sdk_ffi_fn_method_room_new_latest_event(
18001-
uniffiHandle,
18002-
18003-
)
18004-
},
18005-
{ future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
18006-
{ future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
18007-
{ future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
18008-
// lift function
18009-
{ FfiConverterTypeLatestEventValue.lift(it) },
18010-
// Error FFI converter
18011-
UniffiNullRustCallStatusErrorHandler,
18012-
)
18013-
}
18014-
1801518016
override fun `ownUserId`(): kotlin.String {
1801618017
return FfiConverterString.lift(
1801718018
callWithHandle {
@@ -51705,7 +51706,11 @@ enum class TraceLogPacks {
5170551706
/**
5170651707
* Enables all the logs relevant to sync profiling.
5170751708
*/
51708-
SYNC_PROFILING;
51709+
SYNC_PROFILING,
51710+
/**
51711+
* Enables all the logs relevant to the latest events.
51712+
*/
51713+
LATEST_EVENTS;
5170951714

5171051715

5171151716

0 commit comments

Comments
 (0)