mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-22 13:13:24 +01:00
cleanup: updated strings and variables to reflect appExBundleID
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user