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

Stop checking flutter version for connected app in flutter web apps #3066

Merged
merged 2 commits into from
May 27, 2021

Conversation

kenzieschmoll
Copy link
Member

This also makes the version checking code more safe by ensuring that the flutter version service is available before attempting to make a call to it.

@kenzieschmoll kenzieschmoll requested a review from jacob314 May 27, 2021 17:34
// No need to check the flutter version for Flutter web apps, as the
// performance tools that consume [flutterVersionNow] are not available for
// flutter web apps.
if (isFlutterNativeAppNow) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you file a bug tracking adding support for flutterVersion for Flutter web apps? At some point it would be useful if that worked for flutter web so devtools extension authors don't have to worry about this..

Copy link
Member Author

Choose a reason for hiding this comment

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

oddly enough I just checked with the gallery flutter web app and the flutterVersion service does register as expected. I don't see anything here that would prevent this from being registered on the web https://github.com/flutter/flutter/blob/5c09eecd0d5ea428d163de12d12d6bd9a7a8b16c/packages/flutter_tools/lib/src/vmservice.dart#L221.

Copy link
Contributor

Choose a reason for hiding this comment

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

@grouma is this only broken in g3?

Copy link
Member

Choose a reason for hiding this comment

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

Likely for now as Flutter Tools and Webdev have tighter restrictions on DevTools.

@kenzieschmoll kenzieschmoll requested a review from jacob314 May 27, 2021 19:48
Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

@kenzieschmoll kenzieschmoll merged commit 9a92b84 into flutter:master May 27, 2021
@kenzieschmoll kenzieschmoll deleted the connected-app branch May 27, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants