Supports updating apps from (almost) all AppBannerViews

Previously, you could only update apps from MyAppsViewController and AppViewController.
This commit is contained in:
Riley Testut
2023-11-30 18:50:54 -06:00
parent 5732da1f2c
commit f9cff51d1c
9 changed files with 240 additions and 195 deletions

View File

@@ -317,6 +317,13 @@ public extension InstalledApp
let openAppURL = URL(string: "altstore-" + app.bundleIdentifier + "://")!
return openAppURL
}
var isUpdateAvailable: Bool {
guard let storeApp = self.storeApp, let latestVersion = storeApp.latestSupportedVersion else { return false }
let isUpdateAvailable = !self.matches(latestVersion)
return isUpdateAvailable
}
}
public extension InstalledApp