Commit graph

110 commits

Author SHA1 Message Date
Devon Carew 2a33e3f0c0 make flutter upgrade less verbose (#3237)
* more terse flutter upgrade

* fix an issue when updating and the engine update code has changed

* call flutter precache; add a --no-color hidden option

* fix a lint related to getters/setters
2016-04-11 11:17:09 -07:00
stevemessick 8847b86681 Add validity checks to create (#3215)
* Add validity checks to create

* Adjust indent
2016-04-08 20:37:50 -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 653566dd23 simplify toolchain setup 2016-04-04 13:10:56 -07:00
Devon Carew fe37825fd5 run pub with --no-package-symlinks 2016-03-29 19:02:14 -07:00
Yegor Jbanov 28b5186746 [driver] propagate exit code from package:test
Driver returns exit code 0 even when tests fail. This commit fixes it by
propagating the exit code set by `package:test`.
2016-03-28 16:19:20 -07:00
Chinmay Garde c8377d7428 Dont differentiate between ios_arm and ios_x64 in flutter_tools
All artifacts for iOS are universal.
2016-03-21 14:41:26 -07:00
Devon Carew f1cdf6df39 refactor; fix apk warning 2016-03-21 09:24:56 -07:00
Ian Hickson a7016062bc Improve flutter create help text. 2016-03-20 20:06:30 -07:00
Devon Carew 99b70dab62 handle android n in the android sdk 2016-03-17 15:30:47 -07:00
John McCutchan 83e6ee36a0 Sniff service protocol port from device 2016-03-17 11:44:16 -07:00
Devon Carew f8374cd966 consolidate build commands under the 'build' command 2016-03-17 07:22:41 -07:00
Hixie 797e27edd3 Add @override annotations to flutter framework 2016-03-14 14:02:26 -07:00
Adam Barth e2744e9a30 Stop using a prebuilt APK
Instead, require an AndroidManifest.xml and always build an APK.

Fixes #2517
2016-03-14 13:32:00 -07:00
Ian Hickson d745e20853 Even more types 2016-03-14 09:41:54 -07:00
Devon Carew e939b152af rename the platform constants 2016-03-12 11:08:21 -08:00
Hixie e6b82b6fa9 flutter analyze test
Test that flutter analyze catches no error if two imported libraries
have the same name.

Also, make tests know how to find the flutter root and fix style in one
test to be consistent with the rest of the file.
2016-03-11 14:26:38 -08:00
Devon Carew 5ad6a57007 remove some references to DeviceStore 2016-03-11 11:25:03 -08:00
Devon Carew 780e4e6212 move the analysis_options to a file 2016-03-10 13:47:20 -08:00
Yegor c2b175d1db Merge pull request #2575 from yjbanov/ios-device-discovery
[ios] look for the best available devicetype/runtime when booting
2016-03-10 11:25:56 -08:00
Yegor Jbanov 9383466dd5 [ios] look for the best available devicetype/runtime when booting 2016-03-10 11:04:02 -08:00
Hixie c7339de6bc Enable always_declare_return_types lint
And fix a zillion omissions this uncovered.
2016-03-09 17:57:39 -08:00
John McCutchan 9cb7001a39 Add ServiceProtocolDiscovery 2016-03-08 15:13:48 -08:00
Devon Carew 52efc7fb68 implement --watch for flutter analyze 2016-03-07 13:46:42 -08:00
Steve Messick 913315bc87 Improve the error message when a target is specified but not found.
https://github.com/flutter/flutter/issues/2368
2016-03-07 08:53:33 -08:00
Steve Messick cea21fb7b1 Merge remote-tracking branch 'upstream/master' 2016-03-04 14:38:55 -08:00
Steve Messick 2e878746a3 Improve message when target not found 2016-03-04 14:36:32 -08:00
Devon Carew c1caa26989 fix a mac test 2016-03-04 13:10:51 -08:00
Devon Carew 8283ce87e2 fix the stop command tests 2016-03-03 13:58:49 -08:00
Devon Carew 022047f5eb remove the isConnected() method from device 2016-02-26 13:23:48 -08:00
Yegor Jbanov 677e63b79d decouple flutter drive from flutter start
flutter start's method of finding devices to run the app on is not suitable for flutter drive.

This commit also refactors several tool services to allow mocking in unit tests.
2016-02-26 10:18:24 -08:00
Devon Carew 37290d866e additional validation for device commands 2016-02-24 11:11:23 -08:00
Yegor 3301ae7d09 Merge pull request #2097 from yjbanov/flutter-driver-create
"flutter create" can generate a basic driver test; "flutter drive" gains new options
2016-02-22 17:18:54 -08:00
yjbanov 278630e688 "flutter create" can generate a basic driver test
"flutter create" adds option `--with-driver-test` that adds
dependencies to `flutter_driver` in `pubspec.yaml` and creates
a basic driver test runnable via `flutter drive
--target=test_driver/e2e.dart`

"flutter drive" new options:

- `--keep-app-running` tells the driver to not stop the app after tests
  are done
- `--use-existing-app` tells the driver to not start a new app but use
  an already running instance
2016-02-22 17:10:31 -08:00
Devon Carew 3463d89cf6 remove iosSimulator field from ApplicationPackageStore 2016-02-22 12:37:08 -08:00
Devon Carew 67046f933d add the ability to start and stop device polling 2016-02-20 22:00:11 -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
Chinmay Garde 9ed4e417d0 Fix flutter_tools tests 2016-02-19 11:48:39 -08:00
Chinmay Garde df946dd875 iOS: Treat the initial Info.plist string as a mustache template.
Use the project name to initialize the bundle name and identifier
2016-02-19 11:37:05 -08:00
Devon Carew d5a6fceee5 add a summary option to the doctor class 2016-02-17 09:33:45 -08:00
Devon Carew 7ae6f7f391 make the ios development path less mandatory 2016-02-17 00:38:47 -08:00
Devon Carew cc72bbc7ec rename list->devices, start->run 2016-02-13 23:50:20 -08:00
Devon Carew dcf0b7bae6 allow any android sdk version 2016-02-13 14:37:41 -08:00
Devon Carew 2dbceafbc6 introduce globals scoped to the app's context 2016-02-09 22:03:13 -08:00
Eric Seidel 91c2255894 Skip flutter_simple in create_test on Mac for now
Returns 69 instead of 0 in the `create --out` part.
https://github.com/flutter/flutter/issues/1709

@devoncarew
2016-02-09 05:26:21 -08:00
Devon Carew 9e6d45cb03 general refactoring around device management
remove the device factory methods as well as the device cache
2016-02-06 11:49:48 -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
Collin Jackson 3094348ad4 Merge pull request #1483 from collinjackson/engine_safety
In addition to checking for the existence of the engine, ensure that it’s the correct version
2016-02-01 16:10:03 -08:00
Collin Jackson beaffecb7b fix #1443 ensure engine is the correct version 2016-02-01 13:11:30 -08:00
Devon Carew 78e05884ed refactor flutter logs 2016-02-01 12:56:46 -08:00