Chris Bracken
972be9c8b4
Make device discovery asynchronous ( #10803 )
...
Migrates DeviceDiscovery.devices and all device-specific lookup to be
asynchronous.
2017-06-16 17:47:06 -07:00
Devon Carew
15928fbdf7
have app loggers log to their parent logger ( #10402 )
...
* have app loggers log to their parent logger
* rename field to parent
* add todo
* revert flutter_tools.iml change
* ping the bots
2017-06-02 15:22:46 -07:00
Todd Volkert
a88379399e
Don't fail assert when we send an error to the plugin. ( #10207 )
2017-05-19 12:34:41 -07:00
Todd Volkert
a29585298e
Add level field to the "showMessage" daemon event. ( #9889 )
...
Spawned from a discussion in https://github.com/flutter/flutter-intellij/pull/1003
2017-05-08 11:49:47 -07:00
Todd Volkert
6a4b08bec6
Make DeviceDomain echo a msg if doctor says it can't list anything ( #9749 )
...
This message will be picked up by IntelliJ and shown to the user in a toast.
2017-05-03 16:12:08 -07:00
xster
87d0010adb
Let printError be able to print bold also ( #9714 )
...
* Let printError print bold as well
* review notes
2017-05-02 22:20:14 -07:00
Devon Carew
6716904385
return the result from calling a service extension ( #9636 )
2017-04-28 07:39:14 -07:00
Devon Carew
9ac2e44ee7
add a regression test for daemon device notification ( #9618 )
...
* add a regression test for daemon device notification
* revert event send simplification
2017-04-27 09:30:47 -07:00
Zachary Anderson
0770c3c14f
[flutter_tools] Adds some support for '-d all' ( #9585 )
2017-04-26 21:49:38 -07:00
Todd Volkert
e2cd78358f
Fix missing await ( #9617 )
...
Fixes #9612
2017-04-26 13:14:31 -07:00
Todd Volkert
60c5ffc1a9
Switch many Device
methods to be async ( #9587 )
...
`adb` can sometimes hang, which will in turn hang the Dart isolate if
we're using `Process.runSync()`. This changes many of the `Device` methods
to return `Future<T>` in order to allow them to use the async process
methods. A future change will add timeouts to the associated calls so
that we can properly alert the user to the hung `adb` process.
This is work towards #7102 , #9567
2017-04-25 17:23:00 -07:00
Ian Hickson
2a54524337
Fix tests to use Ahem, and helpful changes around that ( #9332 )
...
* Fix tests to use Ahem, and helpful changes around that
- Fix fonts that had metric-specific behaviours.
- LiveTestWidgetsFlutterBinding.allowAllFrames has been renamed
to LiveTestWidgetsFlutterBinding.framePolicy.
- LiveTestWidgetsFlutterBinding now defaults to using a frame policy
that pumps slightly more frames, to animate the pointer crosshairs.
- Added "flutter run --use-test-fonts" to enable Ahem on devices.
- Changed how idle() works to be more effective in live mode.
- Display the test name in live mode (unless ahem fonts are enabled).
- Added a toString to TextSelectionPoint.
- Style nit fixes.
* Roll engine to get Ahem changes.
* Update tests for dartdoc changes.
* Fix flutter_tools tests
2017-04-12 13:33:02 -07:00
Alexandre Ardhuin
8bcf302e23
use conditional assignment ( #9252 )
2017-04-07 21:41:17 +02:00
Alexandre Ardhuin
4c530d5e8c
prefer_final_fields ( #8967 )
2017-03-29 21:21:46 +02:00
Alexandre Ardhuin
2166ea5b7f
apply partially the upcoming unnecessary_lambdas ( #8810 )
2017-03-15 23:09:58 +01:00
Todd Volkert
34ed3d2d24
Pay off some technical debt. ( #8710 )
...
* Rename `Device.platform` to `Device.targetPlatform` to avoid
collision with the exported variable from `platform.dart`
2017-03-10 10:11:05 -08:00
Chris Bracken
7a09316cd0
Declare locals final where not reassigned (flutter_tools) ( #8570 )
2017-03-03 17:50:46 -08:00
Alexandre Ardhuin
2888139c6b
prefer const constructor ( #8292 )
2017-02-20 14:07:16 -08:00
Todd Volkert
b59982eccd
Properly await future when starting app in daemon mode ( #8227 )
...
Fixes #8209
2017-02-16 16:46:38 -08:00
Alexandre Ardhuin
e151a1a438
prefer_contains ( #8040 )
2017-02-09 15:17:55 -08:00
xster
1cc78145fe
Add logger indent option and indent nested xcode command outputs ( #7867 )
...
* Add indent option to logger and indent non-flutter nested output
* Add a missed override
* Formatting
2017-02-08 18:27:47 -08:00
Devon Carew
d89f438699
improve the logger ui a bit for elapsed times ( #7960 )
...
* improve the logger ui a bit for elapsed times
* invert param
* update daemon.dart
2017-02-08 08:25:36 -08:00
Michael Goderbauer
40aab7f553
Bump Dart SDK to 1.22.0-dev.10.3 ( #7791 )
2017-02-01 16:33:27 -08:00
Ian Hickson
96e11e1bf1
Clean up the file names of the hot and cold runners. ( #7697 )
2017-01-28 14:26:49 -08:00
Ian Hickson
f888bbed48
Refactor hot/cold/drive runners a little ( #7694 )
...
Move the drive/run common stuff to RunCommandBase, rather than the
superclass which applies to everything.
Implement --no-resident (fixes
https://github.com/flutter/flutter/issues/5448 ). This is particularly
useful when running flutter from scripts.
Rename RunAndStayResident to ColdRunner.
2017-01-27 01:03:04 -08:00
Ian Hickson
576b4e1179
Change --debug-port to --observatory-port ( #7675 )
...
...and add --diagnostic-port.
...and document port 0.
2017-01-26 16:42:48 -08:00
Ian Hickson
63aa1397a3
Increase the strictness of our requiring explicit types ( #7585 )
...
...now that we have generic methods, their types need to be specified too.
2017-01-23 01:04:31 -08:00
Devon Carew
34b9ce859a
proxy service extension calls through the daemon protocol ( #7554 )
...
* proxy service extension calls through the daemon protocol
* add test for app.callServiceExtension
2017-01-20 08:51:57 -08:00
Devon Carew
258fc011f6
pass additional named params to daemon run ( #7392 )
...
* pass additional named params to daemon run
* add a trailing comma
2017-01-09 16:12:41 -08:00
Todd Volkert
016b5ab0cc
Force all dart:io usage to go through 'base/io.dart' ( #7390 )
...
This ensures that accidental usages of dart:io's
file API don't creep in over time.
2017-01-09 08:37:00 -08:00
Todd Volkert
8bb270342e
Update flutter_tools to use package:file throughout ( #7385 )
...
This removes direct file access from within flutter_tools
in favor of using `package:file` via a `FileSystem` that's
accessed via the `ApplicationContext`.
This lays the groundwork for us to be able to easily swap
out the underlying file system when running Flutter tools,
which will be used to provide a record/replay file system,
analogous to what we have for process invocations.
2017-01-06 16:51:44 -08:00
Devon Carew
bf25b31a65
some updates to the launch verbiage ( #7236 )
2016-12-12 09:31:58 -08:00
Devon Carew
bec4a6c790
updates for flutter run --machine ( #7183 )
...
* have flutter run --machine log to stdout
* add a test
* add docs; fix type annotation lint
2016-12-07 12:48:47 -08:00
Dan Rubel
a9584e1214
Handle new observatory url ( #7061 )
...
* reapply handle new Observatory URL changes
Fixes https://github.com/flutter/flutter/issues/6843
* allow non numeric IPv4 addresses
Fixes https://github.com/flutter/flutter/issues/7051
2016-11-30 20:29:04 -05:00
John McCutchan
618030e044
More AppContext cleanups ( #7073 )
2016-11-29 11:22:48 -08:00
Dan Rubel
fcf41fc737
revert handle new Observatory URL ( #7056 )
...
737a55ef3e
2016-11-28 16:15:19 -05:00
Dan Rubel
737a55ef3e
handle new Observatory URL ( #6992 )
2016-11-28 11:36:20 -05:00
Devon Carew
5658577475
pass through the ws debugging uri ( #6989 )
2016-11-22 13:18:35 -08:00
Dan Rubel
4828b2c377
fix flutter tools daemon exit code check ( #6981 )
2016-11-22 09:36:50 -05:00
Devon Carew
15ea399fdd
add identifiers to progress messages ( #6868 )
2016-11-15 12:13:56 -08:00
Dan Rubel
34e466f1fd
Refactor flutter command exit code - part 3 of 3 ( #6838 )
...
* Remove the workaround that pinned args to v0.13.6
This reverts most of the changes in commit 6331b6c8b5
* throw exception if exit code is not an integer
* rework command infrastructure to throw ToolExit when non-zero exitCode
* convert commands to return Future<Null>
* cleanup remaining commands to use throwToolExit for non-zero exit code
* remove isUnusual exception message
* add type annotations for updated args package
2016-11-14 14:21:30 -05:00
Dan Rubel
cccd917ac2
Refactor flutter command exit code - part 1 ( #6803 )
...
* convert flutter commands to use ToolExit for non-zero exit code
* add convenience method throwToolExit
* print ToolExit message iff not null
2016-11-11 10:42:09 -05:00
John McCutchan
e908655207
Remove legacy restart support ( #6801 )
2016-11-10 11:12:59 -08:00
Ian Hickson
04e7446b2b
Make the fire red on black-and-white terminals ( #6748 )
2016-11-07 15:48:50 -08:00
Dan Rubel
974da47481
send app.progress events ( #6744 )
2016-11-07 17:55:45 -05:00
Devon Carew
fcfb2a5c55
Better progress ( #6677 )
...
* make showElapsedTime default to true
* support nested progresses
* improve hot reload message
* rethrow
2016-11-03 13:28:17 -07:00
Dan Rubel
1f1adcaa0e
refactor app.* daemon events ( #6679 )
2016-11-03 14:29:56 -04:00
Dan Rubel
223f416199
Flutter run with machine output ( #6645 )
...
* add flutter run --machine flag
* refactor daemon stdin/out command stream/response
* extract daemon startApp method
* refactor flutter run --machine to call daemon.startApp
2016-11-02 17:15:01 -04: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
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