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 06c18d6

Browse files
runnerrunner
authored andcommitted
Bump SDK version to 0.1.34 (matrix-rust-sdk to aaa84c14898d7cdadeed88e560c19adb821ebbb4)
1 parent 9e10dac commit 06c18d6

File tree

2 files changed

+22
-41
lines changed

2 files changed

+22
-41
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 = 0
33
const val minorVersion = 1
4-
const val patchVersion = 33
4+
const val patchVersion = 34
55
}

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

Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,6 @@ internal interface _UniFFILib : Library {
595595
): Unit
596596
fun uniffi_matrix_sdk_ffi_fn_free_room(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
597597
): Unit
598-
fun uniffi_matrix_sdk_ffi_fn_method_room_accept_invitation(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
599-
): Unit
600598
fun uniffi_matrix_sdk_ffi_fn_method_room_active_members_count(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
601599
): Long
602600
fun uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener(`ptr`: Pointer,`listener`: Long,`uniffiExecutor`: USize,`uniffiCallback`: UniFfiFutureCallbackRustBuffer,`uniffiCallbackData`: USize,_uniffi_out_err: RustCallStatus,
@@ -653,6 +651,8 @@ internal interface _UniFFILib : Library {
653651
): Byte
654652
fun uniffi_matrix_sdk_ffi_fn_method_room_is_tombstoned(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
655653
): Byte
654+
fun uniffi_matrix_sdk_ffi_fn_method_room_join(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
655+
): Unit
656656
fun uniffi_matrix_sdk_ffi_fn_method_room_joined_members_count(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
657657
): Long
658658
fun uniffi_matrix_sdk_ffi_fn_method_room_leave(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
@@ -675,8 +675,6 @@ internal interface _UniFFILib : Library {
675675
): Unit
676676
fun uniffi_matrix_sdk_ffi_fn_method_room_redact(`ptr`: Pointer,`eventId`: RustBuffer.ByValue,`reason`: RustBuffer.ByValue,`txnId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
677677
): Unit
678-
fun uniffi_matrix_sdk_ffi_fn_method_room_reject_invitation(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
679-
): Unit
680678
fun uniffi_matrix_sdk_ffi_fn_method_room_remove_avatar(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
681679
): Unit
682680
fun uniffi_matrix_sdk_ffi_fn_method_room_remove_timeline(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
@@ -1151,8 +1149,6 @@ internal interface _UniFFILib : Library {
11511149
): Short
11521150
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room(
11531151
): Short
1154-
fun uniffi_matrix_sdk_ffi_checksum_method_room_accept_invitation(
1155-
): Short
11561152
fun uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count(
11571153
): Short
11581154
fun uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener(
@@ -1209,6 +1205,8 @@ internal interface _UniFFILib : Library {
12091205
): Short
12101206
fun uniffi_matrix_sdk_ffi_checksum_method_room_is_tombstoned(
12111207
): Short
1208+
fun uniffi_matrix_sdk_ffi_checksum_method_room_join(
1209+
): Short
12121210
fun uniffi_matrix_sdk_ffi_checksum_method_room_joined_members_count(
12131211
): Short
12141212
fun uniffi_matrix_sdk_ffi_checksum_method_room_leave(
@@ -1231,8 +1229,6 @@ internal interface _UniFFILib : Library {
12311229
): Short
12321230
fun uniffi_matrix_sdk_ffi_checksum_method_room_redact(
12331231
): Short
1234-
fun uniffi_matrix_sdk_ffi_checksum_method_room_reject_invitation(
1235-
): Short
12361232
fun uniffi_matrix_sdk_ffi_checksum_method_room_remove_avatar(
12371233
): Short
12381234
fun uniffi_matrix_sdk_ffi_checksum_method_room_remove_timeline(
@@ -1782,9 +1778,6 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
17821778
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room() != 58029.toShort()) {
17831779
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
17841780
}
1785-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_accept_invitation() != 25703.toShort()) {
1786-
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1787-
}
17881781
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count() != 62367.toShort()) {
17891782
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
17901783
}
@@ -1869,6 +1862,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
18691862
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_is_tombstoned() != 55887.toShort()) {
18701863
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18711864
}
1865+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_join() != 4883.toShort()) {
1866+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1867+
}
18721868
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_joined_members_count() != 44345.toShort()) {
18731869
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18741870
}
@@ -1902,9 +1898,6 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
19021898
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_redact() != 61747.toShort()) {
19031899
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
19041900
}
1905-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_reject_invitation() != 16778.toShort()) {
1906-
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1907-
}
19081901
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_remove_avatar() != 24698.toShort()) {
19091902
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
19101903
}
@@ -4599,8 +4592,7 @@ public object FfiConverterTypeNotificationSettings: FfiConverter<NotificationSet
45994592

46004593

46014594
public interface RoomInterface {
4602-
@Throws(ClientException::class)
4603-
fun `acceptInvitation`()
4595+
46044596
fun `activeMembersCount`(): ULong
46054597
suspend fun `addTimelineListener`(`listener`: TimelineListener): RoomTimelineListenerResult
46064598
fun `alternativeAliases`(): List<String>
@@ -4628,7 +4620,8 @@ public interface RoomInterface {
46284620
fun `isEncrypted`(): Boolean
46294621
fun `isPublic`(): Boolean
46304622
fun `isSpace`(): Boolean
4631-
fun `isTombstoned`(): Boolean
4623+
fun `isTombstoned`(): Boolean@Throws(ClientException::class)
4624+
fun `join`()
46324625
fun `joinedMembersCount`(): ULong@Throws(ClientException::class)
46334626
fun `leave`()@Throws(ClientException::class)
46344627
fun `member`(`userId`: String): RoomMember@Throws(ClientException::class)
@@ -4640,7 +4633,6 @@ public interface RoomInterface {
46404633
fun `ownUserId`(): String@Throws(ClientException::class)
46414634
fun `paginateBackwards`(`opts`: PaginationOptions)@Throws(ClientException::class)
46424635
fun `redact`(`eventId`: String, `reason`: String?, `txnId`: String?)@Throws(ClientException::class)
4643-
fun `rejectInvitation`()@Throws(ClientException::class)
46444636
fun `removeAvatar`()
46454637
fun `removeTimeline`()@Throws(ClientException::class)
46464638
fun `reportContent`(`eventId`: String, `score`: Int?, `reason`: String?)
@@ -4681,17 +4673,6 @@ class Room(
46814673
}
46824674
}
46834675

4684-
4685-
@Throws(ClientException::class)override fun `acceptInvitation`() =
4686-
callWithPointer {
4687-
rustCallWithError(ClientException) { _status ->
4688-
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_accept_invitation(it,
4689-
4690-
_status)
4691-
}
4692-
}
4693-
4694-
46954676
override fun `activeMembersCount`(): ULong =
46964677
callWithPointer {
46974678
rustCall() { _status ->
@@ -5184,6 +5165,17 @@ class Room(
51845165
FfiConverterBoolean.lift(it)
51855166
}
51865167

5168+
5169+
@Throws(ClientException::class)override fun `join`() =
5170+
callWithPointer {
5171+
rustCallWithError(ClientException) { _status ->
5172+
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_join(it,
5173+
5174+
_status)
5175+
}
5176+
}
5177+
5178+
51875179
override fun `joinedMembersCount`(): ULong =
51885180
callWithPointer {
51895181
rustCall() { _status ->
@@ -5310,17 +5302,6 @@ class Room(
53105302

53115303

53125304

5313-
@Throws(ClientException::class)override fun `rejectInvitation`() =
5314-
callWithPointer {
5315-
rustCallWithError(ClientException) { _status ->
5316-
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_reject_invitation(it,
5317-
5318-
_status)
5319-
}
5320-
}
5321-
5322-
5323-
53245305
@Throws(ClientException::class)override fun `removeAvatar`() =
53255306
callWithPointer {
53265307
rustCallWithError(ClientException) { _status ->

0 commit comments

Comments
 (0)