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
0364590b
Commit
0364590b
authored
Oct 06, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delay looking for android devices
parent
ad155b23
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
20 deletions
+25
-20
install.dart
packages/flutter_tools/lib/src/install.dart
+6
-4
listen.dart
packages/flutter_tools/lib/src/listen.dart
+3
-3
logs.dart
packages/flutter_tools/lib/src/logs.dart
+4
-3
start.dart
packages/flutter_tools/lib/src/start.dart
+4
-3
stop.dart
packages/flutter_tools/lib/src/stop.dart
+4
-4
trace.dart
packages/flutter_tools/lib/src/trace.dart
+4
-3
No files found.
packages/flutter_tools/lib/src/install.dart
View file @
0364590b
...
...
@@ -14,15 +14,17 @@ import 'device.dart';
class
InstallCommand
extends
Command
{
final
name
=
'install'
;
final
description
=
'Install your Flutter app on attached devices.'
;
AndroidDevice
android
=
null
;
InstallCommand
([
this
.
android
])
{
InstallCommand
([
this
.
android
]);
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
install
())
{
return
0
;
}
else
{
...
...
packages/flutter_tools/lib/src/listen.dart
View file @
0364590b
...
...
@@ -34,14 +34,14 @@ class ListenCommand extends Command {
defaultsTo:
'.'
,
abbr:
't'
,
help:
'Target app path or filename to start.'
);
}
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
argResults
.
rest
.
length
>
0
)
{
watchCommand
=
_initWatchCommand
(
argResults
.
rest
);
}
else
{
...
...
packages/flutter_tools/lib/src/logs.dart
View file @
0364590b
...
...
@@ -21,13 +21,14 @@ class LogsCommand extends Command {
argParser
.
addFlag
(
'clear'
,
negatable:
false
,
help:
'Clear log history before reading from logs (Android only).'
);
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
Future
<
int
>
androidLogProcess
=
null
;
if
(
android
.
isConnected
())
{
androidLogProcess
=
android
.
logs
(
clear:
argResults
[
'clear'
]);
...
...
packages/flutter_tools/lib/src/start.dart
View file @
0364590b
...
...
@@ -33,13 +33,14 @@ class StartCommand extends Command {
defaultsTo:
'.'
,
abbr:
't'
,
help:
'Target app path or filename to start.'
);
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
bool
startedSomewhere
=
false
;
bool
poke
=
argResults
[
'poke'
];
if
(!
poke
)
{
...
...
packages/flutter_tools/lib/src/stop.dart
View file @
0364590b
...
...
@@ -18,14 +18,14 @@ class StopCommand extends Command {
final
description
=
'Stop your Flutter app on all attached devices.'
;
AndroidDevice
android
=
null
;
StopCommand
([
this
.
android
])
{
StopCommand
([
this
.
android
]);
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
stop
())
{
return
0
;
}
else
{
...
...
packages/flutter_tools/lib/src/trace.dart
View file @
0364590b
...
...
@@ -27,13 +27,14 @@ class TraceCommand extends Command {
argParser
.
addFlag
(
'stop'
,
negatable:
false
,
help:
'Stop tracing.'
);
argParser
.
addOption
(
'duration'
,
defaultsTo:
'10'
,
abbr:
'd'
,
help:
'Duration in seconds to trace.'
);
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
}
@override
Future
<
int
>
run
()
async
{
if
(
android
==
null
)
{
android
=
new
AndroidDevice
();
}
if
(!
android
.
isConnected
())
{
_logging
.
warning
(
'No device connected, so no trace was completed.'
);
return
1
;
...
...
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