Fixed bugfix with GitHub track-only Apps with no APK

This commit is contained in:
Imran Remtulla
2022-11-25 23:12:15 -05:00
parent 9b5b212e96
commit 086b2b949f
9 changed files with 21 additions and 12 deletions

View File

@@ -107,7 +107,8 @@ class GitHub extends AppSource {
@override
Future<APKDetails> getLatestAPKDetails(
String standardUrl, List<String> additionalData) async {
String standardUrl, List<String> additionalData,
{bool trackOnly = false}) async {
var includePrereleases =
additionalData.isNotEmpty && additionalData[0] == 'true';
var fallbackToOlderReleases =
@@ -145,7 +146,7 @@ class GitHub extends AppSource {
continue;
}
var apkUrls = getReleaseAPKUrls(releases[i]);
if (apkUrls.isEmpty) {
if (apkUrls.isEmpty && !trackOnly) {
continue;
}
targetRelease = releases[i];