-
Notifications
You must be signed in to change notification settings - Fork 29.5k
[flutter_tools] refactor drive launch into separate service, split by mobile+desktop and web #68451
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
11776ea
[flutter_tools] refactor drive service into separate class
jonahwilliams 718aa70
[flutter_tools] refactor drive service into separate class
jonahwilliams 1cfe926
fix tests
jonahwilliams 17b6504
more cleanup
jonahwilliams 56f5ab6
Update drive_service_test.dart
jonahwilliams ffa5e82
Update analyze_size_test.dart
jonahwilliams ca1c1db
fixes for web launch
889e9e2
fix web driver tests
865ed2c
Update drive.dart
jonahwilliams 67397ed
Add comment for log reader change
cfb052e
Update drive_service.dart
jonahwilliams 78c7868
Add test for dispose
4f7eddc
Merge branch 'master' of github.com:flutter/flutter into drive_service
41771f0
Update android_device.dart
jonahwilliams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -590,13 +590,17 @@ class AndroidDevice extends Device { | |
| } | ||
|
|
||
| final bool traceStartup = platformArgs['trace-startup'] as bool ?? false; | ||
| _logger.printTrace('$this startApp'); | ||
|
|
||
| ProtocolDiscovery observatoryDiscovery; | ||
|
|
||
| if (debuggingOptions.debuggingEnabled) { | ||
| observatoryDiscovery = ProtocolDiscovery.observatory( | ||
| await getLogReader(), | ||
| // Avoid using getLogReader, which returns a singleton instance, because the | ||
| // observatory discovery will dipose at the end. creating a new logger here allows | ||
| // logs to be surfaced normally during `flutter drive`. | ||
| await AdbLogReader.createLogReader( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a comment why not to use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| this, | ||
| _processManager, | ||
| ), | ||
| portForwarder: portForwarder, | ||
| hostPort: debuggingOptions.hostVmServicePort, | ||
| devicePort: debuggingOptions.deviceVmServicePort, | ||
|
|
@@ -669,8 +673,6 @@ class AndroidDevice extends Device { | |
| // Wait for the service protocol port here. This will complete once the | ||
| // device has printed "Observatory is listening on...". | ||
| _logger.printTrace('Waiting for observatory port to be available...'); | ||
|
|
||
| // TODO(danrubel): Waiting for observatory services can be made common across all devices. | ||
| try { | ||
| Uri observatoryUri; | ||
| if (debuggingOptions.buildInfo.isDebug || debuggingOptions.buildInfo.isProfile) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Aren't these null at this point?
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.
No, the only interfaces that can't be injected at this point are those that depend on Cache/Artifacts/Version since those are still constructed when the first FlutterCommand is executed