Add 'tags-only' support (for Track-Only) to GitHub (and Codeberg)

This commit is contained in:
Imran Remtulla
2023-05-14 13:25:09 -04:00
parent e256ada2dc
commit 96c92c8df9
2 changed files with 37 additions and 15 deletions

View File

@ -56,10 +56,10 @@ class Codeberg extends AppSource {
String standardUrl,
Map<String, dynamic> additionalSettings,
) async {
return gh.getLatestAPKDetailsCommon(
'https://$host/api/v1/repos${standardUrl.substring('https://$host'.length)}/releases?per_page=100',
standardUrl,
additionalSettings);
return await gh.getLatestAPKDetailsCommon2(standardUrl, additionalSettings,
(bool useTagUrl) async {
return 'https://$host/api/v1/repos${standardUrl.substring('https://$host'.length)}/${useTagUrl ? 'tags' : 'releases'}?per_page=100';
}, null);
}
AppNames getAppNames(String standardUrl) {