Files
LibreMail/app
JMR-devandClaude Opus 4.8 7f623167e7 feat(reporting): purge crash/problem reports older than a month while charging
Adds ReportPurgeWorker, deleting locally-stored crash/problem reports older than
30 days via new ReportStore.purgeOlderThan(cutoffMillis). Scheduled as a periodic
WorkManager job with a charging constraint (SyncScheduler.schedulePeriodicReportPurge,
enqueued at startup alongside sync/backfill/prune) so it never costs battery. Reports
are file-backed (no DB), so the worker needs no cache-lock gate.

Also discloses the auto-deletion: the problem-reports list and the submission review
screen state reports are deleted from the device after 1 month.

Tests: ReportStore.purgeOlderThan cutoff (boundary kept); ReportPurgeWorker computes a
~30-day cutoff and retries on failure.

Closes #239

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 12:27:24 -05:00
..