Wyatt Arent
c176346ec4
Fix Missing newline in flutter run help ( #6485 )
...
Issue #6461
2016-10-22 22:24:59 -07:00
Jason Simmons
022cb2d9dc
Do not buffer logs in the verbose logger ( #6465 )
...
With the old policy the most recent log would not be printed until the next
log is produced (which may be indefinitely). This change prints logs
immediately along with a time delta since the previous log.
2016-10-21 16:54:59 -07:00
Todd Volkert
379b1030d7
Rollback commits to get iOS into a stable state ( #6464 )
...
* Rollback commits to get iOS into a stable state
This rolls back the following commits:
* 23c52fc
(#6434 )
* a97cf4b
(#6433 )
* e72e174
(#6428 )
It also updates the engine to a newer revision that has the
necessary rollbacks in the engine repo.
Fixes #6458
2016-10-21 16:10:44 -07:00
Chinmay Garde
f3ca11042e
Bump up the timeout on port acquisition and forwaring to 60 seconds. ( #6468 )
...
It takes a little bit longer that 10 seconds to install, launch and
have the observatory be available on an iPod touch. Depending on the
size of the application, it could be a lot longer to transer the
bundle over the wire. The 60 seconds is arbitrary.
2016-10-21 16:07:39 -07:00
Devon Carew
55a374d46b
Reload pause ( #6459 )
...
* add a pause parameter to the reload command
* encode OperationResult as json
* reverse isOk logic
2016-10-21 16:07:19 -07:00
John McCutchan
23c52fc7a1
Handle errors thrown while doing a DevFS sync via HTTP PUT. ( #6434 )
2016-10-20 13:21:42 -07:00
Jason Simmons
1b2049eff4
Fix app refresh on Android in no-hot-reload mode ( #6435 )
...
Also remove the obsolete "flutter refresh" command
2016-10-20 12:37:04 -07:00
Ryan Macnak
a97cf4b579
Adapt to vm isolate and isolate snapshot pieces being emitted as assembly. ( #6433 )
2016-10-20 12:11:31 -07:00
Devon Carew
f1d70fcdd3
create intellij metadata from flutter create ( #6429 )
2016-10-20 12:03:38 -07:00
John McCutchan
e72e174461
Encode DevFS filenames so they are safe for http headers ( #6428 )
2016-10-20 10:50:25 -07:00
John McCutchan
dd52b7c5cb
Use Chain.capture instead of RunZoned ( #6420 )
2016-10-20 09:40:00 -07:00
Dan Rubel
28384787d1
search for IntelliJ on Mac in /Application and sub folders 1 level deep ( #6419 )
2016-10-20 12:01:29 -04:00
John McCutchan
9112823802
Do not reassemble the application after a hot reload if the isolate is paused ( #6370 )
2016-10-20 07:30:24 -07:00
Adam Barth
c074265298
Add support for building on Fuchsia ( #6415 )
...
This patch makes it possible to build Flutter apps that use the framework on
Fuchsia.
2016-10-20 01:32:45 -07:00
Jason Simmons
edbe034847
Specify the algorithm used to sign APK packages ( #6404 )
...
Required for compatibility with older versions of Android
2016-10-19 16:10:46 -07:00
Phil Quitslund
57044c2a63
Bump to Dart SDK 1.21.0-dev.0.0
. ( #6372 )
...
Bump to latest Dart SDK dev build (`1.21.0-dev.0.0`).
* updates to analyzer w/ support for bazel workspaces
* removes deprecated analysis `cacheSize` variable access
2016-10-18 13:38:13 -07:00
Yegor
88e065de86
driver: forward device logs to local console ( #6360 )
...
Fixes #4261
2016-10-17 14:52:46 -07:00
Devon Carew
e9b041f21e
don't run the summary code if the upgrade fails ( #6350 )
2016-10-16 10:05:13 -07:00
Todd Volkert
cedbfd4896
Don't crash if we fail to get the flutter or engine revision ( #6332 )
2016-10-14 15:43:44 -07:00
Chris Bracken
4a3cd61044
Execute flutter doctor on upgrade ( #6330 )
...
Ensure that any new/changed doctor checks are evaluated and reported
post upgrade.
2016-10-14 12:57:37 -07:00
Adam Barth
9a136b8722
Reduce logspam on iOS simulator ( #6327 )
...
Fixes #6311
2016-10-14 11:06:10 -07:00
Ian Hickson
71e05ff8f2
Clarify output of flutter create ( #6305 )
...
Previously it implied that you had to always say lib/main.dart in the "flutter run" command.
2016-10-13 21:21:59 -04:00
Todd Volkert
904d524313
Add support for --use-application-binary on iOS ( #6318 )
...
Fixes #6283
2016-10-13 16:17:50 -07:00
Dan Rubel
e20ee045ba
Flutter doctor detect IntelliJ on Mac ( #6262 )
...
* cleanup obtaining user home directory path
* refactor doctor and detect IntelliJ on Mac
* fix detect Flutter plugin for IntelliJ
2016-10-13 10:44:20 -04:00
Devon Carew
8f0f19a5e2
increase the port check iteration count ( #6301 )
2016-10-12 23:48:08 -07:00
Chris Bracken
3884077609
Improve doctor reporting for iOS toolchain ( #6289 )
...
Previously, overall status was reported as good if Xcode and homebrew
were installed, even if there were issues with either of the tools. We
now report partial status if we detect issues with either installation.
2016-10-12 14:19:31 -07:00
Jason Simmons
2805e5f8b8
Remove logs about unrecognized service protocol object types ( #6278 )
2016-10-12 09:41:35 -07:00
Dan Rubel
cd65b7902c
switch to package:mustache ( #6273 )
2016-10-11 17:44:12 -04:00
John McCutchan
be22f0d2b2
Don't show restart help text when running from a prebuilt app ( #6269 )
2016-10-11 12:52:48 -07:00
John McCutchan
87ba8699cb
Don't try to update the cache if locking is disabled ( #6258 )
2016-10-10 15:25:01 -07:00
Dan Rubel
94a83af5b1
Cleanup bin/cache ( #6247 )
2016-10-07 15:24:19 -04:00
Adam Barth
2c21d795a4
Deploy @checked
( #6244 )
...
This patch adds `@checked` everywhere is needed to remove the
`strong_mode_invalid_method_override` strong mode error.
2016-10-07 11:27:54 -07:00
Dan Rubel
7745dd73c7
improve flutter tool error message for download problems ( #6238 )
2016-10-06 17:49:14 -04:00
Yegor
3c40c85506
simplify lockfile-related message; move details to verbose level ( #5556 )
2016-10-06 10:11:54 -07:00
Dan Rubel
3136620427
Flutter doctor detect intellij on Linux ( #6227 )
2016-10-05 18:00:30 -04:00
Dan Rubel
aed056c64b
remove flutter listen ( #6198 )
2016-10-05 14:11:41 -04:00
Phil Quitslund
e44f6fe478
Bump Dart SDK to 1.20.0-dev.10.0
. ( #6212 )
...
* Bump Dart SDK to `1.20.0-dev.10.0`.
`1.20.0-dev.10.0` corresponds to `1.20-RC0`.
* pubspec.lock cleanup
* check for pubspec.lock existence
* cleaned up conditional remove
2016-10-05 09:05:15 -07:00
Devon Carew
95fa9e3c55
Less chatty ( #6213 )
...
* make flutter create less chatty
* output generated file count; mention lib/main.dart
2016-10-05 08:26:17 -07:00
Devon Carew
b00e6cda66
tweak the device description for emulators ( #6214 )
2016-10-04 20:29:10 -07:00
Dan Rubel
55bc771f58
flutter devices indicate which are simulators ( #6200 )
2016-10-04 13:07:42 -04:00
Dan Rubel
9f673ad445
flutter analyze --watch ( #6093 )
2016-10-04 08:20:24 -04:00
Dan Rubel
8b164d7c46
improve "no device connected" message after "flutter run" ( #6179 )
2016-10-03 22:19:58 -04:00
Jason Simmons
35de41d648
Require the diagnotic-port flag on the flutter skia command ( #6174 )
...
The diagnostic port forward can be arbitrarily assigned and typically
is not the default
Fixes https://github.com/flutter/flutter/issues/5867
2016-10-03 11:24:18 -07:00
Dan Rubel
08d788099b
Prevent "install XCode" dialog when flutter doctor is run ( #6164 )
...
fixes https://github.com/flutter/flutter/issues/6163
2016-10-02 12:23:03 -04:00
P.Y. Laligand
b4e379ad6c
Goodbye "build mojo", we hardly knew ye. ( #6162 )
2016-10-01 08:50:04 -07:00
P.Y. Laligand
030b110f69
New "build mojo" command to build flx files for Fuchsia. ( #6112 )
2016-09-30 10:23:33 -07:00
Devon Carew
d3d9e1cadb
use less granular progress ( #6130 )
...
* use less granular progress
* update restart text
2016-09-29 15:02:17 -07:00
John McCutchan
8da84b1c2d
Make flutter tools crash log writing fail gracefully ( #6122 )
2016-09-28 12:44:18 -07:00
Devon Carew
d9bbd2fb53
make app ids more unique ( #6113 )
...
* make app ids more unique
* in-line the uuid class
2016-09-28 11:18:05 -07:00
Chris Bracken
e6ed26d658
Doctor check for libimobiledevice/Xcode compatibility ( #6111 )
...
libimobiledevice 1.2.0 is incompatible with Xcode >= 8.0. Since the
libimobiledevice tools don't include a --version flag, check for valid
exit code on running idevicename, if an iOS device is connected.
2016-09-28 10:01:07 -07:00
John McCutchan
ca8070f904
Fix flutter run --use-application-binary ( #6106 )
...
When using --use-application-binary:
- [x] Stop flutter run from checking for a pubspec.yaml in current directory
- [x] Stop flutter run from invoking pub get
- [x] Set 'shouldBuild' based on --use-application-binary
- [x] Stop requiring 'lib/main.dart' to be present before running.
- [x] Stop building an FLX when launching on Android
2016-09-28 08:46:16 -07:00
Devon Carew
cf794f42ef
return info about whether a device is an emulator ( #6114 )
2016-09-28 01:10:40 -07:00
Devon Carew
f7d501024c
share a common default for enabling hot reload ( #6081 )
2016-09-26 19:02:04 -07:00
Chris Bracken
c5567a5fd2
Fix race condition locating observatory port on iOS ( #6090 )
...
Ensure that we're monitoring logs before we launch the app on the
device. This prevents the case where we start monitoring after the ports
have already been logged.
Also update the regex to use an optional capture group.
2016-09-26 17:12:20 -07:00
Chris Bracken
a45e4e923c
Support Xcode variable substitution in Info.plist
...
As of Xcode 7, Apple recommends setting CFBundleIdentifier to
$(PRODUCT_BUNDLE_IDENTIFIER).
2016-09-26 15:04:07 -07:00
Devon Carew
20e9fbfe6d
fix an encoding issue with calling adb shell getprop ( #5740 )
...
* fix an encoding issue with calling adb shell getprop
* move code in catch block
* add a test
* switch to LATIN1 encoding
2016-09-26 12:47:34 -07:00
Jason Simmons
0fb35fad43
Update the local engine paths to match the latest build files ( #6074 )
2016-09-26 11:21:43 -07:00
Devon Carew
fa52b456ec
set the FLUTTER_ROOT env var when invoking pub ( #6041 )
2016-09-25 19:30:44 -07:00
Chris Bracken
fea4a91ab6
Flutter run support for iOS 10 ( #6028 )
...
With iOS 10, the syslog format changed from:
Sep 23 16:04:17 cbracken-iPhone Runner[6188] <Info>: .*
to:
Sep 23 16:04:17 cbracken-iPhone Runner(libsystem_asl.dylib)[6188] <Info>: .*
This updates the observatory port scraping to handle either case.
2016-09-23 16:59:03 -07:00
Devon Carew
4c1e4a24ae
allow daemon app launches to be more lenient about device ids ( #6015 )
2016-09-23 08:52:10 -07:00
Dan Rubel
133a9c35db
extract flutter watch from flutter analyze ( #6012 )
2016-09-23 09:03:23 -04:00
Ian Hickson
7a0f3d3405
Remove a sketchy override of a field ( #6009 )
...
The way this was implemented is sketchy, especially in strong mode.
2016-09-22 16:07:56 -07:00
Devon Carew
8755e569ca
suppress pub override warning; decouple the analyzer versions ( #5991 )
...
* suppress warning; decouple the analyzer versions
* also pass in --no-packages-dir
2016-09-22 07:40:38 -07:00
Dan Rubel
74f50bfbe6
improve the default help to include common actions ( #5980 )
2016-09-22 06:03:32 -04:00
Dan Rubel
3f68e187f3
Help verbose show hidden options ( #5979 )
...
* show hidden flags when showing verbose help
* flutter -v show verbose help
2016-09-22 05:58:45 -04:00
James Robinson
a95c9fdb58
Isolate imports of generated Dart code from generated path ( #5960 )
...
This rewrites imports of various mojom.dart files from the Flutter
engine repo to instead import normal-looking dart files from the
(new) flutter_services package. This package handles exporting the
correct symbols from generated code wherever that may live.
Includes an engine roll to 3551e7a48e2e336777b15c7637af92fd7605b6c5
which contains the new flutter_services package.
2016-09-21 14:00:29 -07:00
John McCutchan
035afc2c25
Properly handle symlinked source files in hot mode ( #5978 )
2016-09-21 11:24:29 -07:00
Dan Rubel
80d46a893d
update flutter run --release to launch and exit ( #5942 )
2016-09-20 14:41:09 -04:00
Phil Quitslund
2d4d171338
Roll to Dart SDK 1.20.0-dev.5.0
. ( #5911 )
...
* Roll to Dart SDK `1.20.0-dev.5.0`.
* bumps to `1.20.0-dev.5.0`.
* updates `analyzer` API use.
* Add explicit types.
2016-09-16 16:30:34 -07:00
Dan Rubel
573eaf0b71
diagnost XCode signing errors and offer suggestions ( #5913 )
...
Fixes https://github.com/flutter/flutter/issues/5775
2016-09-16 17:59:43 -04:00
Phil Quitslund
fffde14f64
Update tools to use analyzer
from vended Dart SDK. ( #5900 )
...
* Update tools to use `analyzer` from vended Dart SDK.
* updates `flutter_tools` and `flutter_test` to use the SDK-vended `analyzer` package
* tweaks dependency tracking logic to only record the SDK-vended `analyzer` so as not to crash on spurious conflicts (due to transitive dependencies)
* Review fixes.
2016-09-16 11:06:17 -07:00
Dan Rubel
1821238279
Refactor flutter command execution ( #5892 )
...
* refactor _run to runCmd
* replace requiresProjectRoot getter with call to commandValidator
* replace requiresDevice getter with call to findTargetDevice
* trace command requires a debug connection, not a device
* inline androidOnly getter
* rename command methods to verifyTheRunCmd and runCmd
* move common verification into BuildSubCommand
* rename deviceForCommand to device
* rename methods to verifyThenRunCommand and runCommand
2016-09-16 09:13:35 -04:00
John McCutchan
24ab837240
Support hot reload for applications that don't use the framework ( #5868 )
2016-09-15 13:18:32 -07:00
Dan Rubel
cc1755aac9
move all analysis options to repo root ( #5882 )
...
This moves all of the various .analysis_options* files to the flutter repo root so that it's easier to
* remember to keep them all in sync, and
* easily refer customers to them
2016-09-15 11:59:46 -04:00
John McCutchan
fd50ccdd95
Enable hot mode by default. --no-hot disables it ( #5794 )
2016-09-13 14:38:05 -07:00
Dan Rubel
672d04e0d0
close sinks cleanup ( #5838 )
...
part of https://github.com/flutter/flutter/issues/5789
2016-09-13 14:15:36 -04:00
Dan Rubel
bad957d457
remove unused methods ( #5837 )
...
cleanup https://github.com/flutter/flutter/issues/5789
2016-09-13 12:01:04 -04:00
Konstantin Scheglov
0774a6748e
Build unlinked summaries for packages on upgrade. ( #5816 )
...
* Build unlinked summaries for packages on upgrade.
* Iterate through the packages in folders.
* Rollback the debug change.
2016-09-12 13:58:32 -07:00
Dan Rubel
678da3ac2b
cancel open subscription ( #5824 )
...
fixes https://github.com/flutter/flutter/issues/5788
2016-09-12 16:32:08 -04:00
Adam Barth
4ea8f302ab
Teach flutter upgrade to switch to master ( #5827 )
...
To avoid orphaning people on the deprecated alpha branch, this patch teaches
`flutter upgrade` to switch to the master branch.
2016-09-12 13:25:57 -07:00
John McCutchan
718a88d06e
Add a --benchmark mode to hot run ( #5787 )
2016-09-12 12:19:08 -07:00
Chinmay Garde
ffe5700948
Shell instances launched by the tools from the desktop are always non-interactive. ( #5778 )
...
In that they never create a window with an OpenGL context and the works.
2016-09-09 16:31:49 -07:00
Chris Bracken
17c7118ab6
Use runCommandAndStreamOutput() to launch driver ( #5806 )
...
... in place of manual process wrangling.
2016-09-09 16:08:59 -07:00
Chris Bracken
726d31689d
drive: Replace manual pub get with usesPubOption() ( #5803 )
2016-09-09 15:04:01 -07:00
Chris Bracken
e7601e3fa5
Use .packages for flutter driver tests ( #5795 )
...
Fixes flutter drive breakage introduced in d2fda677e1
.
2016-09-09 13:57:16 -07:00
Dan Rubel
bb0a6757fc
Suggest simulator when no devices ( #5770 )
...
When flutter run is used on a Mac and no devices are specified or attached, suggest launching a simulator first. Fixes https://github.com/flutter/flutter/issues/5674
2016-09-08 17:37:39 -04:00
Phil Quitslund
d2fda677e1
Update to Dart 1.20.0-dev.1.0
. ( #5689 )
...
* Udpate to Dart `1.20.0-dev.1.0`.
Udpate to Dart `1.20.0-dev.1.0` and corresponding `analyzer` package.
* Added `--no-packages-dir`.
* Revert extension to master.
* Added ignores.
* Review nits.
* More nits.
2016-09-08 13:14:08 -07:00
Dan Rubel
3ed3390d0c
flutter analyze repo analysis options ( #5707 )
...
This updates the flutter analyze command to use the .analysis_options_flutter_analyze in the repo root when either the --flutter-repo flag is supplied or the sources being analyzed reside in the flutter repo.
2016-09-07 22:41:59 -04:00
Chris Bracken
a69c11f349
Replace hardcoded iOS build dir with config-driven lookup ( #5732 )
...
Related: b5f763b45e
2016-09-02 17:01:11 -07:00
Dan Rubel
023b7de11f
show device list in flutter doctor output ( #5697 )
...
* show device list in flutter doctor output
fixes https://github.com/flutter/flutter/issues/5625
2016-09-01 17:55:16 -04:00
Dan Rubel
ef79e7a1c0
improve device matching error message ( #5693 )
...
* improve device matching error message
fixes https://github.com/flutter/flutter/issues/5675
2016-09-01 12:37:58 -04:00
Dan Rubel
e20ec2becb
implement flutter format ( #5606 )
...
Implement flutter format, fixes https://github.com/flutter/flutter/issues/5338
2016-08-31 09:40:17 -04:00
Jason Simmons
4aba536aa9
Support x86/x64 targets in the build apk command ( #5660 )
...
Fixes https://github.com/flutter/flutter/issues/5592
2016-08-30 14:13:47 -07:00
Dan Rubel
83bf5d10c0
fix getDeviceById to match exact name ( #5657 )
...
* fix getDeviceById to match exact name
fixes https://github.com/flutter/flutter/issues/5508
2016-08-30 14:11:54 -04:00
Ryan Macnak
fa8dc5f88b
Do not truncate commands, this inhibits reproduction. ( #5607 )
2016-08-26 14:48:21 -07:00
Alexandre Ardhuin
886f588df6
Update gradle.dart ( #5610 )
2016-08-26 07:51:37 -07:00
Dan Rubel
194a9ef3c9
implement flutter packages get/upgrade command ( #5603 )
...
* implement flutter packages get/upgrade command
* alias flutter pub
* refactor findProjectRoot for use by multiple commands
fixes https://github.com/flutter/flutter/issues/4994
2016-08-25 22:37:48 -04:00
Chris Bracken
b5f763b45e
Support a configurable build directory ( #5601 )
...
This change adds a top-level getBuildDirectory func and funcs for
android, aot, asset, ios build products.
Developers may now add a "build-dir" mapping to their
~/.flutter_settings (JSON format) config file. Output directory is
relative to the main flutter application directory.
This change also changes the default build directory for iOS builds to a
subdirectory of the configured build directory, 'build/ios' by default.
2016-08-25 16:38:19 -07:00
John McCutchan
852a00a17b
Detect when isolate reload is barred and inform the user ( #5602 )
2016-08-25 14:23:13 -07:00
Dan Rubel
e47e937682
add flutter channel command ( #5561 )
...
* add flutter channel command
fixes https://github.com/flutter/flutter/issues/2513
* fix test
* address comments
* remove unused imports
* fix lints
2016-08-25 15:16:21 -04:00