Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into alex/kill-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Jul 28, 2023
2 parents 04727ff + 46435ec commit 1191b09
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10104,7 +10104,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = revision;
revision = 091de77bb40701c566b57e55c42f47a8b2a9cd78;
revision = 3dc29dd35a9084c1d6dae8748445be37e4679172;
};
};
AA06B6B52672AF8100F541C5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "091de77bb40701c566b57e55c42f47a8b2a9cd78"
"revision" : "3dc29dd35a9084c1d6dae8748445be37e4679172"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extension UserText {
static let networkProtectionInviteDialogMessage = NSLocalizedString("network.protection.invite.dialog.message", value: "Enter your invite code to get started.", comment: "Message for the network protection invite dialog")
static let networkProtectionInviteFieldPrompt = NSLocalizedString("network.protection.invite.field.prompt", value: "Code", comment: "Prompt for the network protection invite code text field")
static let networkProtectionInviteSuccessTitle = NSLocalizedString("network.protection.invite.success.title", value: "Success! You’re in.", comment: "Title for the network protection invite success view")
static let networkProtectionInviteSuccessMessage = NSLocalizedString("network.protection.invite.success.title", value: "Hide your location from websites and conceal your online activity from Internet providers and others on your network.", comment: "Message for the network protection invite success view")
static let networkProtectionInviteSuccessMessage = NSLocalizedString("network.protection.invite.success.title", value: "DuckDuckGo's VPN secures all of your device's Internet traffic anytime, anywhere.", comment: "Message for the network protection invite success view")

// MARK: - Navigation Bar Status View

Expand Down
2 changes: 2 additions & 0 deletions DuckDuckGo/ContentBlocker/ContentBlocking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ final class AppContentBlocking {
domainEvent = .adClickAttributionDetected
case .adAttributionActive:
domainEvent = .adClickAttributionActive
case .adAttributionPageLoads:
domainEvent = .adClickAttributionPageLoads
}

Pixel.fire(domainEvent, withAdditionalParameters: parameters ?? [:])
Expand Down
4 changes: 4 additions & 0 deletions DuckDuckGo/Menus/MainMenu.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,10 @@ CQ
</connections>
</menuItem>
</items>
<connections>
<outlet property="simulateControllerFailureMenuItem" destination="xyA-ob-gEy" id="1VV-xV-wsB"/>
<outlet property="simulateTunnelFailureMenuItem" destination="kVa-n8-UNx" id="3Ie-Ed-VtG"/>
</connections>
</menu>
</menuItem>
</items>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ final class NetworkProtectionSimulateFailureMenu: NSMenu {
@objc
@MainActor
final class NetworkProtectionSimulateFailureMenu: NSMenu {
@IBOutlet weak var simulateControllerFailureMenuItem: NSMenuItem?
@IBOutlet weak var simulateTunnelFailureMenuItem: NSMenuItem?
@IBOutlet weak var simulateControllerFailureMenuItem: NSMenuItem!
@IBOutlet weak var simulateTunnelFailureMenuItem: NSMenuItem!

private var simulationOptions: NetworkProtectionSimulationOptions {
NetworkProtectionTunnelController.simulationOptions
Expand All @@ -61,8 +61,8 @@ final class NetworkProtectionSimulateFailureMenu: NSMenu {
}

override func update() {
simulateControllerFailureMenuItem?.state = simulationOptions.isEnabled(.controllerFailure) ? .on : .off
simulateTunnelFailureMenuItem?.state = simulationOptions.isEnabled(.tunnelFailure) ? .on : .off
simulateControllerFailureMenuItem.state = simulationOptions.isEnabled(.controllerFailure) ? .on : .off
simulateTunnelFailureMenuItem.state = simulationOptions.isEnabled(.tunnelFailure) ? .on : .off
}
}

Expand Down
4 changes: 4 additions & 0 deletions DuckDuckGo/Statistics/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ extension Pixel {

case adClickAttributionDetected
case adClickAttributionActive
case adClickAttributionPageLoads

case emailEnabled
case emailDisabled
Expand Down Expand Up @@ -312,6 +313,9 @@ extension Pixel.Event {
case .adClickAttributionActive:
return "m_mac_ad_click_active"

case .adClickAttributionPageLoads:
return "m_mac_ad_click_page_loads"

// Deliberately omit the `m_mac_` prefix in order to format these pixels the same way as other platforms
case .emailEnabled: return "email_enabled_macos_desktop"
case .emailDisabled: return "email_disabled_macos_desktop"
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/Statistics/PixelParameters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ extension Pixel.Event {
.ampBlockingRulesCompilationFailed,
.adClickAttributionDetected,
.adClickAttributionActive,
.adClickAttributionPageLoads,
.emailEnabled,
.emailDisabled,
.emailUserCreatedAlias,
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
targets: ["NetworkProtectionUI"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "70.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "71.0.0"),
.package(path: "../SwiftUIExtensions")
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import Foundation

final class UserText {
static let networkProtectionStatusViewFeatureDesc = NSLocalizedString("network.protection.status.view.feature.description", value: "Hide your location from websites and conceal your online activity from Internet providers and others on your network.", comment: "Feature description shown in NetworkProtection's status view.")
static let networkProtectionStatusViewFeatureDesc = NSLocalizedString("network.protection.status.view.feature.description", value: "DuckDuckGo's VPN secures all of your device's Internet traffic anytime, anywhere.", comment: "Feature description shown in NetworkProtection's status view.")
static let networkProtectionStatusViewConnDetails = NSLocalizedString("network.protection.status.view.connection.details", value: "Connection Details", comment: "Connection details label shown in NetworkProtection's status view.")
static let networkProtectionStatusViewConnLabel = NSLocalizedString("network.protection.status.view.connection.label", value: "Network Protection", comment: "Connection label shown in NetworkProtection's status view.")
static let networkProtectionStatusViewLocation = NSLocalizedString("network.protection.status.view.location", value: "Location", comment: "Location label shown in NetworkProtection's status view.")
Expand Down

0 comments on commit 1191b09

Please sign in to comment.