From 38a69823016b87540db24469d06d9dd682af2852 Mon Sep 17 00:00:00 2001 From: Sam Symons Date: Wed, 3 Jan 2024 23:35:55 -0800 Subject: [PATCH] Update NetP launch agent logic to include build number (#2015) Task/Issue URL: https://app.asana.com/0/1199230911884351/1206277530960782/f Description: This PR updates the NetP launch logic to include the build number. Previously it only used the version number to detect if the app had been updated and thus needed to re-install the agent, but now we publish builds with the same version number multiple times and only bump the build number. --- .../AppTargets/BothAppTargets/NetworkProtectionAppEvents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionAppEvents.swift b/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionAppEvents.swift index 48c5e2dfa1..e58bd5ba11 100644 --- a/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionAppEvents.swift +++ b/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionAppEvents.swift @@ -115,7 +115,7 @@ final class NetworkProtectionAppEvents { } private func restartNetworkProtectionIfVersionChanged(using loginItemsManager: LoginItemsManager) { - let currentVersion = AppVersion.shared.versionNumber + let currentVersion = AppVersion.shared.versionAndBuildNumber let versionStore = NetworkProtectionLastVersionRunStore() defer { versionStore.lastVersionRun = currentVersion