mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
Remove debug
Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com>
This commit is contained in:
@@ -64,26 +64,14 @@ public class InstalledApp: NSManagedObject, InstalledAppProtocol
|
|||||||
if self.storeApp == nil { return false }
|
if self.storeApp == nil { return false }
|
||||||
if self.storeApp!.latestVersion == nil { return false }
|
if self.storeApp!.latestVersion == nil { return false }
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
print("Comparing versions for app `\(self.bundleIdentifier)` between currentVersion `\(self.version)` and latestVersion `\(self.storeApp!.latestVersion!.version)`")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
let currentVersion = SemanticVersion(self.version)
|
let currentVersion = SemanticVersion(self.version)
|
||||||
let latestVersion = SemanticVersion(self.storeApp!.latestVersion!.version)
|
let latestVersion = SemanticVersion(self.storeApp!.latestVersion!.version)
|
||||||
|
|
||||||
if currentVersion == nil || latestVersion == nil {
|
if currentVersion == nil || latestVersion == nil {
|
||||||
#if DEBUG
|
// One of the versions is not valid SemVer, fall back to comparing the version strings by character
|
||||||
print("One of the versions is not valid SemVer, using fallback method")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// This should compare each character
|
|
||||||
return self.version < self.storeApp!.latestVersion!.version
|
return self.version < self.storeApp!.latestVersion!.version
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
print("Both versions are valid SemVer, using SemVer comparison")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return currentVersion! < latestVersion!
|
return currentVersion! < latestVersion!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user