Commit Graph

2084 Commits

Author SHA1 Message Date
Jonah Williams
ee60eeea3e [flutter_tools] Allow providing dart-defines to Android, iOS, macOS builds (#51714) 2020-03-05 12:38:40 -08:00
Jonah Williams
bbf913bc4c [flutter_tools] resolve requests to web directory in debug mode (#51995) 2020-03-05 12:34:03 -08:00
Alexandre Ardhuin
c2ae654ddf enable avoid_single_cascade_in_expression_statements (#51944) 2020-03-05 08:03:26 +01:00
Flutter GitHub Bot
9c5009b251 [gen_l10n] Escape quote characters in ARB files (#51952) 2020-03-04 20:41:03 -08:00
Jonah Williams
124aa6f8b1 [flutter_tools] use package:test for coverage and remove build_runner test precompilation (#51966) 2020-03-04 17:12:58 -08:00
Jenn Magder
7593228665 Mark devicelab tests as no longer flaky (#51977) 2020-03-04 17:03:18 -08:00
Jason Simmons
c971ba0db4 Increase the timeout for the cull_opacity_perf_test to 45 seconds (#51962)
Fixes https://github.com/flutter/flutter/issues/51795
2020-03-04 13:53:01 -08:00
Flutter GitHub Bot
e22ceb0c7a Add textfield perf test to devicelab (#51788) 2020-03-04 13:16:03 -08:00
Jenn Magder
32716b9e9b Bitcode strip embedded iOS frameworks (#51914) 2020-03-04 13:15:33 -08:00
Ben Konyi
3edd3eb4a2 Updated package:test, package:test_core, package:coverage, package:package_config (#51946)
This is required to roll forward package:vm_service to 3.0.0 and is
blocking a DevTools release.
2020-03-04 11:40:52 -08:00
Jenn Magder
e491544588 Move embedding and linking Flutter frameworks into the tool (#51453)
* Move embedding and linking Flutter frameworks into the tool

* Unused import

* Migrate

* Rename run, add comments, remove typedef

* Add status log to tell the user what we did

* Remove Podfile migration, create IOSMigration superclass

* word-smiting

Co-Authored-By: Jonah Williams <jonahwilliams@google.com>

* for space

Co-Authored-By: Jonah Williams <jonahwilliams@google.com>

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-03-03 12:11:28 -08:00
Shi-Hao Hong
d2c734a36f Simple repeating word fixes (#51871) 2020-03-03 11:13:07 -08:00
Greg Spencer
1ba4f1f509 Add Linux and Windows target platforms (#51519)
This PR adds the linux and windows target platform enum values, along with automatically setting the defaultTargetPlatform to the appropriate value on those platforms.

Fixes #31366
2020-03-03 04:38:04 -08:00
Chris Bracken
f3018c378a Revert "Temporarily disable the flutter_driver_screenshot_test. (#51665)" (#51783)
The original commit actually *enabled* the test by removing the
flaky: true field in the commit.

This reverts commit 1d3fcfd6ca.
2020-03-02 09:45:24 -08:00
Chris Yang
1d3fcfd6ca Temporarily disable the flutter_driver_screenshot_test. (#51665) 2020-02-29 10:01:18 -08:00
Shi-Hao Hong
c98500dea3 Update gen_l10n tool to require base locale; Stocks app refresh (#51602) 2020-02-28 22:21:01 -08:00
Jonah Williams
9b4159c5ee [flutter_tools] support run -d chrome test scripts (#51658) 2020-02-28 14:21:02 -08:00
Mouad Debbar
03d6b58002 [web] Allow benchmarks to customize their score keys (#51493) 2020-02-28 13:54:45 -08:00
Yegor
bae79599c2 add docs about writing/running web benchmarks (#50989)
* add docs about writing/running web benchmarks

* explain how to run like devicelab

* add WidgetBuildRecorder docs
2020-02-28 10:16:35 -08:00
Yegor
cd0fbd3205 improve web benchmark error reporting (#51490) 2020-02-28 10:14:22 -08:00
stuartmorgan
33bb1faf5b Reland: Always use new plugin schema for plugin template (#49832)
Now that the new schema is supported on the stable channel, and the old
schema is considered legacy, the template should always create plugins
using the new schema.
2020-02-27 22:48:25 -08:00
Jason Simmons
d499d61efe Update Android activities because plugin registration is now done by FlutterActivity.configureFlutterEngine (#50841) 2020-02-27 18:16:04 -08:00
Jonah Williams
08d079f6c2 [flutter_tools] wire up complete support for Dart obfuscation (#50509) 2020-02-27 08:58:33 -08:00
Dan Field
c75db98337 Live image cache (#51485)
* Reland "Live image cache" (#51441)

This reverts commit 419a2853a8.

* Make evict safer
2020-02-26 16:01:56 -08:00
Greg Spencer
9e744c5710 Implement VisualDensity for text fields. (#51438)
This implements VisualDensity changes for text fields*. By default, the layout of the text field does not change.

If the ThemeData.visualDensity is set to a value other than zero, then the density of the UI will increase or decrease. See the VisualDensity docs for more information.

(*In reality, the changes are on the InputDecorator class, not on the text field.)

I also fixed a problem that I think I found with _Decoration where it doesn't compare isDense or isCollapsed as part of its operator==.
2020-02-26 13:38:28 -08:00
Jonah Williams
55072246d0 [flutter_tools] remove build script from tool package (#50690) 2020-02-26 08:25:04 -08:00
Alexandre Ardhuin
a4054938ce unnecessary multiline strings (#50806) 2020-02-25 18:12:17 -08:00
Dan Field
419a2853a8 Revert "Live image cache" (#51441)
* Revert "Live image cache (#51249)"

This reverts commit e2dcdb60e3.

* fix tests for other commit
2020-02-25 16:52:47 -08:00
Nate Bosch
9228b87eb3 Don't use a default test randomize ordering seed (#51018)
Fixes #51010

The test package differentiates between passing and not passing this
argument. A previous version had a bug that treated passing `0`
identically to not passing the argument, and the flutter test runner
relied on this bug by always passing a value and using a default of `0`.

- Remove the argument defaults throughout to make it clear that `null`
  is a valid value and the default.
- Remove the argument defaulting on the argument parser.
- Update the wording of the usage for this argument, this will also be
  updated on the `package:test` side.
2020-02-25 13:01:40 -08:00
Christopher Fujino
704fb4cbc7 Remove usage of ideviceinstaller in favor of ios-deploy (#50772) 2020-02-25 09:09:40 -08:00
Hans Muller
13e1336e6c Generate message lookup in gen_l10n (#50733) 2020-02-24 20:17:13 -08:00
Yegor
d95a1a70a2 add WidgetBuildRecorder for benchmarking building widgets (#51088) 2020-02-24 16:08:40 -08:00
Dan Field
889e606ceb Script to find Flutter earliest Flutter revision that contains an engine revision (#50948) 2020-02-24 14:49:12 -08:00
Jonah Williams
e6e79bce6f [flutter_tools] remove vm_service_client dependency from flutter tool (#51227) 2020-02-24 14:19:43 -08:00
Dan Field
e2dcdb60e3 Live image cache (#51249)
* Revert "Revert "Live image cache (#50318)" (#51131)"

This reverts commit 2f09d601b5.

* Fix eviction of a pending image
2020-02-24 13:47:53 -08:00
Greg Spencer
c5dd3ec47a Fix stuck keys when shift is released before the letter. (#51095)
This fixes a problem where if you press "Shift" and then "A", then release "Shift" and then "a", then the "A" key will be "stuck" on because the logical key for the key down message is different (capital "A") from the logical key for the key up message (lowercase "a").

This PR changes the pressed keys logic so that it uses the physical key to add/remove keys from the list of pressed keys, but keeps the associated logical key.

This does mean that after the "Shift" key goes up, the pressed keys contains a capital "A" and it doesn't switch to be a lowercase "a", but there isn't currently any mechanism we can use to do that remapping. This is far less surprising than the current behavior, but is still not quite correct.

I fixed the event simulation code to take a physicalKey so that it could be matched with the logical key, but the event simulation code isn't up to the task, since it can only simulate keys that appear in the key maps. The new platform key event design should fix that (added TODOs).
2020-02-21 14:13:38 -08:00
Jason Simmons
479e27c9f1 Update stack trace test goldens to handle engine builds with lazy async stacks (#51216)
The next engine roll will introduce --lazy-async-stacks, which affects the
contents of stack traces.  This updates test expectations to match both the
old and new stack trace formats.
2020-02-21 12:05:30 -08:00
Dan Field
d46d77dc05 Make test more flexible for new args from vm (#51217) 2020-02-21 10:35:54 -08:00
Dan Field
7034bc57df Reduce duration of benchmark to avoid timeout (#51214) 2020-02-21 09:59:23 -08:00
Clement Skau
3275adb7fb Updates test expectations for stack traces. (#51185)
With --lazy-async-stacks the stack output has changed slightly so updating the expect files to match.

This is a follow-up to https://github.com/flutter/flutter/pull/51047 as a preparation for the next engine roll which will start enabling --lazy-async-stacks in JIT mode.
2020-02-21 13:38:56 +01:00
Dan Field
2f09d601b5 Revert "Live image cache (#50318)" (#51131)
This reverts commit 1602be6ab6.
2020-02-20 13:20:28 -08:00
Harry Terkelsen
29306b0896 [Web] Add Material Card Infinite Scroll benchmark (#51005)
* [Web] Add Material Card Infinite Scroll benchmark

Adds a benchmark that makes an infinite list of Material cards
and scrolls it. This benchmark exercises more heavyweight rendering
like shadows and clipping and paths.

* Fix analyzer warnings. Respond to comments
2020-02-20 11:16:58 -08:00
Dan Field
d030296a97 Reland test (#50987) 2020-02-20 01:51:15 -08:00
Dan Field
2ce51aa284 add macos project to macrobenchmarks (#50999) 2020-02-20 01:50:51 -08:00
Alexandre Ardhuin
7d7ac7c32b start multiline strings with newline (#50825) 2020-02-20 10:16:28 +01:00
Greg Spencer
d8a2169741 Revert "Upgrade dartdoc to 0.30.1 (#50980)" (#51060)
This reverts commit a51de38a20 because it breaks the flutter docs.
2020-02-19 09:55:32 -08:00
Dan Field
f81588a5a3 Roll engine bb01cb7faf26..77c5812d48b8 (#50994) 2020-02-18 16:33:55 -08:00
Sunbreak
fcf7fda99c Remove miscellaneous xcworkspacedata (#50715) 2020-02-18 12:41:27 -08:00
Janice Collins
a51de38a20 Upgrade dartdoc to 0.30.1 (#50980) 2020-02-18 12:40:10 -08:00
Jonah Williams
d0b7f0cd4e Revert "Animated placeholder perf (#50851)" (#50984)
This reverts commit e4fbb1aba6.
2020-02-18 12:32:46 -08:00