Add SideJITServer Support for Enabling JIT on iOS 17+ in app (#630)

This commit is contained in:
stossy11
2024-06-17 09:43:25 +10:00
committed by GitHub
parent 370cafcba0
commit 68be615057
10 changed files with 366 additions and 55 deletions

View File

@@ -1350,16 +1350,17 @@ private extension MyAppsViewController
@available(iOS 14, *)
func enableJIT(for installedApp: InstalledApp)
{
if #available(iOS 17, *) {
if #available(iOS 17, *), !UserDefaults.standard.sidejitenable {
let toastView = ToastView(error: OperationError.tooNewError)
toastView.show(in: self)
return
}
if !minimuxer.ready() {
if #unavailable(iOS 17), !minimuxer.ready() {
let toastView = ToastView(error: MinimuxerError.NoConnection)
toastView.show(in: self)
return
}
AppManager.shared.enableJIT(for: installedApp) { result in
DispatchQueue.main.async {
switch result