From 2736df6c39d1cd576f76c739036844ebf247ba2b Mon Sep 17 00:00:00 2001 From: Anya Mallon Date: Tue, 3 Dec 2024 13:21:03 +0100 Subject: [PATCH] Update for unit testing --- .../SecureVault/AutofillDatabaseProvider.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/BrowserServicesKit/SecureVault/AutofillDatabaseProvider.swift b/Sources/BrowserServicesKit/SecureVault/AutofillDatabaseProvider.swift index 461ef2dc9..dae41804d 100644 --- a/Sources/BrowserServicesKit/SecureVault/AutofillDatabaseProvider.swift +++ b/Sources/BrowserServicesKit/SecureVault/AutofillDatabaseProvider.swift @@ -1450,7 +1450,11 @@ private extension Bundle { var appGroupPrefix: String { let groupIdPrefixKey = "DuckDuckGoGroupIdentifierPrefix" guard let groupIdPrefix = Bundle.main.object(forInfoDictionaryKey: groupIdPrefixKey) as? String else { + #if DEBUG && os(iOS) + return "group.com.duckduckgo.test" + #else fatalError("Info.plist must contain a \"\(groupIdPrefixKey)\" entry with a string value") + #endif } return groupIdPrefix }