From 1183674b602f28bc2b3daf78a12ce062013bcfab Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 10:30:16 +0000 Subject: [PATCH] Fix syntax errors and Swift warnings: 1. Remove extraneous curly brace in SettingsViewController.swift 2. Add @unchecked Sendable conformance to operation classes --- AltStore/Operations/BackgroundRefreshAppsOperation.swift | 2 +- AltStore/Operations/InstallAppOperation.swift | 2 +- AltStore/Operations/RemoveAppBackupOperation.swift | 2 +- AltStore/Settings/SettingsViewController.swift | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AltStore/Operations/BackgroundRefreshAppsOperation.swift b/AltStore/Operations/BackgroundRefreshAppsOperation.swift index de21751b7..ae88405f9 100644 --- a/AltStore/Operations/BackgroundRefreshAppsOperation.swift +++ b/AltStore/Operations/BackgroundRefreshAppsOperation.swift @@ -52,7 +52,7 @@ private let ReceivedApplicationState: @convention(c) (CFNotificationCenter?, Uns } @objc(BackgroundRefreshAppsOperation) -final class BackgroundRefreshAppsOperation: ResultOperation<[String: Result]> +final class BackgroundRefreshAppsOperation: ResultOperation<[String: Result]>, @unchecked Sendable { let installedApps: [InstalledApp] private let managedObjectContext: NSManagedObjectContext diff --git a/AltStore/Operations/InstallAppOperation.swift b/AltStore/Operations/InstallAppOperation.swift index c88ad8d03..5feb9d316 100644 --- a/AltStore/Operations/InstallAppOperation.swift +++ b/AltStore/Operations/InstallAppOperation.swift @@ -14,7 +14,7 @@ import Roxas import minimuxer @objc(InstallAppOperation) -final class InstallAppOperation: ResultOperation +final class InstallAppOperation: ResultOperation, @unchecked Sendable { let context: InstallAppOperationContext diff --git a/AltStore/Operations/RemoveAppBackupOperation.swift b/AltStore/Operations/RemoveAppBackupOperation.swift index 113b130a9..bfe21976f 100644 --- a/AltStore/Operations/RemoveAppBackupOperation.swift +++ b/AltStore/Operations/RemoveAppBackupOperation.swift @@ -11,7 +11,7 @@ import Foundation import AltStoreCore @objc(RemoveAppBackupOperation) -final class RemoveAppBackupOperation: ResultOperation +final class RemoveAppBackupOperation: ResultOperation, @unchecked Sendable { let context: InstallAppOperationContext diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 718b1110b..74c68444b 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -1561,4 +1561,3 @@ private extension SettingsViewController self.present(alertController, animated: true) } -}