Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add controller VPN uninstall pixels #822

Merged
merged 5 commits into from
May 16, 2024

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented May 15, 2024

Task/Issue URL: https://app.asana.com/0/1206580121312550/1207324076451291/f

iOS PR: duckduckgo/iOS#2857
macOS PR: duckduckgo/macos-browser#2781

What kind of version bump will this require?: Minor

Description

Integrating the latest macOS changes in BSK. Nothing should change for iOS except for a crash being fixed.

Testing

Ensure the CI is green and make sure the VPN starts and stops normally.


Internal references:

Software Engineering Expectations
Technical Design Template

@diegoreymendez diegoreymendez self-assigned this May 15, 2024
@@ -18,15 +18,16 @@

import Foundation

public enum DebugCommand: Codable {
public enum VPNCommand: Codable {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename for clarity since this is more than debug commands now.

import Foundation
import NetworkExtension

public final class VPNConfigurationManager {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placing this reponsibility on the uninstaller instead.

@@ -1030,6 +1030,9 @@ open class PacketTunnelProvider: NEPacketTunnelProvider {
case .removeVPNConfiguration:
// Since the VPN configuration is being removed we may as well reset all state
handleResetAllState(completionHandler: completionHandler)
case .uninstallVPN:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New command to avoid having to make two IPC calls from the client app to uninstall.

@diegoreymendez diegoreymendez requested a review from samsymons May 15, 2024 15:40
@diegoreymendez diegoreymendez marked this pull request as ready for review May 15, 2024 15:40
@diegoreymendez diegoreymendez merged commit b901a47 into main May 16, 2024
7 checks passed
@diegoreymendez diegoreymendez deleted the diego/add-uninstall-pixels-for-menu-app branch May 16, 2024 09:43
diegoreymendez added a commit to duckduckgo/macos-browser that referenced this pull request May 16, 2024
diegoreymendez added a commit to duckduckgo/iOS that referenced this pull request May 16, 2024
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207324076451291/f

macOS PR: duckduckgo/macos-browser#2781
BSK PR: duckduckgo/BrowserServicesKit#822

## Description

Integrating the latest macOS changes in BSK.  Nothing should change for iOS except for a crash being fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants