fetchVersions

Fetches milestone release versions from GET /api/v1/public/versions/{appKey}.

Versions are returned sorted in ascending order by their AppVersion.position. Version IDs can be passed to fetchFeatureRequests to filter requests by release target.

Return

List of AppVersion instances configured for the app.

Throws

on network failure or parsing errors.

Example:

val versions = client.fetchVersions()
val nextMilestone = versions.firstOrNull { !it.released }
println("Upcoming release: ${nextMilestone?.label}")