Skip to content

Commit

Permalink
Updates BSK version and fixes a tester issue in iOS (#2003)
Browse files Browse the repository at this point in the history
Network Protection: Connection Tester

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

BSK PR: duckduckgo/BrowserServicesKit#489
macOS PR: duckduckgo/macos-browser#1581

## Description

Fixes startup options reset, and improves the options loading logic so we can easily unit test it.
  • Loading branch information
diegoreymendez authored Sep 12, 2023
1 parent b236146 commit 15fefd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8878,7 +8878,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 77.2.0;
version = 77.3.1;
};
};
C14882EB27F211A000D59F0C /* XCRemoteSwiftPackageReference "SwiftSoup" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/DuckDuckGo/BrowserServicesKit",
"state": {
"branch": null,
"revision": "42b073f8a26165e8b328a5f72501abfecdd4c666",
"version": "77.2.0"
"revision": "6246a822793012c22e5c032db92662e88b268c14",
"version": "77.3.1"
}
},
{
Expand Down Expand Up @@ -156,7 +156,7 @@
},
{
"package": "TrackerRadarKit",
"repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit",
"repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit.git",
"state": {
"branch": null,
"revision": "4684440d03304e7638a2c8086895367e90987463",
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/NetworkProtectionTunnelController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ final class NetworkProtectionTunnelController: TunnelController {

// Temporary investigation to see if connection tester is causing energy use issues
// To be removed with https://app.asana.com/0/0/1205418028628990/f
options[NetworkProtectionOptionKey.connectionTesterEnabled] = "false" as NSString
options[NetworkProtectionOptionKey.connectionTesterEnabled] = NSNumber(value: false)

if let optionKey = Self.enabledSimulationOption?.optionKey {
options[optionKey] = NetworkProtectionOptionValue.true
options[optionKey] = NSNumber(value: true)
Self.enabledSimulationOption = nil
}

Expand Down

0 comments on commit 15fefd2

Please sign in to comment.