Add an application migration to delete the old log files.
This commit is contained in:
parent
9bce1156f2
commit
76e34ae798
6 changed files with 96 additions and 9 deletions
|
|
@ -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 })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue