Add an application migration to delete the old log files.

This commit is contained in:
Benoit Marty 2024-09-06 09:22:00 +02:00
parent 9bce1156f2
commit 76e34ae798
6 changed files with 96 additions and 9 deletions

View file

@ -16,6 +16,12 @@
package io.element.android.features.rageshake.api.logs
import java.io.File
interface LogFilesRemover {
suspend fun perform()
/**
* Perform the log files removal.
* @param predicate a predicate to filter the files to remove. By default, all files are removed.
*/
suspend fun perform(predicate: (File) -> Boolean = { true })
}