IzzyOnDroid now uses API (+ other minor tweaks)

This commit is contained in:
Imran Remtulla
2022-11-17 19:00:27 -05:00
parent 2059e4fd44
commit b04986622b
8 changed files with 26 additions and 62 deletions

View File

@@ -155,8 +155,8 @@ class AppSource {
throw NotImplementedError();
}
Future<String> apkUrlPrefetchModifier(String apkUrl) {
throw NotImplementedError();
Future<String> apkUrlPrefetchModifier(String apkUrl) async {
return apkUrl;
}
bool canSearch = false;
@@ -164,7 +164,7 @@ class AppSource {
throw NotImplementedError();
}
String? tryGettingAppIdFromURL(String standardUrl) {
String? tryInferringAppId(String standardUrl) {
return null;
}
}
@@ -245,7 +245,7 @@ class SourceProvider {
await source.getLatestAPKDetails(standardUrl, additionalData);
return App(
id ??
source.tryGettingAppIdFromURL(standardUrl) ??
source.tryInferringAppId(standardUrl) ??
generateTempID(names, source),
standardUrl,
names.author[0].toUpperCase() + names.author.substring(1),