Update dependency org.matrix.rustcomponents:sdk-android to v25.11.11 (#5716)
* Update dependency org.matrix.rustcomponents:sdk-android to v25.11.11 * Fix API breaks: - `Client.loginWithQrCode` is now `Client.newLoginWithQrCodeHandler`. - Rust's `OtherState` can now have `RoomCreate` and `RoomHistoryVisibility` values. - Fix fixtures --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
parent
4074556b6f
commit
dda1ef7df8
4 changed files with 7 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ test_detekt_test = { module = "io.gitlab.arturbosch.detekt:detekt-test", version
|
||||||
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
||||||
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
||||||
# only fix API breaks and may add some TODOs.
|
# only fix API breaks and may add some TODOs.
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.11.4"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:25.11.11"
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ class RustMatrixAuthenticationService(
|
||||||
sessionPaths = emptySessionPaths,
|
sessionPaths = emptySessionPaths,
|
||||||
qrCodeData = sdkQrCodeLoginData,
|
qrCodeData = sdkQrCodeLoginData,
|
||||||
)
|
)
|
||||||
client.loginWithQrCode(
|
client.newLoginWithQrCodeHandler(
|
||||||
oidcConfiguration = oidcConfiguration,
|
oidcConfiguration = oidcConfiguration,
|
||||||
).use {
|
).use {
|
||||||
it.scan(
|
it.scan(
|
||||||
|
|
|
||||||
|
|
@ -220,6 +220,8 @@ private fun RustOtherState.map(): OtherState {
|
||||||
is RustOtherState.RoomTopic -> OtherState.RoomTopic(topic)
|
is RustOtherState.RoomTopic -> OtherState.RoomTopic(topic)
|
||||||
RustOtherState.SpaceChild -> OtherState.SpaceChild
|
RustOtherState.SpaceChild -> OtherState.SpaceChild
|
||||||
RustOtherState.SpaceParent -> OtherState.SpaceParent
|
RustOtherState.SpaceParent -> OtherState.SpaceParent
|
||||||
|
is RustOtherState.RoomCreate -> OtherState.RoomCreate
|
||||||
|
is RustOtherState.RoomHistoryVisibility -> OtherState.RoomHistoryVisibility
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import io.element.android.libraries.matrix.api.core.ThreadId
|
||||||
import io.element.android.libraries.matrix.impl.fixtures.fakes.FakeFfiTimelineEvent
|
import io.element.android.libraries.matrix.impl.fixtures.fakes.FakeFfiTimelineEvent
|
||||||
import io.element.android.libraries.matrix.test.A_ROOM_NAME
|
import io.element.android.libraries.matrix.test.A_ROOM_NAME
|
||||||
import io.element.android.libraries.matrix.test.A_USER_NAME
|
import io.element.android.libraries.matrix.test.A_USER_NAME
|
||||||
|
import org.matrix.rustcomponents.sdk.Action
|
||||||
import org.matrix.rustcomponents.sdk.JoinRule
|
import org.matrix.rustcomponents.sdk.JoinRule
|
||||||
import org.matrix.rustcomponents.sdk.NotificationEvent
|
import org.matrix.rustcomponents.sdk.NotificationEvent
|
||||||
import org.matrix.rustcomponents.sdk.NotificationItem
|
import org.matrix.rustcomponents.sdk.NotificationItem
|
||||||
|
|
@ -27,6 +28,7 @@ fun aRustNotificationItem(
|
||||||
isNoisy: Boolean? = false,
|
isNoisy: Boolean? = false,
|
||||||
hasMention: Boolean? = false,
|
hasMention: Boolean? = false,
|
||||||
threadId: ThreadId? = null,
|
threadId: ThreadId? = null,
|
||||||
|
actions: List<Action>? = null,
|
||||||
) = NotificationItem(
|
) = NotificationItem(
|
||||||
event = event,
|
event = event,
|
||||||
senderInfo = senderInfo,
|
senderInfo = senderInfo,
|
||||||
|
|
@ -34,6 +36,7 @@ fun aRustNotificationItem(
|
||||||
isNoisy = isNoisy,
|
isNoisy = isNoisy,
|
||||||
hasMention = hasMention,
|
hasMention = hasMention,
|
||||||
threadId = threadId?.value,
|
threadId = threadId?.value,
|
||||||
|
actions = actions,
|
||||||
)
|
)
|
||||||
|
|
||||||
fun aRustBatchNotificationResult(
|
fun aRustBatchNotificationResult(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue