Skip to content

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Dec 1, 2022

Same as #19513, but without one #available removal that I'll open a dedicated PR for and additional @available(iOS 13, *) removals that I hadn't considered earlier.


The checks always return true since the deployment version is 13.0, and will soon become 14.0.

Only two have been left:

You might also find a leftover #available(13.4, *) check. That one needs to stay, though, because the deployment target is 13.0, allowing for the (admittedly rare) code path in which the check fails. The app targets iOS 14.0+ 🤦‍♂️

See also

Regression Notes

  1. Potential unintended areas of impact – N.A.
  2. What I did to test those areas of impact (or what existing automated tests I relied on) – N.A.
  3. What automated tests I added (or what prevented me from doing so) – N.A.

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes. N.A.
  • I have considered adding accessibility improvements for my changes. N.A.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary. N.A.

mokagio and others added 5 commits December 1, 2022 12:28
They always return `true` since the deployment version is 13.0, and will
soon become 14.0.

Only two have been left:

- In `WidgetStyles.swift`, because it will change again when bumping the
  deployment target to 14+.
- In `MainShareViewController.swift` because we might want to take the
  occasion to restructure that logic. See conversation at
  #19513 (comment)
Maybe due to a recent Swift improvement, we are now able to declare
`static var` and `static let` within an `extension`. There's no need to
compute the value at runtime anymore.
The deployment version is 13.0 making these methods always available.
It was already unused, but I noticed that in the previous commit,
4bb1cdf, which made it clear it was an
iOS-12-specific method and therefore no longer relevant for us.
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 1, 2022

You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19699-9f440b1 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 1, 2022

You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19699-9f440b1 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@mokagio mokagio self-assigned this Dec 1, 2022
@mokagio mokagio added the Tooling Build, Release, and Validation Tools label Dec 1, 2022
@mokagio mokagio added this to the 21.4 milestone Dec 1, 2022
@mokagio mokagio marked this pull request as ready for review December 1, 2022 15:28
@mokagio mokagio enabled auto-merge December 1, 2022 15:29
The app targets iOS 14.0+ and the check would always return `true`.
@mokagio mokagio merged commit ed74281 into trunk Dec 5, 2022
@mokagio mokagio deleted the mokagio/remove-ios-13-available-straightforward branch December 5, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tooling Build, Release, and Validation Tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants