diff --git a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift index 333d16cb3c..5ca622f3ec 100644 --- a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift +++ b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift @@ -28,7 +28,7 @@ struct AppConfigurationURLProvider: ConfigurationURLProviding { 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")! case .bloomFilterExcludedDomains: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json")! - case .privacyConfiguration: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json")! + case .privacyConfiguration: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/config/v4/macos-config.json")! case .surrogates: return URL(string: "https://staticcdn.duckduckgo.com/surrogates.txt")! case .trackerDataSet: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json")! // In archived repo, to be refactored shortly (https://staticcdn.duckduckgo.com/useragents/social_ctp_configuration.json) diff --git a/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift b/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift index 7d3ec2766a..4b300a8347 100644 --- a/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift +++ b/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift @@ -25,7 +25,7 @@ final class AppConfigurationURLProviderTests: XCTestCase { XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterBinary).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom.bin") XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterSpec).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterExcludedDomains).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json") - XCTAssertEqual(AppConfigurationURLProvider().url(for: .privacyConfiguration).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json") + XCTAssertEqual(AppConfigurationURLProvider().url(for: .privacyConfiguration).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/config/v4/macos-config.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .surrogates).absoluteString, "https://staticcdn.duckduckgo.com/surrogates.txt") XCTAssertEqual(AppConfigurationURLProvider().url(for: .trackerDataSet).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .FBConfig).absoluteString, "https://staticcdn.duckduckgo.com/useragents/") diff --git a/scripts/update_embedded.sh b/scripts/update_embedded.sh index 3a73b39d0b..c85d6b7ea3 100755 --- a/scripts/update_embedded.sh +++ b/scripts/update_embedded.sh @@ -5,7 +5,7 @@ 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" +CONFIG_URL="https://staticcdn.duckduckgo.com/trackerblocking/config/v4/macos-config.json" # If -c is passed, then check the URLs in the Configuration files are correct. if [ "$1" == "-c" ]; then