DefaultIssueReporterRepository
class DefaultIssueReporterRepository(remoteDataSource: IssueReporterRemoteDataSource, deviceInfoDataSource: DeviceInfoDataSource, diagnostics: DiagnosticsReporter) : IssueReporterRepository(source)
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.
Constructors
Link copied to clipboard
constructor(remoteDataSource: IssueReporterRemoteDataSource, deviceInfoDataSource: DeviceInfoDataSource, diagnostics: DiagnosticsReporter)
Functions
Link copied to clipboard
Captures the device details attached to a report and shown in the sheet's device panel.
Link copied to clipboard
open suspend override fun sendReport(report: Report, target: GithubTarget, token: String? = null): String
The breadcrumb names the target repository and whether a token is set, never the token.