Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 584398f

Browse files
authored
Merge release/1.111.0 into main
2 parents 9758708 + d99fd1a commit 584398f

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Configuration/BuildNumber.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 288
1+
CURRENT_PROJECT_VERSION = 289

DuckDuckGo/Onboarding/OnboardingUserScript.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class OnboardingUserScript: NSObject, Subfeature {
2525
let onboardingActionsManager: OnboardingActionsManaging
2626
var messageOriginPolicy: MessageOriginPolicy = .only(rules: [.exact(hostname: "onboarding")])
2727
let featureName: String = "onboarding"
28-
var broker: UserScriptMessageBroker?
28+
weak var broker: UserScriptMessageBroker?
2929

3030
// MARK: - MessageNames
3131
enum MessageNames: String, CaseIterable {

DuckDuckGoVPN/DuckDuckGoVPNAppDelegate.swift

+11-3
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ final class DuckDuckGoVPNAppDelegate: NSObject, NSApplicationDelegate {
388388

389389
configurationSubscription = privacyConfigurationManager.updatesPublisher
390390
.sink { [weak self] in
391-
if self?.privacyConfigurationManager.privacyConfig.isSubfeatureEnabled(BackgroundAgentPixelTestSubfeature.pixelTest) ?? false {
392-
PixelKit.fire(NetworkProtectionPixelEvent.networkProtectionConfigurationPixelTest, frequency: .daily)
393-
}
391+
self?.firePrivacyConfigTestPixelIfNecessary()
394392
}
395393

396394
if launchedOnStartup {
@@ -428,6 +426,9 @@ final class DuckDuckGoVPNAppDelegate: NSObject, NSApplicationDelegate {
428426

429427
private func setUpSubscriptionMonitoring() {
430428
guard accountManager.isUserAuthenticated else { return }
429+
430+
self.firePrivacyConfigTestPixelIfNecessary()
431+
431432
let entitlementsCheck = {
432433
await self.accountManager.hasEntitlement(forProductName: .networkProtection, cachePolicy: .reloadIgnoringLocalCacheData)
433434
}
@@ -454,6 +455,13 @@ final class DuckDuckGoVPNAppDelegate: NSObject, NSApplicationDelegate {
454455
}
455456
}
456457
}
458+
459+
private func firePrivacyConfigTestPixelIfNecessary() {
460+
if privacyConfigurationManager.privacyConfig.isSubfeatureEnabled(BackgroundAgentPixelTestSubfeature.pixelTest) {
461+
PixelKit.fire(NetworkProtectionPixelEvent.networkProtectionConfigurationPixelTest, frequency: .daily)
462+
}
463+
}
464+
457465
}
458466

459467
extension DuckDuckGoVPNAppDelegate: AccountManagerKeychainAccessDelegate {

0 commit comments

Comments
 (0)