From 6d0f4bb3da8385b8e26ce624216b1992df03b9ea Mon Sep 17 00:00:00 2001 From: Joelle Stickney Date: Tue, 28 Mar 2023 23:48:24 -0400 Subject: [PATCH] Fixes widget refreshing and is more thorough matching store ID --- Shared/Extensions/ALTApplication+AltStoreApp.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shared/Extensions/ALTApplication+AltStoreApp.swift b/Shared/Extensions/ALTApplication+AltStoreApp.swift index 66c567cc..9a7ee78f 100644 --- a/Shared/Extensions/ALTApplication+AltStoreApp.swift +++ b/Shared/Extensions/ALTApplication+AltStoreApp.swift @@ -11,10 +11,12 @@ import AltSign extension ALTApplication { static let altstoreBundleID = Bundle.Info.appbundleIdentifier - static let altstoreBundleIDOriginal = "rileytestut.AltStore" + static let altstoreBundleIDOriginal = "AltStore" + static let storeBundleID = "SideStore" + static let widgetID = "Widget" var isAltStoreApp: Bool { - let isAltStoreApp = self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal) + let isAltStoreApp = ( self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal) || self.bundleIdentifier.contains(ALTApplication.storeBundleID) ) && !self.bundleIdentifier.contains(ALTApplication.widgetID) return isAltStoreApp } }