Skip to content

Commit

Permalink
Update autofill to 16.1.0 (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxmobile authored Jan 8, 2025
1 parent 99bea80 commit 14384f0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/duckduckgo-autofill.git",
"state" : {
"revision" : "88982a3802ac504e2f1a118a73bfdf2d8f4a7735",
"version" : "16.0.0"
"revision" : "47c26dc32b94cdbcef3e6157497147917678c25c",
"version" : "16.1.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let package = Package(
.library(name: "PrivacyStats", targets: ["PrivacyStats"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/duckduckgo-autofill.git", exact: "16.0.0"),
.package(url: "https://github.com/duckduckgo/duckduckgo-autofill.git", exact: "16.1.0"),
.package(url: "https://github.com/duckduckgo/GRDB.swift.git", exact: "2.4.2"),
.package(url: "https://github.com/duckduckgo/TrackerRadarKit", exact: "3.0.0"),
.package(url: "https://github.com/duckduckgo/sync_crypto", exact: "0.3.0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public struct ContentScopeFeatureToggles: Encodable {

public let unknownUsernameCategorization: Bool

public let partialFormSaves: Bool

// Explicitly defined memberwise init only so it can be public
public init(emailProtection: Bool,
emailProtectionIncontextSignup: Bool,
Expand All @@ -92,7 +94,8 @@ public struct ContentScopeFeatureToggles: Encodable {
passwordGeneration: Bool,
inlineIconCredentials: Bool,
thirdPartyCredentialsProvider: Bool,
unknownUsernameCategorization: Bool) {
unknownUsernameCategorization: Bool,
partialFormSaves: Bool) {

self.emailProtection = emailProtection
self.emailProtectionIncontextSignup = emailProtectionIncontextSignup
Expand All @@ -104,6 +107,7 @@ public struct ContentScopeFeatureToggles: Encodable {
self.inlineIconCredentials = inlineIconCredentials
self.thirdPartyCredentialsProvider = thirdPartyCredentialsProvider
self.unknownUsernameCategorization = unknownUsernameCategorization
self.partialFormSaves = partialFormSaves
}

enum CodingKeys: String, CodingKey {
Expand All @@ -121,6 +125,7 @@ public struct ContentScopeFeatureToggles: Encodable {
case inlineIconCredentials = "inlineIcon_credentials"
case thirdPartyCredentialsProvider = "third_party_credentials_provider"
case unknownUsernameCategorization = "unknown_username_categorization"
case partialFormSaves = "partial_form_saves"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ extension ContentScopeFeatureToggles {
passwordGeneration: true,
inlineIconCredentials: true,
thirdPartyCredentialsProvider: false,
unknownUsernameCategorization: true)
unknownUsernameCategorization: true,
partialFormSaves: true)
}
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ final class FingerprintingReferenceTests: XCTestCase {
passwordGeneration: false,
inlineIconCredentials: false,
thirdPartyCredentialsProvider: false,
unknownUsernameCategorization: false)
unknownUsernameCategorization: false,
partialFormSaves: false)

let contentScopeProperties = ContentScopeProperties(gpcEnabled: false,
sessionKey: UUID().uuidString,
Expand Down

0 comments on commit 14384f0

Please sign in to comment.