Skip to content

Commit

Permalink
Add VPN App Exclusions remote feature-flag (#3734)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1203108348835387/1209150117333883/f

iOS PR: duckduckgo/iOS#3808
BSK PR: duckduckgo/BrowserServicesKit#1164

## Description

Adds the VPN App Exclusions remote feature-flag with support for
overriding locally.
  • Loading branch information
diegoreymendez authored Jan 15, 2025
1 parent 2838619 commit ca9cfb3
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15366,7 +15366,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 224.6.1;
version = 224.6.2;
};
};
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" : "58efae813cae03d71af87aab863af5c25a3a8a6e",
"version" : "224.6.1"
"revision" : "a2a5a32d111aadac6316db4cc629e5dd635939ba",
"version" : "224.6.2"
}
},
{
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: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../AppKitExtensions"),
.package(path: "../XPCHelper"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/FeatureFlags/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
targets: ["FeatureFlags"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public enum FeatureFlag: String, CaseIterable {

case credentialsImportPromotionForExistingUsers

/// https://app.asana.com/0/0/1209150117333883/f
case networkProtectionAppExclusions

/// https://app.asana.com/0/72649045549333/1208231259093710/f
case networkProtectionUserTips

Expand All @@ -59,6 +62,8 @@ extension FeatureFlag: FeatureFlagDescribing {
return true
case .autofillPartialFormSaves:
return true
case .networkProtectionAppExclusions:
return true
case .debugMenu,
.sslCertificatesBypass,
.appendAtbToSerpQueries,
Expand Down Expand Up @@ -90,6 +95,8 @@ extension FeatureFlag: FeatureFlagDescribing {
return .remoteReleasable(.feature(.contextualOnboarding))
case .credentialsImportPromotionForExistingUsers:
return .remoteReleasable(.subfeature(AutofillSubfeature.credentialsImportPromotionForExistingUsers))
case .networkProtectionAppExclusions:
return .remoteDevelopment(.subfeature(NetworkProtectionSubfeature.appExclusions))
case .networkProtectionUserTips:
return .remoteDevelopment(.subfeature(NetworkProtectionSubfeature.userTips))
case .networkProtectionEnforceRoutes:
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionMac/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let package = Package(
.library(name: "VPNAppLauncher", targets: ["VPNAppLauncher"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
.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/NewTabPage/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
targets: ["NewTabPage"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
.package(path: "../WebKitExtensions"),
.package(path: "../Utilities"),
],
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SubscriptionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
targets: ["SubscriptionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../FeatureFlags")
],
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/WebKitExtensions/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "224.6.2"),
.package(path: "../AppKitExtensions")
],
targets: [
Expand Down

0 comments on commit ca9cfb3

Please sign in to comment.