Commit Graph

12702 Commits

Author SHA1 Message Date
stuartmorgan
685e9d1e47 Add pre-stable support for create on Windows (#51895)
Adds initial support for flutter create of apps and plugins. This is derived from the current FDE example app and sample plugin, adding template values where relevant.

Since the APIs/tooling/template aren't stable yet, the app template includes a version marker, which will be updated each time there's a breaking change. The build now checks that the template version matches the version known by that version of the tool, and gives a specific error message when there's a mismatch, which improves over the current breaking change experience of hitting whatever build failure the breaking change causes and having to figure out that the problem is that the runner is out of date. It also adds a warning to the create output about the fact that it won't be stable.

Plugins don't currently have a version marker since in practice this is not a significant problem for plugins yet the way it is for runners; we can add it later if that changes.

Fixes #30704
2020-03-23 10:42:26 -07:00
LongCatIsLooong
87cbddddd8 Let cupertino & material switches move to the right state after dragging (#51606) 2020-03-20 15:56:01 -07:00
Jonah Williams
b1664a27d9 ensure default value for report timings (#52978) 2020-03-20 14:30:33 -07:00
Jonah Williams
441665e21a [flutter_tools] split logger test and create log reader testing interface (#52934) 2020-03-20 13:46:39 -07:00
Jonah Williams
590f22ce82 [flutter_tools] restore report timings functionality to build aot (#52918) 2020-03-20 13:46:19 -07:00
Christopher Fujino
7d1fbcae1a Refactor exits happy (#52916) 2020-03-20 13:05:19 -07:00
Yegor
2e36be7691 Enable more material and cupertino tests on the Web (#52961) 2020-03-20 11:36:24 -07:00
Tong Mu
bbc0cc07f6 Move mouse_tracking.dart to rendering (#52781)
* Move mouse_tracking to rendering

* Move test
2020-03-20 11:22:02 -07:00
Yegor
5ea13b8493 fix KeySet.hashCode; enable multiple web tests (#52861)
fix KeySet.hashCode; enable multiple web tests
2020-03-20 08:49:19 -07:00
chunhtai
3998549d52 Revert "fixes sliver list child layout offset calculation (#42703)" (#52923)
This reverts commit 11efa00f9f.
2020-03-20 06:07:25 -07:00
Jonah Williams
a13c9cfc48 [flutter_tools] fix toFilePath called on null (#52931)
In certain circumstances, the .packages file or dart cache could be missing - since the tool runs from a snapshot this is otherwise fine.
2020-03-19 22:20:15 -07:00
Michael Thomsen
4106fbd99c Allow recent Dart language features (#52879) 2020-03-19 16:54:34 -07:00
Jonah Williams
62c9c89d6b [flutter_tools] split start app android tests into new file (#52906) 2020-03-19 16:53:19 -07:00
Jonah Williams
5b956fd8f6 [flutter_tools] split isSupportedForProject test into new file (#52911) 2020-03-19 16:42:05 -07:00
Chris Yang
b05210c707 Move ios screenshot test to flutter gold. (#52553) 2020-03-19 16:27:41 -07:00
Kirill Pertsev
bae2f2c108 Enables log reader on iOS Simulator to (rudimentary) process multiline messages (#52452) 2020-03-19 15:41:39 -07:00
rami-a
e2610a450c [Material] Allow Appbar to exclude header semantics (#52894) 2020-03-19 15:06:02 -07:00
Jason Simmons
bbc9d4f3a6 Do not check the executable status of gen_snapshot if it has not yet been downloaded (#52574) 2020-03-19 15:01:02 -07:00
Jonah Williams
d20242b703 [flutter_tools] refactor ios install/uninstall to new file (#52891) 2020-03-19 14:53:14 -07:00
Jonah Williams
b21e780aee [flutter_tools] refactor AotBuilder, removing globals and duplicated kernel compilation (#52896)
Reland of #52091
2020-03-19 14:52:42 -07:00
chunhtai
11efa00f9f fixes sliver list child layout offset calculation (#42703) 2020-03-19 14:51:04 -07:00
Jonah Williams
9391e480b2 Revert "[flutter_tools] refactor GenSnapshot and AotBuilder (#52091)" (#52893)
This reverts commit f65421aaca.
2020-03-19 10:16:20 -07:00
Jenn Magder
a61bff2fcf Show Xcode workspace clean output with verbose flag (#52860) 2020-03-19 09:51:01 -07:00
Jonah Williams
f65421aaca [flutter_tools] refactor GenSnapshot and AotBuilder (#52091)
Remove dependency injection from GenSnapshot and AotBuilder and update tests to use FakeProcessManager
2020-03-19 09:36:38 -07:00
Jonah Williams
fe310148a1 [flutter_tool] Remove extra usage of .packages in vm service API (#52845) 2020-03-19 09:35:57 -07:00
Dan Field
53dc8db0e8 Do not throw when trying to discover a fuchsia device and the sshConfig is invalid (#52858)
* Do not throw when trying to discover a fuchsia device and the sshConfig is invalid
2020-03-19 09:28:54 -07:00
Ayush Bherwani
6c2a29dd37 [Api Docs] Improves contentPadding documentation in InputDecoration (#52807) 2020-03-19 09:26:02 -07:00
Jonah Williams
73b6702dee [flutter_tools] refactor iOS tests for Device.startApp into new file (#52854) 2020-03-18 17:43:25 -07:00
Gary Qian
ee8131b430 Reland formatter changes (#52765) 2020-03-18 15:56:02 -07:00
Jenn Magder
ee845255de Move XcodeProjectInterpreter to globals (#52847) 2020-03-18 15:55:09 -07:00
Jenn Magder
e0ab6fc00c Move outputPreferences to globals (#52846) 2020-03-18 15:54:26 -07:00
Jonah Williams
0274f170fb [flutter_tools] have the tool print the current canvaskit mode when toggling (#52841) 2020-03-18 15:51:23 -07:00
Yegor
7b4c195f99 Fix web test flakiness; enable web golden tests (#52789)
* Fix web test flakiness; enable web golden tests

The fix is three-part:

- Only allow one test to load _and_ test at any point in time.
- Use a fresh Chrome instance for each test file.
- Increase Cirrus resources.

The first two changes only fix the "Unknown error loading" error, but not hanging tests. The resource increase also prevents hanging tests.

Other minor changes:

- Remove test batching (it's no longer necessary)
- Fix the Chrome class, which was using the wrong Completer.
2020-03-18 15:11:48 -07:00
Kate Lovett
ea67a65bde Re-land Luci Support for Gold (#52760) 2020-03-18 12:56:02 -07:00
Christopher Fujino
2d9902d9ac Cleanup ios devices (#52568) 2020-03-18 12:51:01 -07:00
Zachary Anderson
e8778da12c [flutter_tools] Don't crash when analytics fails to initialize (#52775) 2020-03-18 10:00:14 -07:00
Michael Goderbauer
1444e77205 Use stable IDs for TextSpan SemanticsNodes (#52769) 2020-03-18 09:56:02 -07:00
Jonah Williams
542feb4736 [flutter_tools] remove unused Snapshot.dart artifact and associated code (#52821) 2020-03-18 09:18:41 -07:00
Jonah Williams
da0788a180 Update fuchsia remote debug protocol to use package:test shim instead of package:test_api (#52706)
This is necessary to ensure the tests can run in google3. Fixes https://b.corp.google.com/issues/151657461
2020-03-18 09:12:46 -07:00
Justin McCandless
a811bce4b0 TextField behavior when at maxLength (#52130)
TextFields now disallow adding characters in the center of the text at maxLength.
2020-03-18 08:02:22 -07:00
Jonah Williams
b7101b45f5 [flutter_tools] disable added integration test due to Cirrus flakes (#52782) 2020-03-17 19:07:22 -07:00
Jonah Williams
46f0a5f7b5 [flutter_tools] Reland android device cleanup. (#52686) 2020-03-17 17:58:39 -07:00
Jonah Williams
90d6169678 [flutter_tools] refactor the IOSDevicePortForwarder and move tests out of devices_test.dart (#52772)
Updates the IOSDevicePortForwarder to no longer depend on context, or on an IOSDevice instance. Instead, it receives all necessary configuration through the constructor.

Moves the IOSDevicePortForwarder to a separate file.
2020-03-17 17:58:05 -07:00
Jonah Williams
6884086e5c [flutter_tools] Update to latest dwds APIs (#51004)
Update to latest dwds APIs, moving back to dwds driven hot restart and enabling future work on expression evaluation.
2020-03-17 17:29:53 -07:00
gaaclarke
6990b8b2d3 Added the "trace-whitelist" flag to run. (#52556) 2020-03-17 16:42:20 -07:00
Jonah Williams
f149eec31b [flutter_tools] always initialize the resident runner from dill (#52497) 2020-03-17 16:37:06 -07:00
Ferhat
d3a66e3107 [web] Add support for ChunkEvents during image loading (#52558)
* Add support for ChunkEvents for web
* Add lint skip for webOnly call in _network_image_web
2020-03-17 16:07:21 -07:00
Jenn Magder
757b39ba99 Ignore fuchsia device-finder no device error (#52761) 2020-03-17 16:02:45 -07:00
Christopher Fujino
071d4eb2c8 explicitly catch ArgumentError, and add tests (#52757) 2020-03-17 12:55:57 -07:00
Jonas Finnemann Jensen
a4d30c1607 Add a comment for path dependencies in plugin example template (#50978) 2020-03-17 20:31:52 +01:00