Skip to content

Commit

Permalink
Add Freemium PIR Feature Flag (#3129)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1206488453854252/1208052452067291/f
Tech Design URL:
CC:

**Description**: Adds PIR Freemium Feature Flag (and temporarily points
at related BSK commit)
  • Loading branch information
aataraxiaa authored Aug 22, 2024
1 parent 06c7d73 commit c164a2e
Show file tree
Hide file tree
Showing 6 changed files with 11 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 @@ -13451,7 +13451,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 185.0.0;
version = 185.0.1;
};
};
9FF521422BAA8FF300B9819B /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "2efee14db4d30ac73916794de4d262b745a5f413",
"version" : "185.0.0"
"revision" : "1354d1aec247fd569c69744bb2722f24e16f0bfb",
"version" : "185.0.1"
}
},
{
Expand Down
5 changes: 5 additions & 0 deletions DuckDuckGo/FeatureFlagging/Model/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public enum FeatureFlag: String {

// https://app.asana.com/0/72649045549333/1207597760316574/f
case deduplicateLoginsOnImport

// https://app.asana.com/0/1206488453854252/1207136666798700/f
case freemiumPIR
}

extension FeatureFlag: FeatureFlagSourceProviding {
Expand All @@ -42,6 +45,8 @@ extension FeatureFlag: FeatureFlagSourceProviding {
return .remoteReleasable(.subfeature(sslCertificatesSubfeature.allowBypass))
case .deduplicateLoginsOnImport:
return .remoteReleasable(.subfeature(AutofillSubfeature.deduplicateLoginsOnImport))
case .freemiumPIR:
return .remoteDevelopment(.subfeature(DBPSubfeature.freemium))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/DataBrokerProtection/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
targets: ["DataBrokerProtection"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.1"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../XPCHelper"),
],
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionMac/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
.library(name: "VPNAppLauncher", targets: ["VPNAppLauncher"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.1"),
.package(url: "https://github.com/airbnb/lottie-spm", exact: "4.4.3"),
.package(path: "../AppLauncher"),
.package(path: "../UDSHelper"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SubscriptionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
targets: ["SubscriptionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "185.0.1"),
.package(path: "../SwiftUIExtensions")
],
targets: [
Expand Down

0 comments on commit c164a2e

Please sign in to comment.