Skip to content

Adding vmservice to get iOS app settings#123156

Merged
auto-submit[bot] merged 1 commit intoflutter:masterfrom
chunhtai:issues/120405-settings
May 4, 2023
Merged

Adding vmservice to get iOS app settings#123156
auto-submit[bot] merged 1 commit intoflutter:masterfrom
chunhtai:issues/120405-settings

Conversation

@chunhtai
Copy link
Contributor

fixes #120405

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.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Mar 21, 2023
@chunhtai chunhtai force-pushed the issues/120405-settings branch from addad49 to 34e4f91 Compare March 27, 2023 22:49
@chunhtai chunhtai force-pushed the issues/120405-settings branch 3 times, most recently from 31de2fe to a9df81c Compare April 19, 2023 21:16
@chunhtai chunhtai marked this pull request as ready for review April 19, 2023 21:23
@chunhtai chunhtai requested a review from jmagman April 19, 2023 21:23
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.

Is this a draft or ready for review?

Just in case you didn't know, you can mark PRs as drafts in GitHub itself instead of putting a plug in the title:
Screenshot 2023-04-19 at 3 22 31 PM

Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test where this is nested in a directory, like Runner/DebugProfile.entitlements?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, added a new test for nested path

Comment on lines 343 to 346
Copy link
Member

Choose a reason for hiding this comment

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

I forget how this tool is designed, how will you know what params to pass into this service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The caller will first need to call flutterGetIOSBuildOptions vm services to get all of the possible build options, and then they can pick a combination and call this service

Copy link
Contributor

Choose a reason for hiding this comment

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

Can a test be written for this in packages/flutter_tools/test/general.shard/vmservice_test.dart?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The flutterGetIOSBuildOptions and this pr are two complete different vm services, and we already have coverage over flutterGetIOSBuildOptions. If such test should exist, I think it should be written in the devtool when it will use these two services. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point, that makes sense. I was just thinking it could be good to have a test connecting the two so that if someone in the future tweaks one, the test will fail and make them aware that flutterGetIOSDeeplinkSettings relies on flutterGetIOSBuildOptions. But I get your point that technically it doesn't rely on it until it's implemented in the devtool so the testing may be better added then.

@chunhtai chunhtai changed the title [Draft] Adding vmservice to get iOS app settings Adding vmservice to get iOS app settings Apr 19, 2023
@chunhtai
Copy link
Contributor Author

This is ready for review, I forgot to update the title

@chunhtai chunhtai force-pushed the issues/120405-settings branch from 104e667 to 05311a4 Compare April 21, 2023 22:22
@jmagman jmagman requested a review from vashworth April 21, 2023 22:41
Copy link
Contributor

@vashworth vashworth 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

@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.

LGTM

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.

Sorry for the delay, LGTM

@chunhtai chunhtai force-pushed the issues/120405-settings branch from 05311a4 to 9039e89 Compare April 28, 2023 18:50
@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 28, 2023
@chunhtai chunhtai force-pushed the issues/120405-settings branch 2 times, most recently from 84b5437 to 9ff54a7 Compare May 4, 2023 16:18
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 4, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented May 4, 2023

auto label is removed for flutter/flutter, pr: 123156, due to - The status or check suite ci.yaml validation has failed. Please fix the issues identified (or deflake) before re-applying this label.

@chunhtai chunhtai force-pushed the issues/120405-settings branch from 9ff54a7 to 468d4a6 Compare May 4, 2023 16:21
@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label May 4, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 4, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented May 4, 2023

auto label is removed for flutter/flutter, pr: 123156, due to - The status or check suite Mac_arm64 tool_host_cross_arch_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label May 4, 2023
@auto-submit auto-submit bot merged commit b00f1c4 into flutter:master May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
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.

[Deeplink Automation] Implements flutter tool to retrieve app settings from iOS project

4 participants