diff --git a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift index 3a867a0494..333d16cb3c 100644 --- a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift +++ b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift @@ -22,6 +22,8 @@ import Configuration struct AppConfigurationURLProvider: ConfigurationURLProviding { func url(for configuration: Configuration) -> URL { + // URLs for privacyConfiguration and trackerDataSet shall match the ones in update_embedded.sh. + // Danger checks that the URLs match on every PR. If the code changes, the regex that Danger uses may need an update. switch configuration { case .bloomFilterBinary: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom.bin")! case .bloomFilterSpec: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json")! diff --git a/scripts/update_embedded.sh b/scripts/update_embedded.sh index f76c3671c1..3a73b39d0b 100755 --- a/scripts/update_embedded.sh +++ b/scripts/update_embedded.sh @@ -2,6 +2,8 @@ set -eo pipefail +# The following URLs shall match the ones in AppConfigurationURLprovider.swift. +# Danger checks that the URLs match on every PR. If the code changes, the regex that Danger uses may need an update. TDS_URL="https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json" CONFIG_URL="https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json"