From 230915e53694b090063f166a73c832f8e4621159 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 24 Jan 2020 15:15:19 -0800 Subject: [PATCH] =?UTF-8?q?Removes=20=E2=80=9CDelete=20App=E2=80=9D=20func?= =?UTF-8?q?tionality=20for=20non-debug=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No longer necessary now that AltStore can detect when apps are uninstalled, but still useful for development. --- AltStore/My Apps/MyAppsViewController.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AltStore/My Apps/MyAppsViewController.swift b/AltStore/My Apps/MyAppsViewController.swift index 8cde5c26..09c13dee 100644 --- a/AltStore/My Apps/MyAppsViewController.swift +++ b/AltStore/My Apps/MyAppsViewController.swift @@ -742,9 +742,16 @@ private extension MyAppsViewController else { return } let installedApp = self.dataSource.item(at: indexPath) - guard installedApp.storeApp == nil else { return } + #if DEBUG self.presentAlert(for: installedApp) + #else + if (UserDefaults.standard.legacySideloadedApps ?? []).contains(installedApp.bundleIdentifier) + { + // Only display alert for legacy sideloaded apps. + self.presentAlert(for: installedApp) + } + #endif } @objc func importApp(_ notification: Notification)