DefaultIssueReportHistoryDataSource

Keeps the history in dataStore: the time of the last filed report, and each report as submittedAt:fingerprint. Entries that cannot be read are dropped.

Constructors

Link copied to clipboard
constructor(dataStore: DataStore<Preferences>)

Functions

Link copied to clipboard
open suspend override fun read(): IssueReportHistory

The stored history, or an empty one when the file cannot be read.

Link copied to clipboard
open suspend override fun update(transform: (IssueReportHistory) -> IssueReportHistory)

Replaces the history with what transform makes of the stored one, in one transaction.