Skip to content

Commit

Permalink
Add note about Danger matching rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Mattei committed Oct 12, 2023
1 parent e8e7fc7 commit 18e1dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/AppURLs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public extension URL {
static let aboutLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/about"))!

static let surrogates = URL(string: "\(staticBase)/surrogates.txt")!

// The following URLs shall match the ones in AppURLs.swift.
// Danger checks that the URLs match on every PR. If the code changes, the regex that Danger uses may need an update.
static let privacyConfig = URL(string: "\(staticBase)/trackerblocking/config/v3/ios-config.json")!
static let trackerDataSet = URL(string: "\(staticBase)/trackerblocking/v5/current/ios-tds.json")!
static let bloomFilter = URL(string: "\(staticBase)/https/https-mobile-v2-bloom.bin")!
Expand Down
1 change: 1 addition & 0 deletions scripts/update_embedded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ performUpdate() {
rm -f "$TEMP_ETAG_FILENAME"
}

# The following URLs shall match the ones in AppURLs.swift. Danger checks that the URLs match on every PR. If the code changes, the regex that Danger uses may need an update.
performUpdate 'https://staticcdn.duckduckgo.com/trackerblocking/v5/current/ios-tds.json' "${base_dir}/Core/AppTrackerDataSetProvider.swift" "${base_dir}/Core/trackerData.json"
performUpdate 'https://staticcdn.duckduckgo.com/trackerblocking/config/v2/ios-config.json' "${base_dir}/Core/AppPrivacyConfigurationDataProvider.swift" "${base_dir}/Core/ios-config.json"

0 comments on commit 18e1dcb

Please sign in to comment.