DefaultChangelogRepository
class DefaultChangelogRepository(remoteDataSource: ChangelogRemoteDataSource, apiBaseUrl: String, legacyChangelogUrl: String, diagnostics: DiagnosticsReporter) : ChangelogRepository(source)
Fetches changelog Markdown from the public Android App Metadata API.
The package endpoint is authoritative, while legacyChangelogUrl is a compatibility fallback, used only when the package is blank or the endpoint answers HTTP 404. Any other failure of the endpoint is the answer: it is thrown, not covered by the fallback. It needs no dispatcher, as Ktor suspends.
Constructors
Link copied to clipboard
constructor(remoteDataSource: ChangelogRemoteDataSource, apiBaseUrl: String, legacyChangelogUrl: String, diagnostics: DiagnosticsReporter)
Functions
Link copied to clipboard
Returns the changelog Markdown for packageName, applying the data-layer fallback. Safe to call from the main thread.