Update dependency org.matrix.rustcomponents:sdk-android to v26.2.16 (#6211)
* Update dependency org.matrix.rustcomponents:sdk-android to v26.2.16 * Fix log rotation breaking changes. The new values match iOS (https://github.com/element-hq/element-x-ios/pull/5108/) * Fix `aRustRoomInfo()` test fixture --------- 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
b8865d550d
commit
8c20770d21
5 changed files with 13 additions and 6 deletions
|
|
@ -10,6 +10,8 @@ package io.element.android.libraries.matrix.impl.tracing
|
|||
|
||||
import dev.zacsweers.metro.AppScope
|
||||
import dev.zacsweers.metro.ContributesBinding
|
||||
import io.element.android.libraries.core.data.ByteUnit
|
||||
import io.element.android.libraries.core.data.megaBytes
|
||||
import io.element.android.libraries.core.meta.BuildMeta
|
||||
import io.element.android.libraries.matrix.api.tracing.LogLevel
|
||||
import io.element.android.libraries.matrix.api.tracing.TracingConfiguration
|
||||
|
|
@ -49,7 +51,10 @@ private fun WriteToFilesConfiguration.toTracingFileConfiguration(): TracingFileC
|
|||
path = directory,
|
||||
filePrefix = filenamePrefix,
|
||||
fileSuffix = filenameSuffix,
|
||||
maxFiles = numberOfFiles?.toULong(),
|
||||
// Have at max 100MB of logs in disk
|
||||
maxTotalSizeBytes = 100.megaBytes.into(ByteUnit.BYTES).toULong(),
|
||||
// Store up to 7 days of logs
|
||||
maxAgeSeconds = (7 * 24 * 60 * 60).toULong(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ internal fun aRustRoomInfo(
|
|||
successorRoom: SuccessorRoom? = null,
|
||||
roomVersion: String? = "11",
|
||||
privilegedCreatorsRole: Boolean = false,
|
||||
serviceMembers: List<String> = emptyList(),
|
||||
) = RoomInfo(
|
||||
id = id,
|
||||
displayName = displayName,
|
||||
|
|
@ -94,4 +95,5 @@ internal fun aRustRoomInfo(
|
|||
successorRoom = successorRoom,
|
||||
roomVersion = roomVersion,
|
||||
privilegedCreatorsRole = privilegedCreatorsRole,
|
||||
serviceMembers = serviceMembers,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue