-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Observe logging from VM service on iOS 13 #43915
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test, working on it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this fail if device.majorSdkVersion == null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NNBD soon!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is a little over-engineered in the dance between _linesController starting and setting connectedVMServices. I'll simplify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, does this verify that an assignment happened? I didn't know you could do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to. From the mockito docs:
// You can verify setters.
cat.lives = 9;
verify(cat.lives=9);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've skimmed that README many times and yet seem to have missed that. Cool.
|
This doesn't fix the driver tests, that's a DIFFERENT VM service interface. |
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
IOSDeviceLogReader observes Stdout stream from VMService if version is iOS 13+ to print dart and engine logs. Keep using syslog on older versions since that will additionally provide logs if the app crashes.
Similar to resident_web_runner behavior:
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart#L295
Related Issues
Fixes #41133.
Tests
New resident_runner_test and devices_test.
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change