mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Add an application migration to delete the old log files.
This commit is contained in:
+7
-1
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user