mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-24 11:23:45 +02:00
EVD bugfix
This commit is contained in:
@@ -28,11 +28,13 @@ class AppNames {
|
|||||||
class APKDetails {
|
class APKDetails {
|
||||||
late String version;
|
late String version;
|
||||||
late String versionFromSource;
|
late String versionFromSource;
|
||||||
|
late bool isStandardVersion;
|
||||||
late List<String> apkUrls;
|
late List<String> apkUrls;
|
||||||
|
|
||||||
APKDetails(this.versionFromSource, this.apkUrls) {
|
APKDetails(this.versionFromSource, this.apkUrls) {
|
||||||
version =
|
var temp = extractStandardVersionName(versionFromSource);
|
||||||
extractStandardVersionName(versionFromSource) ?? versionFromSource;
|
this.isStandardVersion = temp != null;
|
||||||
|
this.version = temp ?? versionFromSource;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,7 +285,7 @@ class SourceProvider {
|
|||||||
if (apk.apkUrls.isEmpty && !trackOnly) {
|
if (apk.apkUrls.isEmpty && !trackOnly) {
|
||||||
throw NoAPKError();
|
throw NoAPKError();
|
||||||
}
|
}
|
||||||
bool enhancedVersionDetection = apk.version != apk.versionFromSource &&
|
bool enhancedVersionDetection = apk.isStandardVersion &&
|
||||||
installedVersion != null &&
|
installedVersion != null &&
|
||||||
extractStandardVersionName(installedVersion, strict: true) != null;
|
extractStandardVersionName(installedVersion, strict: true) != null;
|
||||||
if (!enhancedVersionDetection) {
|
if (!enhancedVersionDetection) {
|
||||||
|
|||||||
Reference in New Issue
Block a user