Add some print statements to smooth first run

This patch adds a couple print statements to explain why the first run of
`flutter start` takes a while. (We need to download the APK and install it on
the device.)
This commit is contained in:
Adam Barth
2015-10-12 01:33:03 -07:00
parent a157e0eac0
commit 0e06feee01
3 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class ArtifactStore {
}
static Future _downloadFile(String url, File file) async {
_logging.fine('Downloading $url to ${file.path}');
print('Downloading $url to ${file.path}.');
HttpClient httpClient = new HttpClient();
HttpClientRequest request = await httpClient.getUrl(Uri.parse(url));
HttpClientResponse response = await request.close();

View File

@@ -37,8 +37,8 @@ class InitCommand extends Command {
String message = '''All done! To run your application:
cd ${out.path}
./packages/flutter/sky_tool start
\$ cd ${out.path}
\$ flutter start --checked
''';
if (argResults['pub']) {

View File

@@ -720,6 +720,7 @@ class AndroidDevice extends Device {
return false;
}
print('Installing ${app.name} on device.');
runCheckedSync([adbPath, 'install', '-r', app.localPath]);
Directory tempDir = Directory.systemTemp;