Skip to content

Commit

Permalink
Update BSK Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Jan 29, 2025
1 parent 0c36e22 commit c8a91b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo-macOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15374,8 +15374,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 232.1.0;
branch = "alessandro/malicious-site-protection-update-changes";
kind = branch;
};
};
9FF521422BAA8FF300B9819B /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "e00b4ac4002bb5906e4ed63457aca4f920979c80",
"version" : "232.1.0"
"branch" : "alessandro/malicious-site-protection-update-changes",
"revision" : "95b7078749959e06438494c40206ffc8561fb456"
}
},
{
"identity" : "content-scope-scripts",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/content-scope-scripts",
"state" : {
"revision" : "181696656f3627c1b3ca8cda06d54971e03436ef",
"version" : "7.10.0"
"revision" : "5a463e35ce86fc11394fe62392d32960de22f7d7",
"version" : "7.11.0"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ public class MaliciousSiteProtectionManager: MaliciousSiteDetecting {
.visitSite,
.iframeLoaded,
.settingToggled,
.matchesApiTimeout:
.matchesApiTimeout,
.failedToDownloadInitialDataSets:
PixelKit.fire(event)
case .matchesApiFailure(let error):
Logger.maliciousSiteProtection.error("Error fetching matches from API: \(error)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ class MockMaliciousSiteFileStore: MaliciousSiteProtection.FileStoring {
var didWriteToDisk: Bool = false
var didReadFromDisk: Bool = false

func write(data: Data, to filename: String) -> Bool {
func write(data: Data, to filename: String) throws {
didWriteToDisk = true
storage[filename] = data
return true
}

func read(from filename: String) -> Data? {
Expand Down

0 comments on commit c8a91b7

Please sign in to comment.