26 Commits

Author SHA1 Message Date
Danny Tuppeny 4944622b5d Support URL tunnelling (pass dwds UrlEncoder through to editors via daemon) (#44271)
* Prposal for supporting URL tunnelling

* Update daemon.md

* Add the ability for daemon to call clients to expose URLs

* Fix dwds mock in web_fs tests

* Fix type error

* Remove build_runner import from run

* Move appStartedTime back to after the app has started

* Remove nested DI scope and pass urlTunneller down

* Fix import

* Tweak TODO

* Fix existing tests

* Fix spec to use result instead of params for response object

* Fix exposeUrl to use a url field, as spec'd

* Test that the daemon's exposeUrl sends a request and handles the response
2019-12-12 18:43:58 +00:00
Jonah Williams 81aa2710d2 [flutter_tool] add a vmservice API for hot ui requests (#45649) 2019-12-09 21:31:34 -08:00
Danny Tuppeny 81f6ba84b9 Switch from using app.progress to app.webLaunchUrl for passing web launch urls (#44268)
* Switch from using app.progress to app.url for passing web launch urls

* Update daemon.md

* Change app.url -> app.webLaunchUrl

* Add tests for app.webLaunchUrl event

* Update tests with recent changes after rebasing
2019-11-18 18:10:15 +00:00
Danny Tuppeny f3be1d9d95 Add emulatorID field to devices in daemon (#34794)
* Add emulatorId to Android and iOS emulator devices

* Update docs

* Review tweaks

* Add tests for AndroidConsole for getting avd names

* Remove unused import

* Remove duplicated header

* Fix imports
2019-06-26 16:39:23 +01:00
Danny Tuppeny d9983e1be7 Add category/platformType to emulators (#34721) 2019-06-19 17:10:39 +01:00
Jonah Williams 5c52498d4e Add device category, ephemeral, platformType for daemon (#33990) 2019-06-18 15:23:14 -07:00
Danny Tuppeny d2e6ab69a2 Increase daemon protocol version for getSupportedPlatforms (#33980) 2019-06-07 07:48:27 +01:00
Jonah Williams f38ee15286 add daemon command to enumerate supported platforms (#33472) 2019-05-30 10:14:23 -07:00
Danny Tuppeny 783d80d799 Add a note about events coming from the server (#31419) 2019-04-22 17:36:07 +01:00
Christopher Fujino eaf058d81d Add flutter attach documentation (#31279)
* add attach.md document
2019-04-19 08:50:30 -07:00
Devon Carew 086fd993c6 add daemon.log to the daemon spec (#31273)
* add daemon.log to the daemon spec

* mention use in flutter run --machine
2019-04-18 20:07:52 -07:00
Devon Carew d075d647c3 remove the unused hintMessage and hintId fields from the reload results (#31267) 2019-04-18 11:00:54 -07:00
Jonah Williams 23d38901ef Pass method used to start flutter application (#27812) 2019-02-11 18:05:23 -08:00
Danny Tuppeny a02f9d501b Allow passing a restart reason through to analytics (#21983)
* Allow passing a restart reason through to analytics

* Update to avoid overlaps with other code

* Remove TODO as this is the real live value

* Improve formatting + constant name
2018-10-10 10:23:32 +01:00
Ian Hickson 6d134e0c86 Animation API improvements (#21540) 2018-09-23 00:43:05 -07:00
Danny Tuppeny 7fc9165e4e Add a detach command to detach without terminating (#21490)
* Add a detach command to detach without terminating (#21376)

* Add a detach command to detach without terminating

Fixes #21154.

* Bump protocol version for app.detach

* Tweak to detach/quit text

* Change logPrefix to named param

* Fix the text that the devicelab attach test looks for
2018-09-06 15:26:55 +01:00
Jonah Williams 2c1d12d4f7 Revert "Add a detach command to detach without terminating" (#21464) 2018-09-05 18:03:43 -07:00
Danny Tuppeny eb9c975eb0 Add a detach command to detach without terminating (#21376)
* Add a detach command to detach without terminating

Fixes #21154.

* Bump protocol version for app.detach

* Tweak to detach/quit text

* Change logPrefix to named param
2018-09-05 19:31:21 +01:00
Danny Tuppeny ed9afbbc72 Add --machine support for flutter attach (#19077)
* Extract some of startApp into a reusable method

* Get basic attach --machine working

* Attach --machine tweaks

Move validation to validate method and create daemon early so we get the startup event before trying to get a connection.

* Bump daemon version so we know whether it's valid to flutter attach

* Tweak output text

* Swap package imports for relative

* Review tweaks (naming, formatting, typedefs)

* Separate arguments from process spawning

This will make calling attach easier

* Add a basic test for flutter attach --machine

* Fix crash if port unforward modifies the list of forwarded ports

* Add a no-op port forwarder for flutter-tester

* Switch to using BasicProject instead of our own inline code

* Fix expectation in test now we have a portForwarder

* Remove stale TODO (this is done)

* Tweak formatting

* Change some Completers to void to fix Dart 2 issues
2018-07-19 13:38:29 +01:00
Danny Tuppeny 437731409e Remove note about port being removed (#19263)
Some things require a port (eg. `flutter attach`) and will forward it on to the device, so we shouldn't force clients to parse it out of a uri.
2018-07-11 15:22:51 +01:00
Danny Tuppeny 108da01310 Remove the 'app' domain from flutter daemon (#18873)
* Remove the 'app' domain from flutter daemon

By default the daemon won't register the "app" domain, you need to opt-in (which the 'run' command does, as well as the tests for the app functionality).

Fixes #6658.

* Tweak text

* Put restart/callServiceExtension/stop back into daemon mode

* Add a comment about removing discoverApps
2018-06-28 16:22:02 +01:00
Danny Tuppeny 7e4038fe27 Expose emulator creation to daemon API (#18905)
* Fix typo

* Add emulator.create to Daemon API

* Swap order of daemon changelog entries
2018-06-28 14:10:26 +01:00
Danny Tuppeny ed05e933f4 Minor flutter daemon doc fixes (#18447)
* Fix anchors for GitHub

For some reason GitHub lowercases the anchor names so although these links all work in the local VS Code preview, the ones with capitals didn't work in the GitHub UI!

* Fix some typos
2018-06-13 16:01:23 +01:00
Danny Tuppeny 199d945b9e Add emulators to docs (#18231) 2018-06-06 19:06:17 +01:00
Danny Tuppeny b9392ed220 Update flutter daemon docs (#18199)
* Document flutter run --machine at the bottom of the doc
* Be consistent with prefixes
2018-06-05 16:21:50 +01:00