-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Support iOS wireless debugging #118104
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
Support iOS wireless debugging #118104
Changes from 8 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8a607d3
setup wireless debugging to use device IP
vashworth 2dfdf97
fix tests
vashworth 5f3caaa
fix unused var and missing annotation
vashworth 5691519
remove unneeded try catch
vashworth 3e6c1a0
remove commented out line, change null to package id
vashworth b63c79c
better way to get package id
vashworth 180e93d
update mDNS lookup to continously check for server, add messaging if …
vashworth 7b6da55
Refactor mDNS Discovery to poll for observatories and better handle m…
vashworth 60c487b
add and update comments, use logger spinner intead of timer in flutte…
vashworth 0cf0b70
add newline to message so next log won't be on same line
vashworth f42e382
fix install/waiting for permission status progress so it doens't doub…
vashworth 9655735
only print backtrace if observatory times out on a physical usb conne…
vashworth 8d78df2
Merge remote-tracking branch 'upstream/master' into wireless_debuggin…
vashworth eb0f417
fix test
vashworth edcc5c5
Update related references from Observatory to Dart VM Service
vashworth 60a63a9
fix test
vashworth f81ca6d
Merge remote-tracking branch 'upstream/master' into wireless_debuggin…
vashworth 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,8 +227,16 @@ class XCDevice { | |
|
|
||
| /// [timeout] defaults to 2 seconds. | ||
| Future<List<IOSDevice>> getAvailableIOSDevices({ Duration? timeout }) async { | ||
| Status? loadDevicesStatus; | ||
| if (timeout != null && timeout.inSeconds > 2) { | ||
| loadDevicesStatus = _logger.startProgress( | ||
| 'Loading devices...', | ||
| ); | ||
| } | ||
|
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. This change just gives some visual feedback that it's loading the devices. |
||
| final List<Object>? allAvailableDevices = await _getAllDevices(timeout: timeout ?? const Duration(seconds: 2)); | ||
|
|
||
| if (loadDevicesStatus != null) { | ||
| loadDevicesStatus.stop(); | ||
| } | ||
| if (allAvailableDevices == null) { | ||
| return const <IOSDevice>[]; | ||
| } | ||
|
|
@@ -305,12 +313,6 @@ class XCDevice { | |
|
|
||
| final IOSDeviceConnectionInterface interface = _interfaceType(device); | ||
|
|
||
| // Only support USB devices, skip "network" interface (Xcode > Window > Devices and Simulators > Connect via network). | ||
| // TODO(jmagman): Remove this check once wirelessly detected devices can be observed and attached, https://github.com/flutter/flutter/issues/15072. | ||
| if (interface != IOSDeviceConnectionInterface.usb) { | ||
| continue; | ||
| } | ||
|
|
||
| String? sdkVersion = _sdkVersion(device); | ||
|
|
||
| if (sdkVersion != null) { | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.