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

Update iOS KeyCodeMap dictionary literal and migrate to ARC #51981

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Apr 9, 2024

Framework template updated in flutter/flutter#146481. See gen_keycodes README for details.

Fixes flutter/flutter#146480 -Wobjc-redundant-literal-use error.

Note -Wobjc-redundant-literal-use is already on for clang-tidy

objc-*,
but in this case it's only true triggered when the file is compiled with ARC. When I migrated this file to ARC as part of flutter/flutter#137801, it triggered the error.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@jmagman jmagman changed the title Update iOS KeyCodeMap dictionary literal Update iOS KeyCodeMap dictionary literal and migrate to ARC Apr 9, 2024
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

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

LGTM

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 11, 2024
@auto-submit auto-submit bot merged commit 76a270f into flutter:main Apr 11, 2024
28 checks passed
@jmagman jmagman deleted the keycode branch April 12, 2024 00:18
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 12, 2024
1. Change chromium default branch from master (404) to main.
2. When I migrated the template to ARC is triggered a `-Wobjc-redundant-literal-use` error, so fix that.  Engine PR is flutter/engine#51981
3. Update to `FLUTTER_SHELL_PLATFORM_EMBEDDER_TEST_UTILS_KEY_CODES_G_H_` to match flutter/engine#49006

This only updates the template and the script--I ran the script to validate it worked and built in the engine, but did not check in the actual generated key code changes (filed #146480 for that).
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 12, 2024
…146698)

flutter/engine@6b37b17...0e56e3d

2024-04-12 [email protected] Fix the Dart language version for Fuchsia's build of the args package (flutter/engine#52083)
2024-04-11 [email protected] Update iOS KeyCodeMap dictionary literal and migrate to ARC (flutter/engine#51981)
2024-04-11 [email protected] [Impeller] Only set the stencil ref for StC draws. (flutter/engine#52006)
2024-04-11 [email protected] Remove intermediate APKs during build process. (flutter/engine#52071)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
1. Change chromium default branch from master (404) to main.
2. When I migrated the template to ARC is triggered a `-Wobjc-redundant-literal-use` error, so fix that.  Engine PR is flutter/engine#51981
3. Update to `FLUTTER_SHELL_PLATFORM_EMBEDDER_TEST_UTILS_KEY_CODES_G_H_` to match flutter/engine#49006

This only updates the template and the script--I ran the script to validate it worked and built in the engine, but did not check in the actual generated key code changes (filed flutter#146480 for that).
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
…lutter#146698)

flutter/engine@6b37b17...0e56e3d

2024-04-12 [email protected] Fix the Dart language version for Fuchsia's build of the args package (flutter/engine#52083)
2024-04-11 [email protected] Update iOS KeyCodeMap dictionary literal and migrate to ARC (flutter/engine#51981)
2024-04-11 [email protected] [Impeller] Only set the stencil ref for StC draws. (flutter/engine#52006)
2024-04-11 [email protected] Remove intermediate APKs during build process. (flutter/engine#52071)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyCodeMap.g.mm "using 'initWithDictionary:' with a literal is redundant"
3 participants