Skip to content

Conversation

@moffatman
Copy link
Contributor

Add a migration to add UIApplicationSupportsIndirectInputEvents: true in the iOS project Info.plist file. This flag was added to the template in #89944

Relevant to #23604

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 30, 2022
@moffatman moffatman force-pushed the gestures_plist_migration branch from fb0d7ab to cbe7923 Compare June 30, 2022 18:16
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

What do you think about instead renaming MinimumFrameDurationMigration to HostAppInfoPlistMigration or similar, and adding/removing all relevant keys there, instead of creating a new, almost-identical migrator?

@jmagman
Copy link
Member

jmagman commented Jul 6, 2022

We should also consider adding these keys to https://docs.flutter.dev/development/add-to-app/ios/project-setup so add-to-app hosts can adopt as needed.

@moffatman
Copy link
Contributor Author

If we combine the migrations, each additional plist key would multiply the number of test scenarios in ios_project_migration_test.dart, since they would all run each time.

@jmagman
Copy link
Member

jmagman commented Jul 8, 2022

If we combine the migrations, each additional plist key would multiply the number of test scenarios in ios_project_migration_test.dart, since they would all run each time.

I think that's okay. You could get rid of your new add UIApplicationSupportsIndirectInputEvents key to info.plist migration group and the two "skip" tests, move your info.plist is migrated to use UIApplicationSupportsIndirectInputEvents test to the existing group, and there add a new one that both keys get migrated if needed. We're going to keep needing to edit the keys in this plist, and a new library each time with the _infoPlist boilerplate seems unnecessary.

@moffatman moffatman force-pushed the gestures_plist_migration branch from 2bf82fb to e39fd18 Compare July 14, 2022 02:05
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM, adding @christopherfujino for second review.

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 14, 2022
@jmagman
Copy link
Member

jmagman commented Jul 14, 2022

LGTM, adding @christopherfujino for second review.

Actually never mind forgot we don't need an extra reviewer here.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

RSLGTM

@auto-submit auto-submit bot merged commit 902b012 into flutter:master Jul 14, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 15, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
erdemyerebasmaz added a commit to breez/c-breez that referenced this pull request Jan 25, 2023
Add UIApplicationSupportsIndirectInputEvents migration by @moffatman in flutter/flutter#106889
erdemyerebasmaz added a commit to breez/c-breez that referenced this pull request Jan 25, 2023
Add UIApplicationSupportsIndirectInputEvents migration by @moffatman in flutter/flutter#106889
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 iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants