GetChangelogUseCase

class GetChangelogUseCase(repository: ChangelogRepository, buildInfoRepository: BuildInfoRepository)(source)

Loads the host application's changelog and selects the most useful Markdown to display.

The current-version section is preferred. When the API returns valid Markdown without that section, the full history is returned so a version-format mismatch never hides useful content. A failure of the repository passes through unchanged.

Constructors

Link copied to clipboard
constructor(repository: ChangelogRepository, buildInfoRepository: BuildInfoRepository)

Functions

Link copied to clipboard
suspend operator fun invoke(): String

Returns the current version's changes, else the full history, else an empty string.