Package-level declarations
Types
Link copied to clipboard
class DefaultIssueReporterRepository(remoteDataSource: IssueReporterRemoteDataSource, deviceInfoDataSource: DeviceInfoDataSource, diagnostics: DiagnosticsReporter) : IssueReporterRepository
Sends reports through remoteDataSource and captures device details through deviceInfoDataSource, which moves its own platform reads off the main thread. Ktor suspends, so sending needs no dispatcher.
Link copied to clipboard
class DefaultIssueReportHistoryRepository(preferences: IssueReportHistoryDataSource, currentTimeMillis: () -> Long = System::currentTimeMillis) : IssueReportHistoryRepository
Guards filing with the history in preferences: the time of the last filed report, and up to MAX_RECENT_REPORTS entries of a filing time and a SHA-256 fingerprint of the report's normalized title and description.
Link copied to clipboard
interface IssueReporterRepository
The data layer's entry point for issue reports. Both calls are safe from the main thread.
Link copied to clipboard
interface IssueReportHistoryRepository
What this device has filed recently, kept so that one person cannot flood the issue tracker: a short cooldown after every report, and the same report refused for a day.