DefaultIssueReporterRepository

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
open suspend override fun captureDeviceInfo(): DeviceInfo

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.