From 46ccbe5aadf153c1cdd0160886ba84d9f838e33e Mon Sep 17 00:00:00 2001 From: Magesh K <47920326+mahee96@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:15:55 +0530 Subject: [PATCH] [cleanup]: renamed identifiers from io.altstore.xxxx to io.sidestore.xxxx --- AltBackup/AppDelegate.swift | 6 +++--- AltStore/AppDelegate.swift | 6 +++--- AltStore/Browse/FeaturedViewController.swift | 4 ++-- AltStore/Intents/Legacy/IntentHandler.swift | 2 +- AltStore/Managing Apps/AppManager.swift | 10 +++++----- AltStore/Settings/AltAppIconsViewController.swift | 2 +- AltStore/Sources/AddSourceViewController.swift | 2 +- AltStoreCore/Model/DatabaseManager.swift | 2 +- AltStoreCore/Model/InstalledApp.swift | 2 +- Shared/Categories/CFNotificationName+AltStore.m | 6 +++--- Shared/Connections/XPCConnection.swift | 6 +++--- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/AltBackup/AppDelegate.swift b/AltBackup/AppDelegate.swift index 5d8a21a7..f6fa628e 100644 --- a/AltBackup/AppDelegate.swift +++ b/AltBackup/AppDelegate.swift @@ -10,10 +10,10 @@ import UIKit extension AppDelegate { - static let startBackupNotification = Notification.Name("io.altstore.StartBackup") - static let startRestoreNotification = Notification.Name("io.altstore.StartRestore") + static let startBackupNotification = Notification.Name("io.sidestore.StartBackup") + static let startRestoreNotification = Notification.Name("io.sidestore.StartRestore") - static let operationDidFinishNotification = Notification.Name("io.altstore.BackupOperationFinished") + static let operationDidFinishNotification = Notification.Name("io.sidestore.BackupOperationFinished") static let operationResultKey = "result" } diff --git a/AltStore/AppDelegate.swift b/AltStore/AppDelegate.swift index 91faaa9b..49c1bda1 100644 --- a/AltStore/AppDelegate.swift +++ b/AltStore/AppDelegate.swift @@ -44,8 +44,8 @@ final class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. - UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.MigrationDebug") - UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.SQLDebug") +// UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.MigrationDebug") +// UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.SQLDebug") // Register default settings before doing anything else. UserDefaults.registerDefaults() @@ -164,7 +164,7 @@ private extension AppDelegate let pipeline = ImagePipeline { configuration in do { - let dataCache = try DataCache(name: "io.altstore.Nuke") + let dataCache = try DataCache(name: "io.sidestore.Nuke") dataCache.sizeLimit = 512 * 1024 * 1024 // 512MB configuration.dataCache = dataCache diff --git a/AltStore/Browse/FeaturedViewController.swift b/AltStore/Browse/FeaturedViewController.swift index 59739f6e..015324e5 100644 --- a/AltStore/Browse/FeaturedViewController.swift +++ b/AltStore/Browse/FeaturedViewController.swift @@ -15,8 +15,8 @@ import Nuke extension UIAction.Identifier { - fileprivate static let showAllApps = Self("io.altstore.ShowAllApps") - fileprivate static let showSourceDetails = Self("io.altstore.ShowSourceDetails") + fileprivate static let showAllApps = Self("io.sidestore.ShowAllApps") + fileprivate static let showSourceDetails = Self("io.sidestore.ShowSourceDetails") } extension FeaturedViewController diff --git a/AltStore/Intents/Legacy/IntentHandler.swift b/AltStore/Intents/Legacy/IntentHandler.swift index 8cefdaee..9191a670 100644 --- a/AltStore/Intents/Legacy/IntentHandler.swift +++ b/AltStore/Intents/Legacy/IntentHandler.swift @@ -14,7 +14,7 @@ import AltStoreCore @available(iOS 14, *) final class IntentHandler: NSObject, RefreshAllIntentHandling { - private let queue = DispatchQueue(label: "io.altstore.IntentHandler") + private let queue = DispatchQueue(label: "io.sidestore.IntentHandler") private var completionHandlers = [RefreshAllIntent: (RefreshAllIntentResponse) -> Void]() private var queuedResponses = [RefreshAllIntent: RefreshAllIntentResponse]() diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 13a8ff73..d36457ae 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -22,11 +22,11 @@ import Roxas extension AppManager { - static let didFetchSourceNotification = Notification.Name("io.altstore.AppManager.didFetchSource") - static let didUpdatePatronsNotification = Notification.Name("io.altstore.AppManager.didUpdatePatrons") - static let didAddSourceNotification = Notification.Name("io.altstore.AppManager.didAddSource") - static let didRemoveSourceNotification = Notification.Name("io.altstore.AppManager.didRemoveSource") - static let willInstallAppFromNewSourceNotification = Notification.Name("io.altstore.AppManager.willInstallAppFromNewSource") + static let didFetchSourceNotification = Notification.Name("io.sidestore.AppManager.didFetchSource") + static let didUpdatePatronsNotification = Notification.Name("io.sidestore.AppManager.didUpdatePatrons") + static let didAddSourceNotification = Notification.Name("io.sidestore.AppManager.didAddSource") + static let didRemoveSourceNotification = Notification.Name("io.sidestore.AppManager.didRemoveSource") + static let willInstallAppFromNewSourceNotification = Notification.Name("io.sidestore.AppManager.willInstallAppFromNewSource") static let expirationWarningNotificationID = "altstore-expiration-warning" static let enableJITResultNotificationID = "altstore-enable-jit" diff --git a/AltStore/Settings/AltAppIconsViewController.swift b/AltStore/Settings/AltAppIconsViewController.swift index 44e9f0bc..12df268d 100644 --- a/AltStore/Settings/AltAppIconsViewController.swift +++ b/AltStore/Settings/AltAppIconsViewController.swift @@ -15,7 +15,7 @@ import Roxas extension UIApplication { - static let didChangeAppIconNotification = Notification.Name("io.altstore.AppManager.didChangeAppIcon") + static let didChangeAppIconNotification = Notification.Name("io.sidestore.AppManager.didChangeAppIcon") } private final class AltIcon: Decodable diff --git a/AltStore/Sources/AddSourceViewController.swift b/AltStore/Sources/AddSourceViewController.swift index f47b3874..493e10de 100644 --- a/AltStore/Sources/AddSourceViewController.swift +++ b/AltStore/Sources/AddSourceViewController.swift @@ -16,7 +16,7 @@ import Nuke private extension UIAction.Identifier { - static let addSource = UIAction.Identifier("io.altstore.AddSource") + static let addSource = UIAction.Identifier("io.sidestore.AddSource") } private typealias SourcePreviewResult = (sourceURL: URL, result: Result, Error>) diff --git a/AltStoreCore/Model/DatabaseManager.swift b/AltStoreCore/Model/DatabaseManager.swift index 0b567c8d..e1371836 100644 --- a/AltStoreCore/Model/DatabaseManager.swift +++ b/AltStoreCore/Model/DatabaseManager.swift @@ -47,7 +47,7 @@ public class DatabaseManager public private(set) var isStarted = false private var startCompletionHandlers = [(Error?) -> Void]() - private let dispatchQueue = DispatchQueue(label: "io.altstore.DatabaseManager") + private let dispatchQueue = DispatchQueue(label: "io.sidestore.DatabaseManager") private let coordinator = NSFileCoordinator() private let coordinatorQueue = OperationQueue() diff --git a/AltStoreCore/Model/InstalledApp.swift b/AltStoreCore/Model/InstalledApp.swift index 5fefacb0..ed9c220e 100644 --- a/AltStoreCore/Model/InstalledApp.swift +++ b/AltStoreCore/Model/InstalledApp.swift @@ -405,7 +405,7 @@ public extension InstalledApp class func installedAppUTI(forBundleIdentifier bundleIdentifier: String) -> String { - let installedAppUTI = "io.altstore.Installed." + bundleIdentifier + let installedAppUTI = "io.sidestore.Installed." + bundleIdentifier return installedAppUTI } diff --git a/Shared/Categories/CFNotificationName+AltStore.m b/Shared/Categories/CFNotificationName+AltStore.m index ac0eb5d1..e7f9310c 100644 --- a/Shared/Categories/CFNotificationName+AltStore.m +++ b/Shared/Categories/CFNotificationName+AltStore.m @@ -8,6 +8,6 @@ #import "CFNotificationName+AltStore.h" -CFNotificationName const ALTWiredServerConnectionAvailableRequest = CFSTR("io.altstore.Request.WiredServerConnectionAvailable"); -CFNotificationName const ALTWiredServerConnectionAvailableResponse = CFSTR("io.altstore.Response.WiredServerConnectionAvailable"); -CFNotificationName const ALTWiredServerConnectionStartRequest = CFSTR("io.altstore.Request.WiredServerConnectionStart"); +CFNotificationName const ALTWiredServerConnectionAvailableRequest = CFSTR("io.sidestore.Request.WiredServerConnectionAvailable"); +CFNotificationName const ALTWiredServerConnectionAvailableResponse = CFSTR("io.sidestore.Response.WiredServerConnectionAvailable"); +CFNotificationName const ALTWiredServerConnectionStartRequest = CFSTR("io.sidestore.Request.WiredServerConnectionStart"); diff --git a/Shared/Connections/XPCConnection.swift b/Shared/Connections/XPCConnection.swift index 978cccb9..8659e98c 100644 --- a/Shared/Connections/XPCConnection.swift +++ b/Shared/Connections/XPCConnection.swift @@ -16,8 +16,8 @@ import Foundation extension XPCConnection { - public static let unc0verMachServiceName = "cy:io.altstore.altdaemon" - public static let odysseyMachServiceName = "lh:io.altstore.altdaemon" + public static let unc0verMachServiceName = "cy:io.sidestore.altdaemon" + public static let odysseyMachServiceName = "lh:io.sidestore.altdaemon" public static let machServiceNames = [unc0verMachServiceName, odysseyMachServiceName] } @@ -26,7 +26,7 @@ public class XPCConnection: NSObject, Connection { public let xpcConnection: NSXPCConnection - private let queue = DispatchQueue(label: "io.altstore.XPCConnection") + private let queue = DispatchQueue(label: "io.sidestore.XPCConnection") private let dispatchGroup = DispatchGroup() private var semaphore: DispatchSemaphore? private var buffer = Data(capacity: 1024)