From dac366d2d42009f86f0e13172baf0032bb62ce72 Mon Sep 17 00:00:00 2001 From: Sam Symons Date: Tue, 30 Jan 2024 02:59:05 -0800 Subject: [PATCH] Don't set dryRun for alpha builds (#2412) Task/Issue URL: https://app.asana.com/0/414235014887631/1206474118520097/f Tech Design URL: CC: Description: This PR makes sure that alpha builds can send pixels. --- DuckDuckGo/AppDelegate.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DuckDuckGo/AppDelegate.swift b/DuckDuckGo/AppDelegate.swift index 0129f3c481..e997dcd121 100644 --- a/DuckDuckGo/AppDelegate.swift +++ b/DuckDuckGo/AppDelegate.swift @@ -101,11 +101,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } #endif - if isDebugBuild { - Pixel.isDryRun = true - } else { - Pixel.isDryRun = false - } +#if DEBUG && !ALPHA + Pixel.isDryRun = true +#else + Pixel.isDryRun = false +#endif ContentBlocking.shared.onCriticalError = presentPreemptiveCrashAlert // Explicitly prepare ContentBlockingUpdating instance before Tabs are created