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

Release 7.142.0-1 #3485

Closed
wants to merge 14 commits into from
Closed

Release 7.142.0-1 #3485

wants to merge 14 commits into from

Conversation

ayoy
Copy link
Contributor

@ayoy ayoy commented Oct 25, 2024

Please make sure all GH checks passed before merging. It can take around 20 minutes.
Briefly review this PR to see if there are no issues or red flags and then merge it.

samsymons and others added 14 commits October 21, 2024 11:26
Task/Issue URL: https://app.asana.com/0/414235014887631/1208580381705388/f
Tech Design URL:
CC:

Description:

This PR removes MockDependencyProvider and the ability to create testing instances of AppDependencyProvider. Any test files that use it have been updated to take their dependencies directly.

The only tests affected by this change are subscription ones; DownloadManagerTests had a mock dependency provider property, but it didn't appear to be used in any way.
Task/Issue URL:
https://app.asana.com/0/414709148257752/1207138951730082/f
Tech Design URL:
CC:

**Description**:
Allow marketplace URLs to work.

Note that the URL must be from a 'user' request. So we can't cancel and
re-issue the URL otherwise it doesn't work. This also means that can't
handle the case where it doesn't work unless we want to check the user
has an EU apple account, which we don't.

**Steps to test this PR**:
1. With an EU Apple ID, visit altstore.io and install their marketplace.
Should cause iOS system prompts and then install successfully.
2. With a non-EU Apple ID, visit altstore.io and try to install their
marketplace. Nothing will happen (unfortunately we are unable to catch
this case).
Task/Issue URL:
https://app.asana.com/0/1204167627774280/1208539744359975/f


**Description**:
No changes in code, just updating BSK to have the latest version
Task/Issue URL:
https://app.asana.com/0/72649045549333/1208547223289955/f
Tech Design URL:
CC:

**Description**:

Uses `NewTabPageController` as a home controller, but removes new tab
page customization capabilities based on `newTabPageSections` feature
flag state. Existing features of Home Screen should remain unchanged.

Summary of changes done in this PR:
* `SimpleNewTabPageView` now serving as a view for new tab page without
customization features. Created based on the fully featured
`NewTabPageView`.
* Favorites placeholders and add button are not visible when
customization flag is disabled.
* Report action is not added to the browsing menu when link is missing.
This prevents showing option which performs no action in case menu is
shown on NTP. (cc @afterxleep)
* Favorites data source adapter is listening for display mode changes
and updates favorites accordingly.
* Current (old) Dax Onboarding is integrated with the New Tab Page. (cc
@alessandroboron)

**Steps to test this PR**:

#### Dax onboarding
1. Install fresh app
2. Go through onboarding, make sure Dax dialogs are shown properly on
empty tab.

#### Basic functionality
1. Make sure NTP flag is disabled in debug menu.
3. Without favorites, Dax logo should be visible.
4. Add some favorites.
5. It should be possible to long press to edit/remove and drag and drop
to reorder.

#### Toolbar menu items
1. Check toolbar displays bookmarks icon when NTP sections flag
disabled.
2. Enable NTP sections flag in debug menu.
3. Reopen new tab page
4. Ensure browsing menu with shortcuts is available.

#### Sync
1. Enable sync on two devices.
2. Verify updates for favorites are visible.

**Definition of Done (Internal Only)**:

* [x] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

**Copy Testing**:

* [x] Use of correct apostrophes in new copy, ie `’` rather than `'`

**Orientation Testing**:

* [x] Portrait
* [x] Landscape

**Device Testing**:

* [ ] iPhone SE (1st Gen)
* [x] iPhone 8
* [ ] iPhone X
* [x] iPhone 14 Pro
* [ ] iPad

**OS Testing**:

* [x] iOS 15
* [ ] iOS 16
* [x] iOS 17

**Theme Testing**:

* [x] Light theme
* [x] Dark theme

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
Task/Issue URL: https://app.asana.com/0/72649045549333/1208262951113965/f

