Skip to content

Commit 3d2a6a1

Browse files
committed
Update embedded DBP broker JSONs
1 parent 4461d81 commit 3d2a6a1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/fastlane/plugin/ddg_apple_automation/helper/embedded_files_helper.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class EmbeddedFilesHelper
2222
'DuckDuckGo/ContentBlocker/AppPrivacyConfigurationDataProvider.swift',
2323
'DuckDuckGo/ContentBlocker/AppTrackerDataSetProvider.swift',
2424
'DuckDuckGo/ContentBlocker/trackerData.json',
25-
'DuckDuckGo/ContentBlocker/macos-config.json'
25+
'DuckDuckGo/ContentBlocker/macos-config.json',
26+
'SharedPackages/DataBrokerProtectionCore/Sources/DataBrokerProtectionCore/Resources/JSON/*.json'
2627
])
2728
}.freeze
2829

@@ -36,8 +37,8 @@ def self.update_embedded_files(platform, other_action)
3637
modified_files = modified_files.map { |str| str.split(':')[1].strip.delete_prefix('../') }
3738

3839
modified_files.each do |modified_file|
39-
UI.abort_with_message!("Unexpected change to #{modified_file}.") unless UPGRADABLE_EMBEDDED_FILES[platform].any? do |s|
40-
s.include?(modified_file)
40+
UI.abort_with_message!("Unexpected change to #{modified_file}.") unless UPGRADABLE_EMBEDDED_FILES[platform].any? do |pattern|
41+
File.fnmatch?(pattern, modified_file)
4142
end
4243
end
4344

0 commit comments

Comments
 (0)