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

@@ -148,7 +148,8 @@ class AppSource {
}
Future<APKDetails> getLatestAPKDetails(
String standardUrl, List<String> additionalData) {
String standardUrl, List<String> additionalData,
{bool trackOnly = false}) {
throw NotImplementedError();
}
@@ -267,8 +268,8 @@ class SourceProvider {
String? installedVersion}) async {
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
AppNames names = source.getAppNames(standardUrl);
APKDetails apk =
await source.getLatestAPKDetails(standardUrl, additionalData);
APKDetails apk = await source
.getLatestAPKDetails(standardUrl, additionalData, trackOnly: trackOnly);
if (apk.apkUrls.isEmpty && !trackOnly) {
throw NoAPKError();
}