Description:
This change updates BSK to the version that will be used on macOS. It doesn't affect iOS at all.
Task/Issue URL:
https://app.asana.com/0/414709148257752/1208607157395789/f
Tech Design URL:
CC:

**Description**:

Updates UserDefaults API usage declaration `1C8F.1`.

**Steps to test this PR**:
1. Verify tests pass.

**Definition of Done (Internal Only)**:

* [ ] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
…gering the download (#3472)

Task/Issue URL:
https://app.asana.com/0/414709148257752/1207504349745342/f

**Description**:
When wallet passes are served as BLOB type downloads they just trigger
the download prompt instead of directly open their preview allowing
adding them to Wallet app.
Task/Issue URL:
https://app.asana.com/0/414709148257752/1208602903372806/f
Tech Design URL:
CC:

**Description**:

Addresses an issue when OmniBar was not sized properly on phones after
rotating to landscape and back to portrait.

Seems like root cause was some "optimization" in iOS 18 layout system
which changed when `updateConstraints` is being called. Solution was to
use `setNeedsUpdateConstraints()` while preparing cell for both "real"
and "fake" OmniBar.

Additionally call to `super.updateConstraints()` was moved to the end of
the override as highlighted in
[documentation](https://developer.apple.com/documentation/uikit/uiview/1622512-updateconstraints#discussion).

**Steps to test this PR**:
1. Rotate to landscape and back to portrait with single and multiple
tabs for both bar position settings (top and bottom).
2. Repeat for iPad

**Definition of Done (Internal Only)**:

* [ ] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

**Orientation Testing**:

* [x] Portrait
* [x] Landscape

**Device Testing**:

* [x] iPhone 8
* [x] iPhone 16
* [x] iPad

**OS Testing**:

* [x] iOS 15
* [x] iOS 17
* [x] iOS 18

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
Task/Issue URL:
https://app.asana.com/0/1148564399326804/1207106552424205/f
Tech Design URL:
CC:

**Description**:
Email parsing improved on macOS. This PR doesn't affect iOS
…nload)` (#3478)

Task/Issue URL:
https://app.asana.com/0/414709148257752/1208621179920770/f

**Description:**
When navigation should trigger download and is of data scheme handle it
via decisionHandler(.download)

**Steps to test this PR:**
- test downloads on https://napuzba.com/data-url/ (ensure proper file
name and extension)
- test website from
https://app.asana.com/0/1206777341262243/1208605967462508/f following
repro steps in
https://app.asana.com/0/0/1208605967462508/1208619416618129/f

**Definition of Done (Internal Only)**:

* [ ] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

**Copy Testing**:

* [ ] Use of correct apostrophes in new copy, ie `’` rather than `'`

**Orientation Testing**:

* [ ] Portrait
* [ ] Landscape

**Device Testing**:

* [ ] iPhone SE (1st Gen)
* [ ] iPhone 8
* [ ] iPhone X
* [ ] iPhone 14 Pro
* [ ] iPad

**OS Testing**:

* [ ] iOS 15
* [ ] iOS 16
* [ ] iOS 17

**Theme Testing**:

* [ ] Light theme
* [ ] Dark theme

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
Please make sure all GH checks passed before merging. It can take around
20 minutes.
Briefly review this PR to see if there are no issues or red flags and
then merge it.
# By Michal Smaga (1) and Sam Symons (1)
# Via GitHub
* hotfix/7.141.1:
  Release 7.141.1-0 (#3479)
  Handle 'data' scheme downloads through WebKit's `decisionHandler(.download)` (#3478)

# Conflicts:
#	Configuration/Version.xcconfig
#	DuckDuckGo/Settings.bundle/Root.plist
@ayoy ayoy self-assigned this Oct 25, 2024
Copy link

Fails
🚫 Please, don't forget to add a link to the internal task
Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 8bb0201

@ayoy ayoy closed this Oct 25, 2024
@ayoy ayoy deleted the release/7.142.0-build-1 branch October 25, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants