From 65cfb8b60909be241d4b5d11c764c1eb3f174534 Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Tue, 22 Oct 2024 17:08:18 +0100 Subject: [PATCH] Add AI Chat feature flag (#1031) Task/Issue URL: https://app.asana.com/0/1204167627774280/1208539744359975/f iOS PR: https://github.com/duckduckgo/iOS/pull/3468 macOS PR: https://github.com/duckduckgo/macos-browser/pull/3439 What kind of version bump will this require?: Minor **Description**: Add feature flag for AI Chat settings --- .../PrivacyConfig/Features/PrivacyFeature.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift index bcc17c273..95126f572 100644 --- a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift +++ b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift @@ -60,6 +60,7 @@ public enum PrivacyFeature: String { case marketplaceAdPostback case autocompleteTabs case networkProtection + case aiChat } /// An abstraction to be implemented by any "subfeature" of a given `PrivacyConfiguration` feature. @@ -97,6 +98,18 @@ public enum DBPSubfeature: String, Equatable, PrivacySubfeature { case freemium } +public enum AIChatSubfeature: String, Equatable, PrivacySubfeature { + public var parent: PrivacyFeature { + .aiChat + } + + /// Displays the settings item for showing a shortcut in the Application Menu + case applicationMenuShortcut + + /// Displays the settings item for showing a shortcut in the Toolbar + case toolbarShortcut +} + public enum NetworkProtectionSubfeature: String, Equatable, PrivacySubfeature { public var parent: PrivacyFeature { .networkProtection