Commit Graph

29153 Commits

Author SHA1 Message Date
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
David Reveman
371667ec94 Fix resampling of down, up, and remove events. (#67080)
This adds the neccessary synthetic move/hover events to
resampler, which is needed for position to not change as
part of a down, up, or remove event.

Co-authored-by: David Reveman <reveman@google.com>
2020-10-02 16:16:57 -04:00
Yuqian Li
e45157fc08 5x startup test repitition to reduce noise (#67147) 2020-10-02 12:22:05 -07:00
Michael Goderbauer
fc85492d7c Make Navigator restorable (inkl. WidgetsApp, MaterialApp, CupertinoApp) (#65658) 2020-10-02 11:42:02 -07:00
Mouad Debbar
5d6321b509 [web] Respond with 404 to non-found asset or package files (#67088) 2020-10-02 11:02:03 -07:00
Jonah Williams
385ae40218 allow web shard to compile null-safe tests (#67106) 2020-10-02 10:59:00 -07:00
Jason Simmons
70973e0214 Handle empty selection box lists in RenderParagraph.assembleSemanticsNode (#67017) 2020-10-02 10:57:05 -07:00
Rami
9e715205b7 [Time Picker] Double tapping hours/minutes will switch time picker to input mode (#67076) 2020-10-02 13:53:36 -04:00
engine-flutter-autoroll
a2eef79fe4 Roll Engine from 0522ff22cc78 to 87a10f240f6b (8 revisions) (#67112) 2020-10-02 09:37:02 -07:00
includecmath
f1013e6873 [flutter_tools] According to AnalysisSeverity return exit code detailed proposal (#61589)
No matter what level(error, warning, info) issues flutter analyze always return fatal exit code(1). CI/CD environment receive 1(!0). This may leads to e.g. Jenkins Build step 'Execute shell' marked build as failure.
I propose according to AnalysisSeverity level return fatal(1) or success(0) exit code.
2020-10-01 18:50:33 -07:00
Ming Lyu (CareF)
db2532a949 migrate color_filter_and_fade_perf (#64484) 2020-10-01 17:32:02 -07:00
Dan Field
473358d93d Revert dispose images when done (#67100)
* Revert "docs for image disposal (#67066)"

This reverts commit bcb2ac5a55.

* Revert "Dispose of images after using them (#66688)"

This reverts commit a7954691da.
2020-10-01 16:53:50 -07:00
Michael Goderbauer
cba170fbb2 Migrate the tests of flutter_test to null-safety (#67058) 2020-10-01 16:27:02 -07:00
engine-flutter-autoroll
b63970c681 Roll Engine from f0ab5b5ced81 to 0522ff22cc78 (2 revisions) (#67079) 2020-10-01 15:27:03 -07:00
Yuqian Li
b92d250116 Let perf tests measure memory by default (#66570)
Fixes https://github.com/flutter/flutter/issues/66569
2020-10-01 15:20:17 -07:00
Dan Field
bcb2ac5a55 docs for image disposal (#67066) 2020-10-01 14:14:15 -07:00
Jason Simmons
c9392da6a4 Relax the bounds of some Cupertino text field tests (#67020)
SkParagraph may calculate slightly different metrics for text layouts
2020-10-01 13:46:17 -07:00
engine-flutter-autoroll
68ef8fcdd9 Roll Engine from 1c97ac750d5a to f0ab5b5ced81 (2 revisions) (#67067) 2020-10-01 12:52:03 -07:00
Kate Lovett
d1178ae73b Fix local gold output for flutter/flutter (#66139) 2020-10-01 11:17:03 -07:00
engine-flutter-autoroll
978f912dce Roll Engine from 612acf349e36 to 1c97ac750d5a (4 revisions) (#67061) 2020-10-01 11:02:02 -07:00
Jacob MacDonald
b95c3d7d56 update stack_trace dep (and others) (#67057) 2020-10-01 09:54:07 -07:00
Dan Field
a7954691da Dispose of images after using them (#66688)
* Dispose of images after using them
Adds ImageInfo.clone, ImageInfo.dispose, and ImageInfo.isCloneOf.
Makes all stateful holders of ui.Image objects properly clone and dispose of them.
Behavior change for ImageStreamCompleter: Removing the last listener after registering at least one listener results in the object being disposed, and new listeners cannot be added, unless a keepAlive handle is created.
Makes all non-stateful holders of ui.Image (i.e. paintImage and RawImage) assert that whoever gave the image to them has not disposed it on them.
2020-10-01 09:48:54 -07:00
Rami
79400b2462 [Material] Update some semantics for time picker controls (#66652) 2020-10-01 09:06:46 -04:00
Alexandre Ardhuin
9d41ddcbac migrate some material files to nullsafety (#66985)
* migrate some material files to nullsafety

* fix test_private

* address review comments

* fix private test on windows

* use uri in include entry of analysis_options
2020-10-01 08:01:58 +02:00
Phil Quitslund
d3155658bc API docs for typedefs. (#67003) 2020-09-30 19:32:02 -07:00
Dan Field
25f44bb271 test (#67021) 2020-09-30 18:02:04 -07:00
Michael Goderbauer
19e07d2beb Migrate flutter_test (#66663) 2020-09-30 17:03:40 -07:00
engine-flutter-autoroll
0ca0c132a5 Roll Engine from 572c343568f8 to 612acf349e36 (3 revisions) (#67015) 2020-09-30 17:02:03 -07:00
Madhur Maurya
2de1c8da47 Nested Scaffolds Documentation Improvement (#66972) 2020-10-01 07:55:15 +08:00