Update dependency org.matrix.rustcomponents:sdk-android to v26.05.26 (#6885)

* Update dependency org.matrix.rustcomponents:sdk-android to v26.05.26

* Fix API break

* Fix test compilation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
renovate[bot]
2026-05-27 12:16:17 +02:00
committed by GitHub
parent 2205487571
commit 2e42e78307
7 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -179,7 +179,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
# 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.
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.05.20"
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.05.26"
# Others
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
@@ -17,4 +17,5 @@ data class SetHttpPusherData(
val profileTag: String?,
val lang: String,
val defaultPayload: String,
val append: Boolean,
)
@@ -44,7 +44,8 @@ class RustPushersService(
appDisplayName = setHttpPusherData.appDisplayName,
deviceDisplayName = setHttpPusherData.deviceDisplayName,
profileTag = setHttpPusherData.profileTag,
lang = setHttpPusherData.lang
lang = setHttpPusherData.lang,
append = setHttpPusherData.append,
)
}
.mapFailure { it.mapClientException() }
@@ -73,6 +73,7 @@ class FakeFfiClient(
deviceDisplayName: String,
profileTag: String?,
lang: String,
append: Boolean,
) = Unit
override suspend fun deletePusher(identifiers: PusherIdentifiers) = Unit
@@ -48,6 +48,7 @@ private fun aSetHttpPusherData(
deviceDisplayName: String = "deviceDisplayName",
profileTag: String = "profileTag",
lang: String = "lang",
append: Boolean = false,
) = SetHttpPusherData(
pushKey = pushKey,
appId = appId,
@@ -56,7 +57,8 @@ private fun aSetHttpPusherData(
appDisplayName = appDisplayName,
deviceDisplayName = deviceDisplayName,
profileTag = profileTag,
lang = lang
lang = lang,
append = append,
)
private fun aUnsetHttpPusherData(
@@ -83,7 +83,8 @@ class DefaultPusherSubscriber(
// TODO getDeviceInfoUseCase.execute().displayName().orEmpty()
deviceDisplayName = "MyDevice",
url = gateway,
defaultPayload = createDefaultPayload(pushClientSecret.getSecretForUser(userId))
defaultPayload = createDefaultPayload(pushClientSecret.getSecretForUser(userId)),
append = false,
)
/**
@@ -103,6 +103,7 @@ class DefaultPusherSubscriberTest {
profileTag = DEFAULT_PUSHER_FILE_TAG + "_",
lang = "en",
defaultPayload = "{\"cs\":\"$A_SECRET\"}",
append = false,
),
)
)