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 # 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:26.05.20" matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.05.26"
# Others # Others
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" } coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
@@ -17,4 +17,5 @@ data class SetHttpPusherData(
val profileTag: String?, val profileTag: String?,
val lang: String, val lang: String,
val defaultPayload: String, val defaultPayload: String,
val append: Boolean,
) )
@@ -44,7 +44,8 @@ class RustPushersService(
appDisplayName = setHttpPusherData.appDisplayName, appDisplayName = setHttpPusherData.appDisplayName,
deviceDisplayName = setHttpPusherData.deviceDisplayName, deviceDisplayName = setHttpPusherData.deviceDisplayName,
profileTag = setHttpPusherData.profileTag, profileTag = setHttpPusherData.profileTag,
lang = setHttpPusherData.lang lang = setHttpPusherData.lang,
append = setHttpPusherData.append,
) )
} }
.mapFailure { it.mapClientException() } .mapFailure { it.mapClientException() }
@@ -73,6 +73,7 @@ class FakeFfiClient(
deviceDisplayName: String, deviceDisplayName: String,
profileTag: String?, profileTag: String?,
lang: String, lang: String,
append: Boolean,
) = Unit ) = Unit
override suspend fun deletePusher(identifiers: PusherIdentifiers) = Unit override suspend fun deletePusher(identifiers: PusherIdentifiers) = Unit
@@ -48,6 +48,7 @@ private fun aSetHttpPusherData(
deviceDisplayName: String = "deviceDisplayName", deviceDisplayName: String = "deviceDisplayName",
profileTag: String = "profileTag", profileTag: String = "profileTag",
lang: String = "lang", lang: String = "lang",
append: Boolean = false,
) = SetHttpPusherData( ) = SetHttpPusherData(
pushKey = pushKey, pushKey = pushKey,
appId = appId, appId = appId,
@@ -56,7 +57,8 @@ private fun aSetHttpPusherData(
appDisplayName = appDisplayName, appDisplayName = appDisplayName,
deviceDisplayName = deviceDisplayName, deviceDisplayName = deviceDisplayName,
profileTag = profileTag, profileTag = profileTag,
lang = lang lang = lang,
append = append,
) )
private fun aUnsetHttpPusherData( private fun aUnsetHttpPusherData(
@@ -83,7 +83,8 @@ class DefaultPusherSubscriber(
// TODO getDeviceInfoUseCase.execute().displayName().orEmpty() // TODO getDeviceInfoUseCase.execute().displayName().orEmpty()
deviceDisplayName = "MyDevice", deviceDisplayName = "MyDevice",
url = gateway, 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 + "_", profileTag = DEFAULT_PUSHER_FILE_TAG + "_",
lang = "en", lang = "en",
defaultPayload = "{\"cs\":\"$A_SECRET\"}", defaultPayload = "{\"cs\":\"$A_SECRET\"}",
append = false,
), ),
) )
) )