From 97551e47c23b533eed69fa5a2470860dae1ef683 Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Mon, 23 Oct 2023 13:18:44 +0100 Subject: [PATCH] bump BSK (changed dashboard API) (#2111) Co-authored-by: Shane Osbourne --- DuckDuckGo.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/swiftpm/Package.resolved | 10 +++++----- DuckDuckGo/PrivacyDashboardViewController.swift | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/DuckDuckGo.xcodeproj/project.pbxproj b/DuckDuckGo.xcodeproj/project.pbxproj index 3a105daa42..fcd7e3b819 100644 --- a/DuckDuckGo.xcodeproj/project.pbxproj +++ b/DuckDuckGo.xcodeproj/project.pbxproj @@ -8978,7 +8978,7 @@ repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit"; requirement = { kind = exactVersion; - version = 81.5.0; + version = 82.0.0; }; }; C14882EB27F211A000D59F0C /* XCRemoteSwiftPackageReference "SwiftSoup" */ = { diff --git a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 0d22d732cc..571c464689 100644 --- a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/DuckDuckGo/BrowserServicesKit", "state": { "branch": null, - "revision": "c427dc63421c4b394f54c245de8e5665bcd6966a", - "version": "81.5.0" + "revision": "dd595d952e0076a7a01d086ed2424838dcd985af", + "version": "82.0.0" } }, { @@ -105,8 +105,8 @@ "repositoryURL": "https://github.com/duckduckgo/privacy-dashboard", "state": { "branch": null, - "revision": "51e2b46f413bf3ef18afefad631ca70f2c25ef70", - "version": "1.4.0" + "revision": "b4ac92a444e79d5651930482623b9f6dc9265667", + "version": "2.0.0" } }, { @@ -156,7 +156,7 @@ }, { "package": "TrackerRadarKit", - "repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit", + "repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit.git", "state": { "branch": null, "revision": "4684440d03304e7638a2c8086895367e90987463", diff --git a/DuckDuckGo/PrivacyDashboardViewController.swift b/DuckDuckGo/PrivacyDashboardViewController.swift index 52f548313b..319e31b91e 100644 --- a/DuckDuckGo/PrivacyDashboardViewController.swift +++ b/DuckDuckGo/PrivacyDashboardViewController.swift @@ -121,9 +121,10 @@ extension PrivacyDashboardViewController: Themable { } extension PrivacyDashboardViewController: PrivacyDashboardControllerDelegate { - - func privacyDashboardController(_ privacyDashboardController: PrivacyDashboardController, didChangeProtectionSwitch isEnabled: Bool) { - privacyDashboardProtectionSwitchChangeHandler(enabled: isEnabled) + + func privacyDashboardController(_ privacyDashboardController: PrivacyDashboardController, + didChangeProtectionSwitch protectionState: ProtectionState) { + privacyDashboardProtectionSwitchChangeHandler(enabled: protectionState.isProtected) } func privacyDashboardController(_ privacyDashboardController: PrivacyDashboardController, didRequestOpenUrlInNewTab url: URL) {