From 0e06feee0123d182ebf9ee0356902d8d0b39e777 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 12 Oct 2015 01:33:03 -0700 Subject: [PATCH] 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.) --- packages/flutter_tools/lib/src/artifacts.dart | 2 +- packages/flutter_tools/lib/src/commands/init.dart | 4 ++-- packages/flutter_tools/lib/src/device.dart | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart index 751cbd81ac..23daf0c2dd 100644 --- a/packages/flutter_tools/lib/src/artifacts.dart +++ b/packages/flutter_tools/lib/src/artifacts.dart @@ -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(); diff --git a/packages/flutter_tools/lib/src/commands/init.dart b/packages/flutter_tools/lib/src/commands/init.dart index c72dac2055..f968246ac4 100644 --- a/packages/flutter_tools/lib/src/commands/init.dart +++ b/packages/flutter_tools/lib/src/commands/init.dart @@ -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']) { diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index ea874b6d3e..603e95c2b2 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart @@ -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;