Skip to content

Commit

Permalink
Merge branch 'main' into brindy/easier-page-zoom
Browse files Browse the repository at this point in the history
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGoTests/MockFeatureFlagger.swift
  • Loading branch information
brindy committed Nov 14, 2024
2 parents d2f6ab4 + 3feecaf commit de126b3
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 60 deletions.
8 changes: 6 additions & 2 deletions Core/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ public enum FeatureFlag: String {
case networkProtectionEnforceRoutes
}

extension FeatureFlag: FeatureFlagSourceProviding {
extension FeatureFlag: FeatureFlagDescribing {
public var supportsLocalOverriding: Bool {
false
}

public var source: FeatureFlagSource {
switch self {
case .debugMenu:
Expand Down Expand Up @@ -120,6 +124,6 @@ extension FeatureFlag: FeatureFlagSourceProviding {

extension FeatureFlagger {
public func isFeatureOn(_ featureFlag: FeatureFlag) -> Bool {
return isFeatureOn(forProvider: featureFlag)
return isFeatureOn(for: featureFlag)
}
}
Loading

0 comments on commit de126b3

Please sign in to comment.