Skip to content

Commit

Permalink
Bump SDK version to 0.2.0 (matrix-rust-sdk to d80d9fda979f6f3ff4f22d7…
Browse files Browse the repository at this point in the history
…a230b447981b157d0)
  • Loading branch information
SpiritCroc committed Jan 21, 2024
1 parent fcc1375 commit 1e3e9fd
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 = 1
const val patchVersion = 73
const val minorVersion = 2
const val patchVersion = 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,10 @@ internal interface _UniFFILib : Library {
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_apply_input(`ptr`: Pointer,`input`: RustBuffer.ByValue,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_apply_input_for_space(`ptr`: Pointer,`input`: RustBuffer.ByValue,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_apply_visible_space_filter(`ptr`: Pointer,`spaceIds`: RustBuffer.ByValue,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_invites(`ptr`: Pointer,
): Pointer
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_room(`ptr`: Pointer,`roomId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
Expand Down Expand Up @@ -1654,6 +1658,10 @@ internal interface _UniFFILib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_input(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_input_for_space(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_visible_space_filter(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_invites(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_room(
Expand Down Expand Up @@ -2542,6 +2550,12 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_input() != 46775.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_input_for_space() != 10334.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_apply_visible_space_filter() != 50156.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_invites() != 56087.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -7364,6 +7378,8 @@ public interface RoomListServiceInterface {
suspend fun `allRooms`(): RoomList
suspend fun `allSpaces`(): RoomList
suspend fun `applyInput`(`input`: RoomListInput)
suspend fun `applyInputForSpace`(`input`: RoomListInput)
suspend fun `applyVisibleSpaceFilter`(`spaceIds`: List<String>?)
suspend fun `invites`(): RoomList
fun `room`(`roomId`: String): RoomListItem
fun `state`(`listener`: RoomListServiceStateListener): TaskHandle
Expand Down Expand Up @@ -7464,6 +7480,48 @@ open class RoomListService : FFIObject, RoomListServiceInterface {
)
}

@Throws(RoomListException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `applyInputForSpace`(`input`: RoomListInput) {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_apply_input_for_space(
thisPtr,
FfiConverterTypeRoomListInput.lower(`input`),
)
},
{ future, callback, continuation -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
{ future, continuation -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
{ future -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
// lift function
{ Unit },

// Error FFI converter
RoomListException.ErrorHandler,
)
}

@Throws(RoomListException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `applyVisibleSpaceFilter`(`spaceIds`: List<String>?) {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_apply_visible_space_filter(
thisPtr,
FfiConverterOptionalSequenceString.lower(`spaceIds`),
)
},
{ future, callback, continuation -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
{ future, continuation -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
{ future -> _UniFFILib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
// lift function
{ Unit },

// Error FFI converter
RoomListException.ErrorHandler,
)
}

@Throws(RoomListException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `invites`() : RoomList {
Expand Down

0 comments on commit 1e3e9fd

Please sign in to comment.