From f0ee1358fb53fb3da887e661036bfbddd5fe815f Mon Sep 17 00:00:00 2001 From: Alessandro Boron Date: Wed, 30 Oct 2024 14:03:57 +0100 Subject: [PATCH] TODO REMOVE ME --- Core/DefaultVariantManager.swift | 2 ++ DuckDuckGo/OnboardingExperiment/Manager/OnboardingManager.swift | 1 + 2 files changed, 3 insertions(+) diff --git a/Core/DefaultVariantManager.swift b/Core/DefaultVariantManager.swift index 76f0f8475a..90ae323512 100644 --- a/Core/DefaultVariantManager.swift +++ b/Core/DefaultVariantManager.swift @@ -153,6 +153,8 @@ public class DefaultVariantManager: VariantManager { } private func selectVariant() -> Variant? { + return VariantIOS(name: "mx", weight: 1, isIncluded: VariantIOS.When.always, features: [.newOnboardingIntroHighlights, .contextualDaxDialogs]) + if let overriddenAppVariantName = variantNameOverride.overriddenAppVariantName { return variants.first(where: { $0.name == overriddenAppVariantName }) } diff --git a/DuckDuckGo/OnboardingExperiment/Manager/OnboardingManager.swift b/DuckDuckGo/OnboardingExperiment/Manager/OnboardingManager.swift index f3ab2408a4..fe9d03622a 100644 --- a/DuckDuckGo/OnboardingExperiment/Manager/OnboardingManager.swift +++ b/DuckDuckGo/OnboardingExperiment/Manager/OnboardingManager.swift @@ -86,6 +86,7 @@ protocol OnboardingAddToDockDebugging: AnyObject { extension OnboardingManager: OnboardingAddToDockManaging, OnboardingAddToDockDebugging { var isAddToDockEnabled: Bool { + return true // TODO: Add variant condition once the experiment is setup isIphone && isAddToDockLocalFlagEnabled && isAddToDockFeatureFlagEnabled }