cleanup: updated strings and variables to reflect appExBundleID

This commit is contained in:
mahee96
2026-02-22 04:11:58 +05:30
parent 31fe7fed8c
commit 37cc2cfca6

View File

@@ -98,22 +98,22 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
let resignedParentBundleID = resignedApp.bundleIdentifier let resignedParentBundleID = resignedApp.bundleIdentifier
let resignedBundleID = appExtension.bundleIdentifier let resignedBundleID = appExtension.bundleIdentifier
let originalBundleID = resignedBundleID.replacingOccurrences(of: resignedParentBundleID, with: parentBundleID) let appExBundleID = resignedBundleID.replacingOccurrences(of: resignedParentBundleID, with: parentBundleID)
print("`parentBundleID`: \(parentBundleID)") print("`parentBundleID`: \(parentBundleID)")
print("`resignedParentBundleID`: \(resignedParentBundleID)") print("`resignedParentBundleID`: \(resignedParentBundleID)")
print("`resignedBundleID`: \(resignedBundleID)") print("`appExBundleID`: \(appExBundleID)")
print("`originalBundleID`: \(originalBundleID)") print("`resignedAppExBundleID`: \(resignedBundleID)")
let installedExtension: InstalledExtension let installedExtension: InstalledExtension
if let appExtension = installedApp.appExtensions.first(where: { $0.bundleIdentifier == originalBundleID }) if let appExtension = installedApp.appExtensions.first(where: { $0.bundleIdentifier == appExBundleID })
{ {
installedExtension = appExtension installedExtension = appExtension
} }
else else
{ {
installedExtension = InstalledExtension(resignedAppExtension: appExtension, originalBundleIdentifier: originalBundleID, context: backgroundContext) installedExtension = InstalledExtension(resignedAppExtension: appExtension, originalBundleIdentifier: appExBundleID, context: backgroundContext)
} }
installedExtension.update(resignedAppExtension: appExtension) installedExtension.update(resignedAppExtension: appExtension)