fix: changed App Group name to fit the requirements. It fixes widgets in macOS 15 but could break macOS 14. Since in the macOS 14 it was not working properly with the team ID prefix (#2115)

This commit is contained in:
Serhiy Mytrovtsiy
2024-09-28 19:58:42 +02:00
parent 109bc416b9
commit 97e00dcc82
11 changed files with 18 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ public struct Network_entry: TimelineEntry {
public struct Provider: TimelineProvider {
public typealias Entry = Network_entry
private let userDefaults: UserDefaults? = UserDefaults(suiteName: "eu.exelban.Stats.widgets")
private let userDefaults: UserDefaults? = UserDefaults(suiteName: "\(Bundle.main.object(forInfoDictionaryKey: "TeamId") as! String).eu.exelban.Stats.widgets")
public func placeholder(in context: Context) -> Network_entry {
Network_entry()