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

Commit 805a41e

Browse files
Adds VPN Control Center widget and Siri Commands. (#3414)
Task/Issue URL: https://app.asana.com/0/1203108348835387/1208485618883319/f DRK PR: duckduckgo/DesignResourcesKit#9 ## Description Adds a VPN control widget for the control center and lock screen. Adds Siri commands to control the VPN with voice.
1 parent b5dac56 commit 805a41e

File tree

62 files changed

+1978
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1978
-299
lines changed

Core/PixelEvent.swift

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,32 @@ extension Pixel {
483483

484484
case networkProtectionWidgetConnectAttempt
485485
case networkProtectionWidgetConnectSuccess
486+
case networkProtectionWidgetConnectCancelled
487+
case networkProtectionWidgetConnectFailure
486488
case networkProtectionWidgetDisconnectAttempt
487489
case networkProtectionWidgetDisconnectSuccess
490+
case networkProtectionWidgetDisconnectCancelled
491+
case networkProtectionWidgetDisconnectFailure
492+
493+
case vpnControlCenterConnectAttempt
494+
case vpnControlCenterConnectSuccess
495+
case vpnControlCenterConnectCancelled
496+
case vpnControlCenterConnectFailure
497+
498+
case vpnControlCenterDisconnectAttempt
499+
case vpnControlCenterDisconnectSuccess
500+
case vpnControlCenterDisconnectCancelled
501+
case vpnControlCenterDisconnectFailure
502+
503+
case vpnShortcutConnectAttempt
504+
case vpnShortcutConnectSuccess
505+
case vpnShortcutConnectCancelled
506+
case vpnShortcutConnectFailure
507+
508+
case vpnShortcutDisconnectAttempt
509+
case vpnShortcutDisconnectSuccess
510+
case vpnShortcutDisconnectCancelled
511+
case vpnShortcutDisconnectFailure
488512

489513
case networkProtectionDNSUpdateCustom
490514
case networkProtectionDNSUpdateDefault
@@ -1455,9 +1479,9 @@ extension Pixel.Event {
14551479
case .remoteMessagePrimaryActionClicked: return "m_remote_message_primary_action_clicked"
14561480
case .remoteMessageSecondaryActionClicked: return "m_remote_message_secondary_action_clicked"
14571481
case .remoteMessageSheet: return "m_remote_message_sheet"
1458-
1482+
14591483
// MARK: debug pixels
1460-
1484+
14611485
case .dbCrashDetected: return "m_d_crash"
14621486
case .dbCrashDetectedDaily: return "m_d_crash_daily"
14631487
case .crashReportCRCIDMissing: return "m_crashreporting_crcid-missing"
@@ -1761,8 +1785,32 @@ extension Pixel.Event {
17611785

17621786
case .networkProtectionWidgetConnectAttempt: return "m_netp_widget_connect_attempt"
17631787
case .networkProtectionWidgetConnectSuccess: return "m_netp_widget_connect_success"
1788+
case .networkProtectionWidgetConnectCancelled: return "m_netp_widget_connect_cancelled"
1789+
case .networkProtectionWidgetConnectFailure: return "m_netp_widget_connect_failure"
17641790
case .networkProtectionWidgetDisconnectAttempt: return "m_netp_widget_disconnect_attempt"
17651791
case .networkProtectionWidgetDisconnectSuccess: return "m_netp_widget_disconnect_success"
1792+
case .networkProtectionWidgetDisconnectCancelled: return "m_netp_widget_disconnect_cancelled"
1793+
case .networkProtectionWidgetDisconnectFailure: return "m_netp_widget_disconnect_failure"
1794+
1795+
case .vpnControlCenterConnectAttempt: return "m_vpn_control-center_connect_attempt"
1796+
case .vpnControlCenterConnectSuccess: return "m_vpn_control-center_connect_success"
1797+
case .vpnControlCenterConnectCancelled: return "m_vpn_control-center_connect_cancelled"
1798+
case .vpnControlCenterConnectFailure: return "m_vpn_control-center_connect_failure"
1799+
1800+
case .vpnControlCenterDisconnectAttempt: return "m_vpn_control-center_disconnect_attempt"
1801+
case .vpnControlCenterDisconnectSuccess: return "m_vpn_control-center_disconnect_success"
1802+
case .vpnControlCenterDisconnectCancelled: return "m_vpn_control-center_disconnect_cancelled"
1803+
case .vpnControlCenterDisconnectFailure: return "m_vpn_control-center_disconnect_failure"
1804+
1805+
case .vpnShortcutConnectAttempt: return "m_vpn_shortcut_connect_attempt"
1806+
case .vpnShortcutConnectSuccess: return "m_vpn_shortcut_connect_success"
1807+
case .vpnShortcutConnectCancelled: return "m_vpn_shortcut_connect_cancelled"
1808+
case .vpnShortcutConnectFailure: return "m_vpn_shortcut_connect_failure"
1809+
1810+
case .vpnShortcutDisconnectAttempt: return "m_vpn_shortcut_disconnect_attempt"
1811+
case .vpnShortcutDisconnectSuccess: return "m_vpn_shortcut_disconnect_success"
1812+
case .vpnShortcutDisconnectCancelled: return "m_vpn_shortuct_disconnect_cancelled"
1813+
case .vpnShortcutDisconnectFailure: return "m_vpn_shortcut_disconnect_failure"
17661814

17671815
// MARK: Secure Vault
17681816
case .secureVaultL1KeyMigration: return "m_secure-vault_keystore_event_l1-key-migration"

DuckDuckGo.xcodeproj/project.pbxproj

Lines changed: 132 additions & 26 deletions
Large diffs are not rendered by default.

DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DuckDuckGo/DuckDuckGo.entitlements

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<array>
1111
<string>packet-tunnel-provider</string>
1212
</array>
13+
<key>com.apple.developer.siri</key>
14+
<true/>
1315
<key>com.apple.developer.web-browser</key>
1416
<true/>
1517
<key>com.apple.security.application-groups</key>

DuckDuckGo/DuckDuckGoAlpha.entitlements

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<array>
99
<string>packet-tunnel-provider</string>
1010
</array>
11+
<key>com.apple.developer.siri</key>
12+
<true/>
1113
<key>com.apple.developer.web-browser</key>
1214
<true/>
1315
<key>com.apple.security.application-groups</key>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Frame 624697 1.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}

DuckDuckGo/HomeMessage.xcassets/WidgetEducation/WidgetEducationHomeScreen.imageset/Contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"images" : [
33
{
4-
"filename" : "instructions@2x.png",
4+
"filename" : "Frame 624697.pdf",
55
"idiom" : "universal"
66
}
77
],

0 commit comments

Comments
 (0)