EVD bugfix

This commit is contained in:
Imran Remtulla
2022-12-05 15:46:47 -05:00
parent 0951c007d1
commit 6ac7ba204f

View File

@@ -28,11 +28,13 @@ class AppNames {
class APKDetails {
late String version;
late String versionFromSource;
late bool isStandardVersion;
late List<String> apkUrls;
APKDetails(this.versionFromSource, this.apkUrls) {
version =
extractStandardVersionName(versionFromSource) ?? versionFromSource;
var temp = extractStandardVersionName(versionFromSource);
this.isStandardVersion = temp != null;
this.version = temp ?? versionFromSource;
}
}
@@ -283,7 +285,7 @@ class SourceProvider {
if (apk.apkUrls.isEmpty && !trackOnly) {
throw NoAPKError();
}
bool enhancedVersionDetection = apk.version != apk.versionFromSource &&
bool enhancedVersionDetection = apk.isStandardVersion &&
installedVersion != null &&
extractStandardVersionName(installedVersion, strict: true) != null;
if (!enhancedVersionDetection) {