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
11076bfb
Commit
11076bfb
authored
May 07, 2018
by
Danny Tuppeny
Committed by
Danny Tuppeny
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing awaits
parent
f850d04e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
+5
-10
android_emulator.dart
packages/flutter_tools/lib/src/android/android_emulator.dart
+2
-4
emulators.dart
packages/flutter_tools/lib/src/commands/emulators.dart
+1
-1
emulator.dart
packages/flutter_tools/lib/src/emulator.dart
+1
-1
ios_emulators.dart
packages/flutter_tools/lib/src/ios/ios_emulators.dart
+1
-4
No files found.
packages/flutter_tools/lib/src/android/android_emulator.dart
View file @
11076bfb
...
...
@@ -41,15 +41,13 @@ class AndroidEmulator extends Emulator {
String
get
label
=>
_properties
[
'avd.ini.displayname'
];
@override
Future
<
bool
>
launch
()
async
{
Future
<
void
>
launch
()
async
{
final
RunResult
launchResult
=
await
runAsync
(<
String
>[
getEmulatorPath
(),
'-avd'
,
id
]);
if
(
launchResult
.
exitCode
!=
0
)
{
printError
(
'
$launchResult
'
);
return
false
;
}
return
true
;
}
}
...
...
packages/flutter_tools/lib/src/commands/emulators.dart
View file @
11076bfb
...
...
@@ -55,7 +55,7 @@ class EmulatorsCommand extends FlutterCommand {
printStatus
(
"More than one emulator matches '
$id
':
\n
"
);
Emulator
.
printEmulators
(
emulators
);
}
else
{
emulators
.
first
.
launch
();
await
emulators
.
first
.
launch
();
}
}
...
...
packages/flutter_tools/lib/src/emulator.dart
View file @
11076bfb
...
...
@@ -95,7 +95,7 @@ abstract class Emulator {
return
id
==
other
.
id
;
}
void
launch
();
Future
<
void
>
launch
();
@override
String
toString
()
=>
name
;
...
...
packages/flutter_tools/lib/src/ios/ios_emulators.dart
View file @
11076bfb
...
...
@@ -35,15 +35,12 @@ class IOSEmulator extends Emulator {
String
get
label
=>
null
;
@override
Future
<
bool
>
launch
()
async
{
Future
<
void
>
launch
()
async
{
final
RunResult
launchResult
=
await
runAsync
(<
String
>[
'open'
,
'-a'
,
getSimulatorPath
()]);
if
(
launchResult
.
exitCode
!=
0
)
{
printError
(
'
$launchResult
'
);
return
false
;
}
return
true
;
}
}
...
...
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