Commit graph

20781 commits

Author SHA1 Message Date
keyonghan 74c3ea4d41
Remove deployment to play store for linux case in deploy_gallery test (#67349) 2020-10-05 19:12:02 -07:00
Jonah Williams 734cc1a132
[flutter_tools] work around hostonly test (#67369)
Many of the host only devicelab tests were relying on doctor to download android dependencies.
2020-10-05 18:26:37 -07:00
Michael Goderbauer 42fa4f033b
Migrate some more non-test utils for tests (#67351) 2020-10-05 18:12:04 -07:00
Michael Goderbauer 8998167d0f
Make FlutterErrorDetails.exception non-nullable as documented (#67364) 2020-10-05 18:07:02 -07:00
Jonah Williams 1271447bbe
[flutter_tools] remove globals from FlutterValidator, add documentation and move tests to new file (#67234)
Remove globals from the flutter validator class, and refactor the tests into a separate file. Applies some other cleanup like adding doc comments, and making the doctor validator work like it is documented to work - removing the gen_snapshot check if the artifact is not downloaded instead of downloading all android artifacts.

#47161
2020-10-05 17:58:56 -07:00
Jonah Williams 2474b07768
[flutter_tools] add more docs to cocoapods, move to globals (#67237)
Add some placeholder docs to the Cocoapods validator and Cocoapods class. Add the injected validator to globals. #47161
2020-10-05 17:57:48 -07:00
Ming Lyu (CareF) 277a72e3fe
move resampler to handlePointerEvent and fix complex_layout_android__scroll_smoothness with PointerEvent (#66745) 2020-10-05 17:17:03 -07:00
Jonah Williams c8466d0430
[flutter_tools] handle case where file is deleted by other program or running on read only volume (#66708)
* [flutter_tools] handle case where file is deleted by other program

* Add test cases

* Update file_system.dart

* Update file_system_test.dart

* fix import

* make a static on ErrorHandligFS

* add support for no exit on failure

* address comments

* update doc comment to file or directory
2020-10-05 17:00:07 -07:00
Kate Lovett 64c845c579
Re-land ScaffoldMessenger (#66504) 2020-10-05 18:59:12 -05:00
Jonah Williams 7f2ca5e532
[flutter_tools] refactor engine locator to its own class (#67274)
Make the logic for locating a local engine path part of its own class, add documentation, and update tests to cover engine source path locating too.

#47161
2020-10-05 16:25:47 -07:00
Darren Austin 2f74e30511
Fixed a problem with invalid dates when switching back to calendar mode in the date range picker. (#67159) 2020-10-05 16:05:48 -07:00
Justin McCandless 19b2aea608
InteractiveViewer table example improvements (#67314)
Improving IV table docs due to confusion in an issue.
2020-10-05 16:04:56 -07:00
Darren Austin 01e8c39534
Migrate gestures, physics and scheduler tests to null safety. (#62701) 2020-10-05 16:01:34 -07:00
engine-flutter-autoroll f3d9bf7b7c
Roll Engine from 948dd9702584 to 284ef2217dc9 (2 revisions) (#67358) 2020-10-05 15:57:02 -07:00
Jonah Williams 6180a4c179
[flutter_tools] fix documentation, globals, and todos in the android codebase (#66980)
Cleans up some undocumented classes and re-organizes the AndroidDevices class to avoid the need for the static testing only member. Adds a script for tracking globals.
2020-10-05 15:47:57 -07:00
engine-flutter-autoroll 5339cba6d9
Roll Engine from a8d7d97bef8c to 948dd9702584 (8 revisions) (#67347) 2020-10-05 14:52:03 -07:00
Kratos b1df925b3c
Update documentation for borderWidth/renderBorder on ToggleButtons (#67290) 2020-10-05 14:47:03 -07:00
Jonah Williams 186765b3a7
[flutter_tools] cleanups to plugin test cases (#67242)
Removes usage of global variables, expands documentation, and fixes some formatting inconsistencies. Increased test coverage for android plugin to prove it can determine the embedding version.
2020-10-05 14:45:39 -07:00
Alexandre Ardhuin 304e2c57d2
fix nullability issues (#67306) 2020-10-05 14:37:04 -07:00
Michael Goderbauer c14ab91fe5
Reland "migrate some material files to nullsafety (#67078)" (#67318) 2020-10-05 13:54:36 -07:00
Jonah Williams aa90dbe7f4
[flutter_tools] disable source maps by default for release builds, enable for run and with command line arg (#67331)
Disables source map production by default for build web. For web builds performed as a part of flutter run --release, enable the source maps, or allow force enabling with --source-maps command line flag.

fixes #67328
2020-10-05 13:24:51 -07:00
Abhishek Ghaskata 3a00c4e73c
change the documentation of bottom navigation bar (#67218) 2020-10-05 12:22:03 -07:00
Jenn Magder 6e5f9ed94d
Replace MockProcessManager with FakeProcessManager (#67019) 2020-10-05 12:21:43 -07:00
Kate Lovett b42cf8a75b
[NNBD] Migrate some Cupertino tests (#67086) 2020-10-05 12:17:03 -07:00
Tong Mu 2cdf2f0059
Treat hover events as normal pointer events, and bring them back to Listener (#63834) 2020-10-05 12:12:04 -07:00
Dan Field 2cdec25877
Reland dispose images when done (#67100) (#67177)
* Reland dispose images when done (#67100)

Changes since last time:

- Test for CanvasKit image rendering
  (https://github.com/flutter/flutter/pull/67176)
- Fix CanvasKit dispose impl
  (https://github.com/flutter/engine/pull/21555)
- Update internal google3 customer with a problematic ImageStream
  Listener impl (cl/335091311, cl/335459002)

This reverts commit 473358d93d.
2020-10-05 12:03:27 -07:00
Dan Field ece2f98eb0
Remove goldens request timeout (#67316) 2020-10-05 10:15:09 -07:00
Jonah Williams 3a51bcb5c0
[flutter_tools] delete code related to reload method (#67279)
This functionality ultimately became the single widget reload optimization, which did not require a separate service protocol.
2020-10-05 09:57:10 -07:00
Jonah Williams 21bb29cc68
[flutter_tools] support all engine debugging options with FLUTTER_ENGINE_SWITCH environment variables (#67150)
Allow providing all debugging options to the desktop engine via the FLUTTER_ENGINE_SWITCH_ environment variables.

Fixes #66532
Fixes #46005
Fixes #58882

The underling engine changes have already landed for Windows, macOS, but linux is still in progress
2020-10-05 09:56:48 -07:00
Jonah Williams 4ce2a7aa6d
[flutter_tools] do not use IOSink for writing cache responses (#67231)
Any File-derived IOSink may throw un-handleable async exceptions into the zone, see dart-lang/sdk#43663 . Instead, just write to a file with an append mode.
2020-10-05 09:05:41 -07:00
Danny Tuppeny fdd1bf2944
Handle missing Android SDKs in getEmulators() (#67295) 2020-10-05 08:57:04 -07:00
Tong Mu 5e97eed895
Migrate foundation test to nullsafety (#62616)
* Migrate
2020-10-05 00:42:50 -07:00
engine-flutter-autoroll 8485580bb9
Roll Engine from 04a46cc6567a to a8d7d97bef8c (2 revisions) (#67272) 2020-10-04 11:47:02 -07:00
engine-flutter-autoroll f4bad5b422
04a46cc65 Roll Fuchsia Linux SDK from tz23Y3d1u... to Hq4nRfNIg... (flutter/engine#21590) (#67266) 2020-10-04 09:37:03 -07:00
engine-flutter-autoroll d2046a652e
Roll Engine from 167f45cdd893 to b073d69b3c19 (2 revisions) (#67245) 2020-10-03 22:57:01 -07:00
engine-flutter-autoroll b40d822a27
Roll Engine from a24c7c13925e to 167f45cdd893 (6 revisions) (#67235) 2020-10-03 17:02:03 -07:00
Jonah Williams 63852d2073
Roll flutter engine to a24c7c13925e4e3282f7b85814b70e63782fa057 (#67193)
* Roll flutter engine to a24c7c13925e4e3282f7b85814b70e63782fa057
2020-10-03 09:14:48 -07:00
Jesse 60d7bb2588
Use XDG_CONFIG_HOME dir by default for config files (#66645)
This PR changes the Config class in flutter_tools to use the XDG Base directory specification instead of putting files directly in the user's home directory. If those files are already present in the home directory, they are used instead.
2020-10-03 08:40:09 -07:00
Michael Goderbauer a0a65fc604
Revert "migrate some material files to nullsafety (#67078)" (#67183)
This reverts commit 8143992262.
2020-10-03 04:54:45 -07:00
Michael Goderbauer cbf1e135c4
Migrate non-test files in flutter/test (#67098) 2020-10-02 21:57:04 -07:00
Jonah Williams ddb8177018
[flutter_tools] remove globals from desktop configuration (#67146)
Refactors the desktop devices and workflow to remove unnecessary usage of global variables. This should make it easier to test and continue enhancing the desktop functionality of the tooling

#47161
2020-10-02 21:52:53 -07:00
Jonah Williams ddb01a0c81
[null-safety] add integration tests for sound null safety modes, add support for sound null safety in dart2js (#67171)
Add integration tests to verify that ddc and dart2js can be built and run in sound mode. Updates dart2js compilation to insert a language version comment into the generated entrypoint if necessary.

dart-lang/sdk#42253
2020-10-02 21:52:38 -07:00
Michael Goderbauer 687121d6da
Migrate some tests to null-safety (#67085) 2020-10-02 21:52:02 -07:00
Jonah Williams 1bea512a83
[flutter_tools] flutter logs no longer requires supported device (#66696)
Flutter logs should not attempt to filter the device list based on the current project, because it does not require a current project. Also fix disabled polling test

Fixes #47996
Fixes #63550
2020-10-02 21:12:50 -07:00
Dan Field 33fb35e951
Add benchmark/test for drawing images across frames (#67176) 2020-10-02 16:41:49 -07:00
Jonah Williams f6cbf488e1
[null-safety] pass experiments to builders (#67152)
Force opt-in flutter test platform to null safety for repo testing
2020-10-02 16:38:50 -07:00
Mouad Debbar b42e34690a
[web] Update index.html template to support new path strategy (#67081) 2020-10-02 15:12:04 -07:00
Tong Mu 74fe6bff84
Lazily compute PointerEvent's transformed positions (#63813)
* PointerEvent.local* properties are calculated lazily; other properties are delegated to original.
* Transformed PointerEvent becomes a subclass of its original class.
* Unnamed constructors no longer accepts transform and origin.
2020-10-02 15:09:23 -07:00
Ming Lyu (CareF) 76c0d69b14
migrate textfield_perf to e2e (#64503) 2020-10-02 14:47:03 -07:00
Alexandre Ardhuin 8143992262
migrate some material files to nullsafety (#67078)
* migrate some material files to nullsafety

* review
2020-10-02 23:10:29 +02:00