Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to update embedded data #599

Merged
merged 6 commits into from
Jun 6, 2022

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented May 27, 2022

Task/Issue URL: https://app.asana.com/0/1177771139624306/1202355163273999/f

Description:
Based on Bartek's script used in iOS.

Steps to test this PR:
The script:

  1. Run the script:
    1. $ ./scripts/update_embedded.sh
    2. It's fine that the script does not trigger any changes, because the files were recently updated.
  2. In the source code edit the following values:
    1. AppTrackerDataSetProvider.constants.embeddedDataETag
    2. AppPrivacyConfigurationDataProvider.constants.embeddedDataETag
    3. Keep the \" in place though as they're required for the script to recognize the ETag.
  3. Run the script and verify that it updates ETag values.

The app:

  1. Edit /etc/hosts file to disable downloading TDS and Privacy Config from the CDN:
    1. add staticcdn.duckduckgo.com localhost line at the bottom
  2. Clean debug app:
    1. $ ./clean-app.sh debug
  3. Launch the app and verify that trackers are blocked.
  4. Revert your changes to /etc/hosts :)

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@ayoy ayoy added the draft label May 27, 2022
@ayoy ayoy force-pushed the dominik/embedded-data-update-script branch from f505b9b to 72941ca Compare May 30, 2022 10:58
@ayoy ayoy removed the draft label May 30, 2022
@tomasstrba tomasstrba self-assigned this May 30, 2022
@tomasstrba tomasstrba self-requested a review May 30, 2022 11:24
@tomasstrba
Copy link
Contributor

My apology for the slow review. I will prioritize this tomorrow and try to merge if everything looks good.

1 similar comment
@tomasstrba
Copy link
Contributor

My apology for the slow review. I will prioritize this tomorrow and try to merge if everything looks good.

Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@tomasstrba
Copy link
Contributor

Merging this since Dominik is out

@tomasstrba tomasstrba merged commit 1ad6da4 into develop Jun 6, 2022
@tomasstrba tomasstrba deleted the dominik/embedded-data-update-script branch June 6, 2022 10:22
samsymons added a commit that referenced this pull request Jun 12, 2022
# By Dominik Kapusta (9) and others
# Via Chris Brind (2) and others
* develop: (23 commits)
  Improve build phase times during compilation (#607)
  bump version
  First reponder fixed when a child tab is created (#612)
  always read/write directly from the backing store (#613)
  Bump privacy dashboard to latest version (#614)
  Bump privacy dashboard to latest version (#608)
  Update BSK to include ios autofill changes (#606)
  Fire autofill pixel from overlay (#611)
  Autoconsent group without folder refactored back to group (#610)
  Favicon image not highlighted when pressed (#609)
  Update symbolicate.js to handle ips files without asiBacktraces (#602)
  Add a script to update embedded data (#599)
  Version 0.26.1
  Add support for importing bookmarks from HTML file (#603)
  Update TRK (#592)
  Shane/inline icon flag (#604)
  Use Xcode 13.4 in GitHub Actions (#600)
  Support securevault delegate settings for auto-save (#598)
  Bump version number to 0.26.0
  Do not call makeKey on windows created in windows deallocation test (#601)
  ...

# Conflicts:
#	DuckDuckGo/Common/Utilities/UserDefaultsWrapper.swift
#	DuckDuckGo/Data Import/View/DataImport.storyboard
#	DuckDuckGo/Menus/MainMenu.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants