Update dependency org.matrix.rustcomponents:sdk-android to v26.02.19 (#6229)
* Update dependency org.matrix.rustcomponents:sdk-android to v26.02.19 * Fix breaking API changes: added `isLowPriority` to `RoomInfo` and `RoomSummary`. --------- 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
5421dade55
commit
1ce57d811e
8 changed files with 14 additions and 1 deletions
|
|
@ -136,6 +136,7 @@ private fun aSpaceInfo(
|
||||||
successorRoom = null,
|
successorRoom = null,
|
||||||
roomVersion = "11",
|
roomVersion = "11",
|
||||||
privilegedCreatorRole = false,
|
privilegedCreatorRole = false,
|
||||||
|
isLowPriority = false,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,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.2.16"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.02.19"
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ data class RoomInfo(
|
||||||
val successorRoom: SuccessorRoom?,
|
val successorRoom: SuccessorRoom?,
|
||||||
val roomVersion: String?,
|
val roomVersion: String?,
|
||||||
val privilegedCreatorRole: Boolean,
|
val privilegedCreatorRole: Boolean,
|
||||||
|
val isLowPriority: Boolean,
|
||||||
) {
|
) {
|
||||||
val aliases: List<RoomAlias>
|
val aliases: List<RoomAlias>
|
||||||
get() = listOfNotNull(canonicalAlias) + alternativeAliases
|
get() = listOfNotNull(canonicalAlias) + alternativeAliases
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ class RoomInfoMapper {
|
||||||
successorRoom = it.successorRoom?.map(),
|
successorRoom = it.successorRoom?.map(),
|
||||||
roomVersion = it.roomVersion,
|
roomVersion = it.roomVersion,
|
||||||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||||
|
isLowPriority = it.isLowPriority,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ internal fun aRustRoomInfo(
|
||||||
roomVersion: String? = "11",
|
roomVersion: String? = "11",
|
||||||
privilegedCreatorsRole: Boolean = false,
|
privilegedCreatorsRole: Boolean = false,
|
||||||
serviceMembers: List<String> = emptyList(),
|
serviceMembers: List<String> = emptyList(),
|
||||||
|
isLowPriority: Boolean = false,
|
||||||
) = RoomInfo(
|
) = RoomInfo(
|
||||||
id = id,
|
id = id,
|
||||||
displayName = displayName,
|
displayName = displayName,
|
||||||
|
|
@ -96,4 +97,5 @@ internal fun aRustRoomInfo(
|
||||||
roomVersion = roomVersion,
|
roomVersion = roomVersion,
|
||||||
privilegedCreatorsRole = privilegedCreatorsRole,
|
privilegedCreatorsRole = privilegedCreatorsRole,
|
||||||
serviceMembers = serviceMembers,
|
serviceMembers = serviceMembers,
|
||||||
|
isLowPriority = isLowPriority,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ class RoomInfoMapperTest {
|
||||||
historyVisibility = RustRoomHistoryVisibility.Joined,
|
historyVisibility = RustRoomHistoryVisibility.Joined,
|
||||||
roomVersion = "12",
|
roomVersion = "12",
|
||||||
privilegedCreatorsRole = true,
|
privilegedCreatorsRole = true,
|
||||||
|
isLowPriority = true,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
).isEqualTo(
|
).isEqualTo(
|
||||||
|
|
@ -128,6 +129,7 @@ class RoomInfoMapperTest {
|
||||||
successorRoom = null,
|
successorRoom = null,
|
||||||
roomVersion = "12",
|
roomVersion = "12",
|
||||||
privilegedCreatorRole = true,
|
privilegedCreatorRole = true,
|
||||||
|
isLowPriority = true,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -171,6 +173,7 @@ class RoomInfoMapperTest {
|
||||||
roomCreators = null,
|
roomCreators = null,
|
||||||
roomVersion = "12",
|
roomVersion = "12",
|
||||||
privilegedCreatorsRole = true,
|
privilegedCreatorsRole = true,
|
||||||
|
isLowPriority = true,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
).isEqualTo(
|
).isEqualTo(
|
||||||
|
|
@ -213,6 +216,7 @@ class RoomInfoMapperTest {
|
||||||
historyVisibility = RoomHistoryVisibility.Joined,
|
historyVisibility = RoomHistoryVisibility.Joined,
|
||||||
roomVersion = "12",
|
roomVersion = "12",
|
||||||
privilegedCreatorRole = true,
|
privilegedCreatorRole = true,
|
||||||
|
isLowPriority = true,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ fun aRoomInfo(
|
||||||
historyVisibility: RoomHistoryVisibility = RoomHistoryVisibility.Joined,
|
historyVisibility: RoomHistoryVisibility = RoomHistoryVisibility.Joined,
|
||||||
roomVersion: String? = "11",
|
roomVersion: String? = "11",
|
||||||
privilegedCreatorRole: Boolean = false,
|
privilegedCreatorRole: Boolean = false,
|
||||||
|
isLowPriority: Boolean = false,
|
||||||
) = RoomInfo(
|
) = RoomInfo(
|
||||||
id = id,
|
id = id,
|
||||||
name = name,
|
name = name,
|
||||||
|
|
@ -104,4 +105,5 @@ fun aRoomInfo(
|
||||||
historyVisibility = historyVisibility,
|
historyVisibility = historyVisibility,
|
||||||
roomVersion = roomVersion,
|
roomVersion = roomVersion,
|
||||||
privilegedCreatorRole = privilegedCreatorRole,
|
privilegedCreatorRole = privilegedCreatorRole,
|
||||||
|
isLowPriority = isLowPriority,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ fun aRoomSummary(
|
||||||
latestEvent: LatestEventValue = aRemoteLatestEvent(),
|
latestEvent: LatestEventValue = aRemoteLatestEvent(),
|
||||||
roomVersion: String? = "11",
|
roomVersion: String? = "11",
|
||||||
privilegedCreatorRole: Boolean = false,
|
privilegedCreatorRole: Boolean = false,
|
||||||
|
isLowPriority: Boolean = false,
|
||||||
) = RoomSummary(
|
) = RoomSummary(
|
||||||
info = RoomInfo(
|
info = RoomInfo(
|
||||||
id = roomId,
|
id = roomId,
|
||||||
|
|
@ -115,6 +116,7 @@ fun aRoomSummary(
|
||||||
historyVisibility = historyVisibility,
|
historyVisibility = historyVisibility,
|
||||||
roomVersion = roomVersion,
|
roomVersion = roomVersion,
|
||||||
privilegedCreatorRole = privilegedCreatorRole,
|
privilegedCreatorRole = privilegedCreatorRole,
|
||||||
|
isLowPriority = isLowPriority,
|
||||||
),
|
),
|
||||||
latestEvent = latestEvent,
|
latestEvent = latestEvent,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue