mirror of
https://github.com/SideStore/SideStore.git
synced 2026-04-05 18:25:41 +02:00
Removes unnecessary @available annotations
This commit is contained in:
@@ -121,7 +121,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
extension AppDelegate
|
extension AppDelegate
|
||||||
{
|
{
|
||||||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration
|
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
import Intents
|
import Intents
|
||||||
|
|
||||||
// Requires iOS 14 in-app intent handling.
|
|
||||||
@available(iOS 14, *)
|
|
||||||
extension INInteraction
|
extension INInteraction
|
||||||
{
|
{
|
||||||
static func refreshAllApps() -> INInteraction
|
static func refreshAllApps() -> INInteraction
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ extension UIDevice
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
var supportsFugu14: Bool {
|
var supportsFugu14: Bool {
|
||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
return true
|
return true
|
||||||
@@ -40,7 +39,6 @@ extension UIDevice
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
var isUntetheredJailbreakRequired: Bool {
|
var isUntetheredJailbreakRequired: Bool {
|
||||||
let ios14_4 = OperatingSystemVersion(majorVersion: 14, minorVersion: 4, patchVersion: 0)
|
let ios14_4 = OperatingSystemVersion(majorVersion: 14, minorVersion: 4, patchVersion: 0)
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ private extension SystemSoundID
|
|||||||
static let tryAgain = SystemSoundID(1102)
|
static let tryAgain = SystemSoundID(1102)
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
extension UIDevice
|
extension UIDevice
|
||||||
{
|
{
|
||||||
enum VibrationPattern
|
enum VibrationPattern
|
||||||
@@ -26,7 +25,6 @@ extension UIDevice
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
extension UIDevice
|
extension UIDevice
|
||||||
{
|
{
|
||||||
var isVibrationSupported: Bool {
|
var isVibrationSupported: Bool {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import Foundation
|
|||||||
|
|
||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
class IntentHandler: NSObject, RefreshAllIntentHandling
|
class IntentHandler: NSObject, RefreshAllIntentHandling
|
||||||
{
|
{
|
||||||
private let queue = DispatchQueue(label: "io.altstore.IntentHandler")
|
private let queue = DispatchQueue(label: "io.altstore.IntentHandler")
|
||||||
@@ -91,7 +90,6 @@ class IntentHandler: NSObject, RefreshAllIntentHandling
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
private extension IntentHandler
|
private extension IntentHandler
|
||||||
{
|
{
|
||||||
func finish(_ intent: RefreshAllIntent, response: RefreshAllIntentResponse)
|
func finish(_ intent: RefreshAllIntent, response: RefreshAllIntentResponse)
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ extension AppManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
class AppManagerPublisher: ObservableObject
|
class AppManagerPublisher: ObservableObject
|
||||||
{
|
{
|
||||||
@Published
|
@Published
|
||||||
@@ -92,7 +91,6 @@ class AppManager
|
|||||||
self.progressLock.deallocate()
|
self.progressLock.deallocate()
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
func prepareSubscriptions()
|
func prepareSubscriptions()
|
||||||
{
|
{
|
||||||
/// Every time refreshProgress is changed, update all InstalledApps in memory
|
/// Every time refreshProgress is changed, update all InstalledApps in memory
|
||||||
@@ -697,7 +695,6 @@ extension AppManager
|
|||||||
self.run([removeAppOperation, removeAppBackupOperation], context: authenticationContext)
|
self.run([removeAppOperation, removeAppBackupOperation], context: authenticationContext)
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
func enableJIT(for installedApp: InstalledApp, completionHandler: @escaping (Result<Void, Error>) -> Void)
|
func enableJIT(for installedApp: InstalledApp, completionHandler: @escaping (Result<Void, Error>) -> Void)
|
||||||
{
|
{
|
||||||
class Context: OperationContext, EnableJITContext
|
class Context: OperationContext, EnableJITContext
|
||||||
@@ -730,7 +727,6 @@ extension AppManager
|
|||||||
self.run([enableJITOperation], context: context, requiresSerialQueue: true)
|
self.run([enableJITOperation], context: context, requiresSerialQueue: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
func patch(resignedApp: ALTApplication, presentingViewController: UIViewController, context authContext: AuthenticatedOperationContext, completionHandler: @escaping (Result<InstalledApp, Error>) -> Void) -> PatchAppOperation
|
func patch(resignedApp: ALTApplication, presentingViewController: UIViewController, context authContext: AuthenticatedOperationContext, completionHandler: @escaping (Result<InstalledApp, Error>) -> Void) -> PatchAppOperation
|
||||||
{
|
{
|
||||||
class Context: InstallAppOperationContext, PatchAppContext
|
class Context: InstallAppOperationContext, PatchAppContext
|
||||||
|
|||||||
@@ -1415,7 +1415,6 @@ private extension MyAppsViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
func enableJIT(for installedApp: InstalledApp)
|
func enableJIT(for installedApp: InstalledApp)
|
||||||
{
|
{
|
||||||
AppManager.shared.enableJIT(for: installedApp) { result in
|
AppManager.shared.enableJIT(for: installedApp) { result in
|
||||||
@@ -1655,7 +1654,6 @@ extension MyAppsViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13.0, *)
|
|
||||||
extension MyAppsViewController
|
extension MyAppsViewController
|
||||||
{
|
{
|
||||||
private func actions(for installedApp: InstalledApp) -> [UIMenuElement]
|
private func actions(for installedApp: InstalledApp) -> [UIMenuElement]
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import Combine
|
|||||||
|
|
||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
protocol EnableJITContext
|
protocol EnableJITContext
|
||||||
{
|
{
|
||||||
var server: Server? { get }
|
var server: Server? { get }
|
||||||
@@ -20,7 +19,6 @@ protocol EnableJITContext
|
|||||||
var error: Error? { get }
|
var error: Error? { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
class EnableJITOperation<Context: EnableJITContext>: ResultOperation<Void>
|
class EnableJITOperation<Context: EnableJITContext>: ResultOperation<Void>
|
||||||
{
|
{
|
||||||
let context: Context
|
let context: Context
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import AltStoreCore
|
|||||||
import AltSign
|
import AltSign
|
||||||
import Roxas
|
import Roxas
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
protocol PatchAppContext
|
protocol PatchAppContext
|
||||||
{
|
{
|
||||||
var bundleIdentifier: String { get }
|
var bundleIdentifier: String { get }
|
||||||
@@ -71,7 +70,6 @@ private struct OTAUpdate
|
|||||||
var archivePath: String
|
var archivePath: String
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
class PatchAppOperation: ResultOperation<Void>
|
class PatchAppOperation: ResultOperation<Void>
|
||||||
{
|
{
|
||||||
let context: PatchAppContext
|
let context: PatchAppContext
|
||||||
@@ -148,7 +146,6 @@ private let ALTFragmentZipCallback: @convention(c) (UInt32) -> Void = { (percent
|
|||||||
progress.completedUnitCount = Int64(percentageComplete)
|
progress.completedUnitCount = Int64(percentageComplete)
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
private extension PatchAppOperation
|
private extension PatchAppOperation
|
||||||
{
|
{
|
||||||
func fetchOTAUpdate() -> AnyPublisher<OTAUpdate, Error>
|
func fetchOTAUpdate() -> AnyPublisher<OTAUpdate, Error>
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import AltStoreCore
|
|||||||
import AltSign
|
import AltSign
|
||||||
import Roxas
|
import Roxas
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
extension PatchViewController
|
extension PatchViewController
|
||||||
{
|
{
|
||||||
enum Step
|
enum Step
|
||||||
@@ -28,7 +27,6 @@ extension PatchViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
class PatchViewController: UIViewController
|
class PatchViewController: UIViewController
|
||||||
{
|
{
|
||||||
var patchApp: AnyApp?
|
var patchApp: AnyApp?
|
||||||
@@ -99,7 +97,6 @@ class PatchViewController: UIViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
private extension PatchViewController
|
private extension PatchViewController
|
||||||
{
|
{
|
||||||
func update()
|
func update()
|
||||||
@@ -212,7 +209,6 @@ private extension PatchViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
private extension PatchViewController
|
private extension PatchViewController
|
||||||
{
|
{
|
||||||
@IBAction func performButtonAction()
|
@IBAction func performButtonAction()
|
||||||
@@ -254,7 +250,6 @@ private extension PatchViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14.0, *)
|
|
||||||
private extension PatchViewController
|
private extension PatchViewController
|
||||||
{
|
{
|
||||||
func startProcess()
|
func startProcess()
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate
|
||||||
{
|
{
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
@@ -75,7 +74,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13.0, *)
|
|
||||||
private extension SceneDelegate
|
private extension SceneDelegate
|
||||||
{
|
{
|
||||||
func open(_ context: UIOpenURLContext)
|
func open(_ context: UIOpenURLContext)
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import UIKit
|
|||||||
@objc(ErrorLogMenuButton)
|
@objc(ErrorLogMenuButton)
|
||||||
private class ErrorLogMenuButton: UIButton
|
private class ErrorLogMenuButton: UIButton
|
||||||
{
|
{
|
||||||
@available(iOS 14.0, *)
|
|
||||||
override func menuAttachmentPoint(for configuration: UIContextMenuConfiguration) -> CGPoint
|
override func menuAttachmentPoint(for configuration: UIContextMenuConfiguration) -> CGPoint
|
||||||
{
|
{
|
||||||
var point = super.menuAttachmentPoint(for: configuration)
|
var point = super.menuAttachmentPoint(for: configuration)
|
||||||
|
|||||||
@@ -320,7 +320,6 @@ private extension SettingsViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
@IBAction func addRefreshAppsShortcut()
|
@IBAction func addRefreshAppsShortcut()
|
||||||
{
|
{
|
||||||
guard let shortcut = INShortcut(intent: INInteraction.refreshAllApps().intent) else { return }
|
guard let shortcut = INShortcut(intent: INInteraction.refreshAllApps().intent) else { return }
|
||||||
|
|||||||
@@ -566,7 +566,6 @@ extension SourcesViewController: UICollectionViewDelegateFlowLayout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13, *)
|
|
||||||
extension SourcesViewController
|
extension SourcesViewController
|
||||||
{
|
{
|
||||||
override func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?
|
override func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
import Intents
|
import Intents
|
||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
public class ViewAppIntentHandler: NSObject, ViewAppIntentHandling
|
public class ViewAppIntentHandler: NSObject, ViewAppIntentHandling
|
||||||
{
|
{
|
||||||
public func provideAppOptionsCollection(for intent: ViewAppIntent, with completion: @escaping (INObjectCollection<App>?, Error?) -> Void)
|
public func provideAppOptionsCollection(for intent: ViewAppIntent, with completion: @escaping (INObjectCollection<App>?, Error?) -> Void)
|
||||||
|
|||||||
@@ -408,7 +408,6 @@ private extension PatreonAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 13.0, *)
|
|
||||||
extension PatreonAPI: ASWebAuthenticationPresentationContextProviding
|
extension PatreonAPI: ASWebAuthenticationPresentationContextProviding
|
||||||
{
|
{
|
||||||
public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor
|
public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor
|
||||||
|
|||||||
Reference in New Issue
Block a user