Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3e96dfc0
Unverified
Commit
3e96dfc0
authored
Mar 06, 2023
by
Lau Ching Jun
Committed by
GitHub
Mar 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add backward compatibility in proxied_devices. (#122040)
Add backward compatibility in proxied_devices.
parent
9f69a367
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
devices.dart
packages/flutter_tools/lib/src/proxied_devices/devices.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/proxied_devices/devices.dart
View file @
3e96dfc0
...
@@ -248,7 +248,8 @@ class ProxiedDevice extends Device {
...
@@ -248,7 +248,8 @@ class ProxiedDevice extends Device {
'userIdentifier'
:
userIdentifier
,
'userIdentifier'
:
userIdentifier
,
}));
}));
final
bool
started
=
_cast
<
bool
>(
result
[
'started'
]);
final
bool
started
=
_cast
<
bool
>(
result
[
'started'
]);
final
String
?
vmServiceUriStr
=
_cast
<
String
?>(
result
[
'vmServiceUri'
]);
// TODO(bkonyi): remove once clients have migrated to relying on vmServiceUri.
final
String
?
vmServiceUriStr
=
_cast
<
String
?>(
result
[
'vmServiceUri'
])
??
_cast
<
String
?>(
result
[
'observatoryUri'
]);
final
Uri
?
vmServiceUri
=
vmServiceUriStr
==
null
?
null
:
Uri
.
parse
(
vmServiceUriStr
);
final
Uri
?
vmServiceUri
=
vmServiceUriStr
==
null
?
null
:
Uri
.
parse
(
vmServiceUriStr
);
if
(
started
)
{
if
(
started
)
{
if
(
vmServiceUri
!=
null
)
{
if
(
vmServiceUri
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment