Commit graph

340 commits

Author SHA1 Message Date
Todd Volkert 1c43c4e24d Bump package:file version to 1.0.0 (#7371) 2017-01-05 18:42:57 -08:00
Todd Volkert 29a88cf817 Bump path to 1.4.0 and meta to 1.0.4 (#7369) 2017-01-05 16:44:27 -08:00
Todd Volkert c9e7782adb Add --record-to option to flutter tools (#7136)
* Add --record-to option to flutter tools

This option will cause flutter tools to record all process
invocations that occur and serialize their stdout and stderr
to files that get added to a "recording" ZIP file. This is
part of an effort to be able to test flutter tools in a hermetic
environment.

As a side-benefit, this recording should prove an excellent
attachment to any bug report.
2016-12-02 13:39:54 -08:00
Ian Hickson 06ca1b3326 Revert "Revert "update vm_service_client to 0.2.2+4"" (#6919) 2016-11-23 08:50:55 -08:00
Phil Quitslund 33107212ae Bump Dart SDK to 1.21.0-dev.9.0. (#6990)
* Fixes Analysis Server regression (https://github.com/dart-lang/sdk/issues/27856).
* Adds `front_end` dependency override (required by analyzer).
2016-11-22 14:19:40 -08:00
Adam Barth 49fa3f4933 Revert "update vm_service_client to 0.2.2+4" (#6918) 2016-11-17 19:54:53 -08:00
Yegor 05fdc2910b update vm_service_client to 0.2.2+4 (#6917) 2016-11-17 17:50:47 -08:00
Hans Muller 861492d6f4 Changed vm_service_client version back to 0.2.2+2 (#6909) 2016-11-17 15:33:45 -08:00
Phil Quitslund dbacf77519 Bump json_schema version. (#6900)
Fixes the `package:drudge` spam.

See: #6840
2016-11-16 16:35:24 -08:00
Phil Quitslund 3edf44fd99 Bump Dart SDK to 1.21.0 dev.6.0. (#6861)
* Bump Dart SDK to `1.21.0-dev.6.0`.

* Bump `json_schema` version.
2016-11-16 09:45:02 -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 6331b6c8b5 revert args to 0.13.6 (#6765) 2016-11-08 17:15:11 -05:00
Dan Rubel cd65b7902c switch to package:mustache (#6273) 2016-10-11 17:44:12 -04:00
Ian Hickson dd34b28f7d Upgrade web_socket_channel dependency. (#6153)
Turns out the lowest version allowed here isn't compatible with
flutter_tools' usage of this package.
2016-09-30 12:50:05 -07: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
Yegor 1ba1562293 move CI tests into the main repo (#5758) 2016-09-14 13:22:53 -07:00
Adam Barth 157ffaac35 Update Dart package dependencies (#5832) 2016-09-12 16:00:12 -07: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
Phil Quitslund 0fe82c3a6f Update Dart SDK to 1.19.0-dev.4.0. (#5329) 2016-08-10 16:21:58 -07:00
Chris Bracken a1fa7c94e3 Support passing a custom coverage formatter to finalizeCoverage() (#5208) 2016-08-03 16:58:47 -07:00
Phil Quitslund 408e4240d0 Lint updates in flutter analysis options. (#5130)
* Adds `empty_statements` (new in `0.1.21`).
* (Re)enables `iterable_contains_unrelated_type` (fixed in linter#245).
2016-07-28 22:50:40 -07:00
pq 13c3f9d946 Update Dart (1.19.0-dev.0.0) and analyzer (0.27.4-alpha.19). 2016-07-27 10:44:44 -07:00
Yegor 2f77a07940 log the contents of .packages and pubspec.lock on buildbots (#4989) 2016-07-21 13:27:49 -07:00
pq cb4f01ae3d Bump Dart SDK to 1.18.0-dev.4.0.
Last dev push for `1.18`.
2016-07-06 14:43:40 -07:00
pq a417786d77 Update to latest analyzer (w/ cleanup).
Bye-bye `@protected `trampolines! :)
2016-06-30 10:39:45 -07:00
Adam Barth f20546a1d7 Remove drudge spam (#4724)
Stop spamming the console about drudge by pinning an earlier version of
json_scheme that doesn't spam.
2016-06-23 15:37:51 -07:00
Adam Barth 7b99ecff35 Use relative paths in lcov.info (#4722)
Using relative paths makes it easier to share lcov.info files across machines.
2016-06-23 15:29:54 -07:00
Phil Quitslund 55b51ee549 Merge pull request #4697 from pq/analyzer_0.27.4-alpha.14
Update to latest analyzer (0.27.4-alpha.14) and misc. analysis fixes.
2016-06-23 10:03:49 -07:00
Adam Barth ed2c24ba2b Add coveralls support to Travis (#4690)
This patch causes us to upload a coverage report to coveralls.io.
2016-06-22 14:47:41 -07:00
pq 352e2f573b Update to latest analyzer (0.27.4-alpha.14) and misc. analysis fixes.
* brings in analyzer version (`0.27.4-alpha.14`) corresponding to current Dart SDK (`1.18.0-dev.2.0`).
* updates analysis to use prefered API for embedder URI resolution
* adds trampolines to `State` and `StatelessWidget` to allow for warning-free within-library @protected access (needed since we closed off access to @protected closures from outside subclasses).
* turns off cache dependency tracking for analysis (in DDC this amounted to a 10% speed improvement).
2016-06-22 14:34:30 -07:00
Adam Barth b094fa6dd3 Add support for --coverage to flutter test (#4679)
We need https://github.com/dart-lang/coverage/issues/100 to be fixed before
this will be useful.

Fixes #2342
2016-06-22 12:22:01 -07:00
Devon Carew 415324f2f0 bump our dep on the test package (#4625)
* bump out dep on the test package

* add other pubspecs
2016-06-19 08:10:03 -07:00
Jason Simmons d89823be2a Remove packages/flx and the FLX code signing scheme (#4612) 2016-06-17 12:35:30 -07:00
pq 3e9067a4ec Dead code and switch cleanup (continued).
Prep to get us ready to pull in a new dev SDK and bump our analyzer DEP.

* updates `crypto` (required by fresh analyzer)
* fixes newly flagged dead code warnings
* fixes switches that fall through and don't return
2016-06-16 09:45:37 -07:00
pq 985a7b91cf Update analyzer dep to 0.27.4-alpha.9
Update analyzer dep to 0.27.4-alpha.9 to enjoy analyzer perf improvements (https://codereview.chromium.org/2011183004/) (and keep in sync with the SDK).

(This is a revisit to https://github.com/flutter/flutter/pull/4253.)
2016-05-31 06:59:56 -07:00
Adam Barth fde55a6f6a Update vector_math (#4201)
The new version has an API change. Also, up our SDK requirements to be a
bit more realistic.
2016-05-26 09:49:09 -07:00
Adam Barth c69cff9428 Update test package (#4198) 2016-05-25 17:45:23 -07:00
pq addc888926 Update to new analyzer and linter.
Notably, this will allow us to play with

* the fixed `public_member_api_docs` that now checks for documented getters when checking setters (https://github.com/dart-lang/linter/issues/237), and
* the new `comment_references` lint that ensures identifiers referenced in docs are in scope (https://github.com/dart-lang/linter/issues/240).
2016-05-18 11:47:44 -07:00
pq 7163cf115d Revert "Update to new analyzer and linter."
This reverts commit f91cf1c450.
2016-05-18 11:45:25 -07:00
pq f91cf1c450 Update to new analyzer and linter.
Notably, this will allow us to play with

* the fixed `public_member_api_docs` that now checks for documented getters when checking setters (https://github.com/dart-lang/linter/issues/237), and
* the new `comment_references` lint that ensures identifiers referenced in docs are in scope (https://github.com/dart-lang/linter/issues/240).
2016-05-18 11:44:43 -07:00
Devon Carew 483922d15c allow per-command analytics suppression (#3919)
* allow per-command analytics suppression

* rev the usage package dep
2016-05-15 20:06:27 -07:00
pq 71203e9a89 Analyzer dep commentary fix. 2016-05-05 12:15:26 -07:00
pq a59a713f75 Analysis re-work to use analyzer APIs.
Introduces a new Dart analysis wrapper that works directly with the analyzer API (in favor of shelling out to a separate process).

Some consequences:

  * we no longer need to fear parts (simplifying our dart file gathering)
  * we can filter by error code (when needed), rather than by error strings
  * no more IO scraping
  * no need to generate `main()` or to run with `--package-warnings`
  * we now specify an analyzer (and linter) version in the pubspec (we’ll want to make sure this doesn’t diverge too far from the analyzer shipped with the SDK but it does give us some room to play with experimental builds)
  * no more (re)scanning of error source files (and so no more source cache)
  * should generally be a bit simpler and easier to maintain
  * runs a bit faster :)
2016-05-05 12:08:58 -07:00
Devon Carew 66c868e492 Update pubspec.yaml
Pick up a bug fix to the `usage` package.
2016-04-30 08:19:36 -07:00
Devon Carew 50b1b16db6 rev test to 0.12.13+1 to support 1.17.0-dev dart sdks (#3613) 2016-04-28 12:56:55 -07:00
Devon Carew adac927501 add google analytics to flutter_tools (#3523)
* add google analytics

* send in the run target type

* track device type targets

* use the real GA code

* review comments

* rev to usage 2.0

* rev to 2.2.0 of usage; add tests

* review comments
2016-04-26 16:25:11 -07:00
Jason Simmons 8451b669c8 Collect trace data through the observatory HTTP interface (#3393) 2016-04-19 10:38:49 -07:00
Adam Barth d9b73a2b7a Improve docs about why we pin analyzer (#3254) 2016-04-12 12:42:14 -07:00
Adam Barth 65b36f131d Remove pub package version skew (#3212)
We need to pin the version of package:analyzer we use to avoid version skew
within our project.
2016-04-08 10:08:13 -07:00
Jason Simmons 9d022ed26d Add a command that can capture a Skia picture of a Flutter frame and send it to a file or skiaserve debugger (#3165) 2016-04-07 12:33:11 -07:00
Devon Carew 9a4c2c681f add a dev/dartdoc.dart script to generate docs for the packages/ packages
* add a dev/dartdoc.dart script to generate docs for the packages/ packages

* remove description

* rename readme

* change to using --include-external

* move docs to dev/docs
2016-04-05 12:33:12 -07:00
Devon Carew 18d29583d0 pubspec normalization; remove den 2016-04-01 08:33:22 -07:00
Devon Carew d5cccf5cd6 rev mockito; remove deprecated uses 2016-03-30 09:10:50 -07:00
Adam Barth 2e062dfab4 Use --packages rather than --package-root
The .packages file is replacing the packages directory of symlinks.
2016-03-28 15:01:25 -07:00
Devon Carew 7b694ddd42 upgrade to test 0.12.13 2016-03-27 13:36:01 -07:00
Jason Simmons c2b4ac9c3c Validate flutter.yaml against a JSON schema 2016-03-24 17:49:23 -07:00
Ian Hickson 87eb34240b Port to crypto 0.9.2 2016-03-22 21:54:34 -07:00
Ian Hickson a7016062bc Improve flutter create help text. 2016-03-20 20:06:30 -07:00
Adam Barth 41cdd600df Remove test dependency from package:flutter
The mojo_sdk has cleaned up its dependencies, so we no longer need to depend on
package:test from package:flutter.
2016-03-03 12:26:58 -08:00
Adam Barth 96ec5316b8 Switch from hack_load_vm_file_hook to PlatformPlugin
This patch switches us from using our previous hacking approach to integrating
with package:test to using the new PlatformPlugin interface.
2016-03-03 11:23:36 -08:00
yjbanov a2b1bd4673 "flutter drive" command
Runs a test app and a driver test simultaneously, then stops the app.

Usage:

```
flutter drive --target=/path/to/test/app.dart
```

This command will look for `/path/to/test/app_test.dart` by
convention. We will expand into other ways of discovering tests in the
future.
2016-02-19 18:11:53 -08:00
Devon Carew dcf0b7bae6 allow any android sdk version 2016-02-13 14:37:41 -08:00
Matt Perry 5d2281b69b 'flutter start' calls 'flutter apk' if necessary.
flutter start no longer depends on a pre-built SkyShell.apk. It builds a
new one, as long as an AndroidManifest.xml exists.

We rebuild the .apk every time either AndroidManifest.xml or
flutter.yaml changes.
2016-02-03 12:21:20 -08:00
Seth Ladd fa91b3ff75 get a bug fix for multi-line command descriptions 2016-01-25 09:28:42 -08:00
Ian Hickson 7151fdd054 Move flutter tests from packages/unit to packages/flutter/test 2015-12-16 08:00:57 -08:00
Hixie 0a6b0f9b0b Always import our packages when analyzing. 2015-12-14 12:56:31 -08:00
Jason Simmons cb6eef70e8 Upgrade the test package (needed by the latest mojo roll) 2015-12-10 16:25:12 -08:00
Adam Barth f41869f639 Update package:test to the latest version 2015-11-30 18:41:10 -08:00
Adam Barth 58f056da68 Pin package:test to an exact revision
We use a number of non-public APIs in the test package, which makes our
dependency quite fragile. This patch pins a specific, known-good version. We
should update to the lastest version in a follow-up patch.
2015-11-24 09:22:11 -08:00
Adam Barth da0a12c611 Rename sky_tools to flutter_tools 2015-11-10 13:20:35 -08:00
Adam Barth 08539b4e4d Rewire the pubspecs to use local paths
Using local paths ensures that each package sees each other package at HEAD.
2015-11-06 22:46:52 -08:00
Devon Carew a469020983 add a flutter.yaml file to the init template 2015-11-06 20:57:35 -08:00
Adam Barth 113500206a Remove the --http option 2015-11-06 20:17:24 -08:00
Adam Barth 01a6356230 Rev pubspec 2015-11-04 14:26:07 -08:00
Matt Perry 4ba8a7f077 Seed the RNG before signing the package. 2015-11-04 14:08:24 -05:00
Adam Barth 76c54f148b Rev pubspec 2015-11-04 09:07:29 -08:00
Matt Perry 071ebda56f Change flutter_tools to version 0.0.34. 2015-11-03 15:41:47 -05:00
Matt Perry 8ab21d7a9c Depend on the new flx 0.0.5 and remove use of deprecated KeyPair. 2015-11-03 15:28:55 -05:00
Hixie 466a91ab41 fix the 'dart:profiler' bug
...by requiring a new version of analyzer.

Also, when the subprocess is terminated unexpectedly, report the actual
problem in more detail.
2015-11-02 13:11:19 -08:00
Hixie fe5f98e33b Rev sky_tools to 0.0.32. 2015-11-02 11:25:58 -08:00
Devon Carew 70e20153ab use stack_trace to create more readable exception traces 2015-11-02 00:20:22 -08:00
Adam Barth 492090360a Remove some unnessary dependencies 2015-10-31 12:43:26 -07:00
Adam Barth 7115ff2674 Rev pub package 2015-10-30 10:08:21 -07:00
Adam Barth 64c96e0dfa Stop requiring customers to use a dev SDK 2015-10-29 16:17:13 -07:00
Hixie 184ab7c9aa Put an upper bound on flx dependency
In case we run into trouble, this at least gives us an escape hatch.
2015-10-29 14:35:55 -07:00
Hixie f069ac2427 Loosen the sky_tools dependency on flx 2015-10-29 14:33:30 -07:00
Hixie 7aa05d4bce Release 0.0.30. 2015-10-29 14:24:35 -07:00
Matt Perry cbd4931579 Merge pull request #140 from mpcomplete/pubspec
Depend on exact version of flx package so I can make breaking changes.
2015-10-29 16:44:00 -04:00
Matt Perry 30ad6ebaae Depend on exact version of flx package so I can make breaking changes. 2015-10-29 16:40:13 -04:00
Devon Carew 0da7c7c6ac upgrade test 2015-10-29 11:42:02 -07:00
Devon Carew b15bcc5c64 0.0.29 2015-10-29 11:32:54 -07:00
Devon Carew 494d1e0140 verify that we're running from the root of a project
remove an unused import

review comments

rename st --> stack
2015-10-29 11:30:44 -07:00
Hixie 672976aa0a Rev the Dart SDK
We also have to require a newer test package, since the old one depends
on a version of the analyzer that uses dart:profiler, which is gone and
replaced by dart:developer.
2015-10-28 09:58:11 -07:00
Matt Perry a0886508c9 Update flutter_tools to version 0.0.27. 2015-10-26 15:29:44 -04:00
Matt Perry 828b861fce Change signing code to use shared flx package. 2015-10-26 15:14:01 -04:00
Devon Carew 5dbeb8f018 fix tests on windows
remove a runInShell arg on windows when launching pub
2015-10-23 22:44:56 -07:00
Chinmay Garde 6b2d6fdc8c Update pubspec and changelog for 0.0.26 2015-10-23 14:54:03 -07:00
Nathan Kerr 24fe7efa28 Don't rely on external shasum program to calculate sum of the APK. 2015-10-23 09:30:03 -07:00
Devon Carew d4940c5cd4 set a min. dep of sdk 1.13 2015-10-20 19:01:05 -07:00
Matt Perry b53e726404 Update flutter_tools version to 0.0.25. 2015-10-19 16:33:54 -04:00
Matt Perry b458935b84 Support signing flx packages with ECDSA key pair
Adds a --private-key option to the build command, which specifies an ECDSA
private key. When this is provided along with a manifest, the manifest is
prepended to the .flx package and signed with the private key. The manifest
also includes a SHA-256 hash of the zipped content portion of the .flx package.

This is used by the Flutter updater package, to verify that updates are
from the right publisher.
2015-10-19 16:08:53 -04:00
Devon Carew 1999db2973 0.0.24 2015-10-18 12:37:59 -07:00
Adam Barth db6a7abdca Rev pub spec 2015-10-14 15:26:37 -07:00
Adam Barth abe69c7f06 Rev pub spec 2015-10-14 15:19:19 -07:00
Adam Barth 4477f7255a Rev pub package 2015-10-13 16:57:59 -07:00
Adam Barth ca909c9252 Rev pub package 2015-10-12 01:38:09 -07:00
Adam Barth a157e0eac0 Rev pub package 2015-10-12 01:06:20 -07:00
Adam Barth 9148e1779f Expose main via executable.dart
Expose the main entry point for the tools via the library lets us run the tools
from the Flutter package, which simplifies the setup for end developers because
they don't need to declare a dependency on sky_tools directly.
2015-10-10 00:15:21 -07:00
Devon Carew 15cba8f2eb rev the pubspec version 2015-10-06 14:35:18 -07:00
Chinmay Garde ad155b23a5 Update pubspec revision to 0.0.16 2015-10-06 10:53:29 -07:00
James Robinson 206104b820 Update mojo_run to no longer embed a window manager
sky_viewer.mojo no longer needs a window manager embedding as of
sky_engine 0.0.27, so this updates the sky_tools run_mojo command so it works
again. This really should be expressed in the pubspec dependencies to avoid
broken combinations but that needs to happen on the sky side.
2015-09-24 12:26:11 -07:00
Adam Barth a49120c667 Rev pub package 2015-09-23 10:34:53 -07:00
Adam Barth 88a5cf95d2 Rev pub package 2015-09-21 11:04:40 -07:00
Adam Barth 6626817c86 Rev pub package 2015-09-17 15:26:31 -07:00
Adam Barth cf41a63396 Add a build command to sky_tools
This command will produce an flx package. Currently, this command doesn't work
because we don't have the Flutter compiler downloaded from Google storage yet.
A future patch will make that happen.
2015-09-17 13:37:53 -07:00
Adam Barth e8ef4704ea Rev pub package 2015-09-16 16:48:49 -07:00
Ian Fischer ab441685e2 Test install command 2015-09-11 15:26:55 -07:00
Adam Barth f4ed42e55b Rev pub package 2015-08-20 20:58:18 -07:00
Adam Barth 01afe5a612 Update loadVMFileHook to the real location 2015-08-20 19:46:48 -07:00
Adam Barth f77983baa8 Adds experimental pub run sky_tools:sky_test command
This command uses package:test to run Dart tests with sky_shell.  For this to
work, we need https://github.com/dart-lang/test/tree/hacky-loader-hook to land.
We're also not smart enough to find sky_shell ourselves yet. Instead, we take
the path as input using an environment variable. Eventually, we'll be able to
get the sky_shell executable from package:sky_engine, but we don't yet ship
that executable.
2015-08-19 23:57:41 -07:00
Adam Barth e98f8cc03d Rev pub package 2015-08-12 09:09:00 -07:00
Eric Seidel 83bff59a0a Rev the pubspec version 2015-08-10 17:41:40 -07:00
Devon Carew ef163af495 fix a typo in the pubspec 2015-08-10 17:22:05 -07:00
Devon Carew 1a80827dc8 bump the pubspec version 2015-08-09 23:54:15 -07:00
Devon Carew 987ce972d6 use mustache4dart 2015-08-07 16:42:10 -07:00
Devon Carew cec6288972 merge to master 2015-08-07 14:22:19 -07:00
Devon Carew 2efd13159c add a sky_tools init command to create a new project 2015-08-07 14:20:14 -07:00
Collin Jackson b2679dbc71 Update version
TBR=abarth
2015-08-07 12:58:04 -07:00
Collin Jackson 471d7b4802 Refactor per abarth feedback 2015-08-07 12:52:54 -07:00
Devon Carew 0257cbd12b build sky_tools using travis 2015-08-06 14:25:55 -07:00
Adam Barth 777f0c35d4 Rev pub package 2015-07-31 20:32:27 -07:00
Adam Barth a9e4336a7b Update shelf_static and enable directory listing 2015-07-31 20:27:50 -07:00
Adam Barth 0d57d60650 Rev version 2015-07-29 16:28:05 -07:00
Adam Barth d1f0a8d1e9 Rev package version 2015-07-27 10:04:07 -07:00
Adam Barth 08a64a92f8 Roll version 2015-07-23 21:46:26 -07:00
Adam Barth bb2f54bb91 Use shelf instead of http_server
This patch switches sky_server.dart to use shelf rather than http_server.
2015-07-23 19:51:03 -07:00
Adam Barth 6d8255ff04 Roll version 2015-07-23 00:14:16 -07:00
Adam Barth 386f6c545b Add an environment dependency 2015-07-22 23:45:05 -07:00
Adam Barth 041275e80c Add a basic HTTP server for Sky 2015-07-22 23:42:22 -07:00
Adam Barth 688fb26ae3 Add a first draft of build_sky_apk.dart 2015-07-20 17:22:22 -07:00