Removes “Delete App” functionality for non-debug builds

No longer necessary now that AltStore can detect when apps are uninstalled, but still useful for development.
This commit is contained in:
Riley Testut
2020-01-24 15:15:19 -08:00
parent 01e95e1baf
commit 230915e536

View File

@@ -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)