From e83fd007c0bdf054658068a79f5b7ea45d846468 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Wed, 20 Nov 2024 12:36:24 +0100 Subject: [PATCH 1/2] Receive privacy config updates in AddressBarModel on main thread (#3574) Task/Issue URL: https://app.asana.com/0/1201037661562251/1208804405760977/f Description: This privacy config update may update a published value so must be received on main thread. --- DuckDuckGo/HomePage/Model/HomePageAddressBarModel.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DuckDuckGo/HomePage/Model/HomePageAddressBarModel.swift b/DuckDuckGo/HomePage/Model/HomePageAddressBarModel.swift index 6ec762b35d..12b321117a 100644 --- a/DuckDuckGo/HomePage/Model/HomePageAddressBarModel.swift +++ b/DuckDuckGo/HomePage/Model/HomePageAddressBarModel.swift @@ -121,9 +121,11 @@ extension HomePage.Models { isExperimentActive = privacyConfigurationManager.privacyConfig.isEnabled(featureKey: .newTabSearchField) setUpExperimentIfNeeded() - privacyConfigCancellable = privacyConfigurationManager.updatesPublisher.sink { [weak self, weak privacyConfigurationManager] in - self?.isExperimentActive = privacyConfigurationManager?.privacyConfig.isEnabled(featureKey: .newTabSearchField) == true - } + privacyConfigCancellable = privacyConfigurationManager.updatesPublisher + .receive(on: DispatchQueue.main) + .sink { [weak self, weak privacyConfigurationManager] in + self?.isExperimentActive = privacyConfigurationManager?.privacyConfig.isEnabled(featureKey: .newTabSearchField) == true + } } private lazy var addressBarViewController: AddressBarViewController? = createAddressBarViewController() From 1b6f8be812eac431d4e36ec24d4344369f4ce470 Mon Sep 17 00:00:00 2001 From: Anka Date: Thu, 21 Nov 2024 05:17:40 +0000 Subject: [PATCH 2/2] Bump version to 1.115.0 (312) --- Configuration/BuildNumber.xcconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/BuildNumber.xcconfig b/Configuration/BuildNumber.xcconfig index 796eb3bb97..206ff962a3 100644 --- a/Configuration/BuildNumber.xcconfig +++ b/Configuration/BuildNumber.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 311 +CURRENT_PROJECT_VERSION = 312