mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
[AltStoreCore] Replaces remaining Bundle.appGroups.first with Bundle.altstoreAppGroup
Ensures we can still find the correct AltStore app group even if it isn’t the first one listed in the Info.plist.
This commit is contained in:
@@ -11,7 +11,7 @@ import Foundation
|
||||
public extension FileManager
|
||||
{
|
||||
var altstoreSharedDirectory: URL? {
|
||||
guard let appGroup = Bundle.main.appGroups.first else { return nil }
|
||||
guard let appGroup = Bundle.main.altstoreAppGroup else { return nil }
|
||||
|
||||
let sharedDirectoryURL = self.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
||||
return sharedDirectoryURL
|
||||
|
||||
@@ -13,7 +13,7 @@ import Roxas
|
||||
public extension UserDefaults
|
||||
{
|
||||
static let shared: UserDefaults = {
|
||||
guard let appGroup = Bundle.main.appGroups.first else { return .standard }
|
||||
guard let appGroup = Bundle.main.altstoreAppGroup else { return .standard }
|
||||
|
||||
let sharedUserDefaults = UserDefaults(suiteName: appGroup)!
|
||||
return sharedUserDefaults
|
||||
|
||||
Reference in New Issue
Block a user