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
870da175
Unverified
Commit
870da175
authored
Nov 11, 2017
by
Yegor
Committed by
GitHub
Nov 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused forwardPort; truthier console messages (#12981)
parent
c1d742b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
device.dart
packages/flutter_tools/lib/src/device.dart
+0
-16
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+1
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/device.dart
View file @
870da175
...
...
@@ -206,22 +206,6 @@ abstract class Device {
/// Get the port forwarder for this device.
DevicePortForwarder
get
portForwarder
;
Future
<
int
>
forwardPort
(
int
devicePort
,
{
int
hostPort
})
async
{
try
{
hostPort
=
await
portForwarder
.
forward
(
devicePort
,
hostPort:
hostPort
)
.
timeout
(
const
Duration
(
seconds:
60
),
onTimeout:
()
{
throw
new
ToolExit
(
'Timeout while atempting to foward device port
$devicePort
'
);
});
printTrace
(
'Forwarded host port
$hostPort
to device port
$devicePort
'
);
return
hostPort
;
}
catch
(
e
)
{
throw
new
ToolExit
(
'Unable to forward host port
$hostPort
to device port
$devicePort
:
$e
'
);
}
}
/// Clear the device's logs.
void
clearLogs
();
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
870da175
...
...
@@ -264,7 +264,7 @@ class IOSDevice extends Device {
return
null
;
}
printTrace
(
'Application launched on the device.
Attempting to forward ports
.'
);
printTrace
(
'Application launched on the device.
Waiting for observatory port
.'
);
return
await
forwardObservatoryUri
;
}).
whenComplete
(()
{
observatoryDiscovery
.
cancel
();
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
870da175
...
...
@@ -58,9 +58,10 @@ class FlutterDevice {
return
;
vmServices
=
new
List
<
VMService
>(
observatoryUris
.
length
);
for
(
int
i
=
0
;
i
<
observatoryUris
.
length
;
i
++)
{
printTrace
(
'Connecting to service protocol:
${observatoryUris[i]}
'
);
vmServices
[
i
]
=
await
VMService
.
connect
(
observatoryUris
[
i
],
reloadSources:
reloadSources
);
printTrace
(
'
C
onnected to service protocol:
${observatoryUris[i]}
'
);
printTrace
(
'
Successfully c
onnected to service protocol:
${observatoryUris[i]}
'
);
}
}
...
...
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