Zachary Anderson
82a4ba40bb
[flutter_tool] Send analytics command before the command runs ( #36490 )
2019-07-18 18:05:44 -07:00
Todd Volkert
adb2aeebe3
Ensure that cache dirs and files have appropriate permissions ( #28090 )
...
This is a partial re-application of #24669 , which was
reverted due to Fuchsia breakages.
https://github.com/flutter/flutter/issues/24413
2019-07-18 15:29:06 -07:00
Emmanuel Garcia
5a34e7981e
Catch exceptions thrown by runChecked* when possible ( #36109 )
2019-07-18 10:45:37 -07:00
Jonah Williams
757b5365fa
Add missing test case for Usage ( #36379 )
2019-07-18 10:41:13 -07:00
Jonah Williams
1957c66300
add testing to screenshot and printDetails method ( #36418 )
2019-07-18 10:40:40 -07:00
Christopher Fujino
42a9c031e5
Fix invocations of ideviceinstaller not passing DYLD_LIBRARY_PATH ( #36327 )
...
* add failing tests
* fix tests
* be more specific with try-catch
* add further mocking to get tests to pass again
* fix analyzer failure
2019-07-17 13:44:49 -07:00
xster
03220cacd1
Make sure add-to-app build bundle from outer xcodebuild/gradlew sends analytics ( #36122 )
2019-07-17 11:17:04 -07:00
Todd Volkert
57efab6e58
FakeHttpClientResponse improvements ( #36289 )
...
Update `FakeHttpClientResponse` to be impervious to Dart SDK
changes to the `HttpClientResponse` stream type (between `List<int>`
and `Uint8List`).
2019-07-17 08:42:12 -07:00
Jonah Williams
36c37ccab5
Implement feature flag system for flutter tools ( #36138 )
2019-07-16 17:33:28 -07:00
Todd Volkert
aa9a115181
Move reporting files to reporting/ ( #36017 )
...
Slight cleanup of file locations in flutter_tools
to make it easier to see which files are responsible
for data reporting.
2019-07-16 13:21:06 -07:00
Christopher Fujino
540c747656
Revert "Keep LLDB connection to iOS device alive while running from CLI. ( #36194 )" ( #36293 )
...
This reverts commit 5501a1c1e7
.
2019-07-16 12:34:49 -07:00
sjindel-google
5501a1c1e7
Keep LLDB connection to iOS device alive while running from CLI. ( #36194 )
...
## Description
Instead of detaching from the spawned App process on the device immediately, keep the LLDB client connection open (in autopilot mode) until the App quits or the server connection is lost.
This replicates the behavior of Xcode, which also keeps a debugger attached to the App after launching it.
## Tests
This change will be covered by all running benchmarks (which are launched via "flutter run"/"flutter drive"), and probably be covered by all tests as well.
I also tested the workflow locally -- including cases where the App or Flutter CLI is terminated first.
## Breaking Change
I don't believe this should introduce any breaking changes. The LLDB client automatically exits when the app dies or the device is disconnected, so there shouldn't even be any user-visible changes to the behavior of the tool (besides the output of "-v").
2019-07-16 19:15:15 +02:00
Zachary Anderson
fa65ddf51d
[flutter_tool] Allow analytics without a terminal attached ( #36208 )
2019-07-16 09:48:49 -07:00
chunhtai
1166015931
Enable widget load assets in its own package in test ( #35991 )
2019-07-16 09:47:42 -07:00
Jonah Williams
b257c33b69
Use DeviceManager instead of device to determine if device supports project ( #36213 )
2019-07-15 16:10:39 -07:00
Jonah Williams
6b17840cbf
Don't try to flutterExit if isolate is still paused ( #36199 )
2019-07-15 15:44:58 -07:00
Christopher Fujino
102ab1e6d9
Reland bundle ios deps ( #36093 )
...
This updates the flutter tool cache to download binary files for ideviceinstaller, ios-deploy, libimobiledevice, and dynamically linked dependencies from Flutter's GCP bucket.
2019-07-15 09:22:29 -07:00
Jonah Williams
e3ee5c6bbb
Add better handling of JSON-RPC exception ( #36082 )
2019-07-13 16:02:09 -07:00
Ian Hickson
d919e694b8
Move tools tests into a general.shard directory in preparation to changing how we shard tools tests ( #36108 )
2019-07-13 11:51:44 -07:00
Zachary Anderson
13382f41c0
[flutter_tool] Catch a yaml parse failure during project creation ( #36105 )
2019-07-12 23:24:04 -07:00
Christopher Fujino
e91822da24
Revert "Bundle ios dependencies ( #34669 )" ( #36071 )
...
This reverts commit 14d489adc5
.
2019-07-12 09:03:34 -07:00
Jonah Williams
7b150f81c5
move reload and restart handling into terminal ( #35846 )
2019-07-12 08:48:14 -07:00
Christopher Fujino
14d489adc5
Bundle ios dependencies ( #34669 )
...
This updates the flutter tool to cache binary files for ideviceinstaller, ios-deploy, libimobiledevice, and dynamically linked dependencies from Flutter's GCP bucket.
2019-07-12 08:36:18 -07:00
Jonah Williams
e91b98a41f
Add initial implementation of flutter assemble ( #32816 )
2019-07-11 16:53:17 -07:00
Jonah Williams
adf45d1e40
Refactor signal and command line handler from resident runner ( #35406 )
2019-07-09 13:10:26 -07:00
chunhtai
a76e39f984
Rendering errors with root causes in the widget layer should have a reference to the widget ( #32511 )
2019-07-09 10:18:30 -07:00
Alexandre Ardhuin
b041a589c8
enable lint prefer_if_null_operators ( #35745 )
2019-07-09 10:53:35 +02:00
Jenn Magder
559c9982dd
UIApplicationLaunchOptionsKey -> UIApplication.LaunchOptionsKey ( #35763 )
2019-07-08 16:55:27 -07:00
Jonah Williams
1e26c41f17
Remove web, fuchsia, and unsupported devices from all ( #35709 )
2019-07-08 15:58:38 -07:00
Jonah Williams
34467289d6
Add timer checking and Fake http client to testbed ( #35392 )
2019-07-08 10:04:48 -07:00
Jonah Williams
e6a7419603
disable a test case in xcode_backend.sh ( #35708 )
2019-07-08 08:04:48 -07:00
Todd Volkert
3bf91b5436
Prepare for Socket implements Stream<Uint8List> ( #35646 )
...
An upcoming change in the Dart SDK changes `Socket` from
implementing `Stream<List<int>>` to implementing `Stream<Uint8List>`.
This forwards-compatible change in flutter_tools prepares for that
Dart SDK change.
https://github.com/dart-lang/sdk/issues/36900
2019-07-05 12:59:32 -07:00
Jonah Williams
b8597f0a7e
Move usage flutter create tests into memory filesystem. ( #35160 )
2019-07-03 10:49:33 -07:00
Todd Volkert
4cd12fc8b7
Mark update-packages as non-experimental ( #35467 )
...
Marking it as experimental was breaking tests and packaging
scripts on stable branches.
2019-07-02 18:24:25 -07:00
Jonah Williams
556e374e02
fix default artifacts to exclude ios and android ( #35303 )
2019-07-02 17:40:55 -07:00
Alexandre Ardhuin
758009ba70
more ui-as-code ( #35393 )
...
* more ui-as-code
* address review comments
2019-07-02 21:11:56 +02:00
stuartmorgan
d6bd1c0584
Add --target support for Windows and Linux ( #34660 )
...
- Adds desktop projects to ApplicationPackageStore
- Plumbs target overrides through the desktop builds
2019-07-01 14:49:34 -07:00
Zachary Anderson
97127730f2
[flutter_tool] Fill in Fuchsia version string ( #34516 )
2019-06-28 12:12:53 -07:00
David Shuckerow
df6e4d4872
Make it possible to override the FLUTTER_TEST env variable ( #34301 )
...
* Make it possible to override the FLUTTER_TEST env variable without unsetting it.
* Switch to using platform instead of Platform.
* Document the bindings, and introduce tests that initialize multiple WidgetsBindings with different environments.
* Add tests for the flutter platform test.
* Add license headers
* Fix lints
* Remove trailing whitespace
* Respond to Jonahs comments
* Respond to Ians comments
* Mock out the HttpServer in flutter_platform_test
* Mock out the HttpServer in flutter_platform_test
* Explain why we mock out the HttpServer in flutter_platform_test
2019-06-28 10:37:27 -07:00
Jonah Williams
a1d3edc446
Twiggle bit to exclude dev and beta from desktop and web ( #35221 )
2019-06-27 19:04:02 -07:00
Jonah Williams
c9b283386b
ensure test isolate is paused before collecting coverage ( #35188 )
2019-06-27 13:50:47 -07:00
Alexandre Ardhuin
919dcf53f3
enable lints prefer_spread_collections and prefer_inlined_adds ( #35189 )
2019-06-27 21:23:16 +02:00
Jonah Williams
a0b2878e76
Make tool coverage collection resilient to sentinel coverage data ( #35186 )
2019-06-27 11:17:58 -07:00
Jonah Williams
8532f4d08e
Allow multi-root web builds ( #34896 )
...
* fix multiroot builds
* remove shout
* add basic test
* Update web_compilation_delegate.dart
* Address review feedback
* Update multiroot_asset_reader_test.dart
* Update multiroot_asset_reader_test.dart
* remove unpassable test
* fix for windows
* facepalm
2019-06-27 06:01:41 -07:00
Todd Volkert
883d6eadcb
More HttpClientResponse implements Stream<Uint8List>
fixes ( #35149 )
...
https://github.com/dart-lang/sdk/issues/36900
2019-06-26 16:56:10 -07:00
Jonah Williams
33ad5bac34
Attempt to enable tool coverage redux ( #35074 )
2019-06-26 16:02:49 -07:00
Dan Field
bb79ff3b49
More shards ( #34877 )
...
Shard tool_tests
2019-06-26 13:55:16 -07:00
Lau Ching Jun
c8cefce300
Move findTargetDevices to DeviceManager ( #35084 )
...
This allows us to override the behavior internally.
2019-06-26 10:09:14 -07: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
Alexandre Ardhuin
c7408be181
prepare for lint update of prefer_final_fields ( #35059 )
2019-06-25 19:39:34 +02:00