Commit Graph

301 Commits

Author SHA1 Message Date
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