mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
[AltStore] Presents alert when sideloading apps
This commit is contained in:
@@ -494,6 +494,8 @@ private extension MyAppsViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func sideloadApp(_ sender: UIBarButtonItem)
|
@IBAction func sideloadApp(_ sender: UIBarButtonItem)
|
||||||
|
{
|
||||||
|
func sideloadApp()
|
||||||
{
|
{
|
||||||
let iOSAppUTI = "com.apple.itunes.ipa" // Declared by the system.
|
let iOSAppUTI = "com.apple.itunes.ipa" // Declared by the system.
|
||||||
|
|
||||||
@@ -502,6 +504,14 @@ private extension MyAppsViewController
|
|||||||
self.present(documentPickerViewController, animated: true, completion: nil)
|
self.present(documentPickerViewController, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let alertController = UIAlertController(title: NSLocalizedString("Sideload Apps (Beta)", comment: ""), message: NSLocalizedString("You may only install 10 apps + app extensions per week due to Apple's restrictions.\n\nIf you encounter an app that is not able to be sideloaded, please report the app to riley@rileytestut.com.", comment: ""), preferredStyle: .alert)
|
||||||
|
alertController.addAction(UIAlertAction(title: RSTSystemLocalizedString("OK"), style: .default, handler: { (action) in
|
||||||
|
sideloadApp()
|
||||||
|
}))
|
||||||
|
alertController.addAction(.cancel)
|
||||||
|
self.present(alertController, animated: true, completion: nil)
|
||||||
|
}
|
||||||
|
|
||||||
@objc func presentAlert(for installedApp: InstalledApp)
|
@objc func presentAlert(for installedApp: InstalledApp)
|
||||||
{
|
{
|
||||||
let alertController = UIAlertController(title: nil, message: NSLocalizedString("Removing a sideloaded app only removes it from AltStore. You must also delete it from the home screen to fully uninstall the app.", comment: ""), preferredStyle: .actionSheet)
|
let alertController = UIAlertController(title: nil, message: NSLocalizedString("Removing a sideloaded app only removes it from AltStore. You must also delete it from the home screen to fully uninstall the app.", comment: ""), preferredStyle: .actionSheet)
|
||||||
|
|||||||
Reference in New Issue
Block a user