Commit graph

11847 commits

Author SHA1 Message Date
Ben Konyi 88565f68aa Dart SDK roll for 2018/09/07 2018-09-08 09:09:22 -07:00
Ben Konyi 6a8a73c4fc Pre-Dart SDK roll 2018-09-08 09:09:22 -07:00
Hans Muller ed698b8165
Remove inheritFromElement assert, it can fail during deactivation (#21570) 2018-09-07 16:46:44 -07:00
Jason Simmons 6effa190b9
Return an error from flutter_tools if gen_snapshot fails in an AOT build (#21576)
Fixes https://github.com/flutter/flutter/issues/21215
2018-09-07 16:44:01 -07:00
Jonah Williams 3821c35d04
Ensure that textDirection is always passed to ShapeBorder.getOuterPath (#21532) 2018-09-07 14:38:14 -07:00
Michael Klimushyn 9a290c174a
Expand DropdownButton width based on isExpanded flag (#21515)
* Fix Dropdown where icon not set to end of button

* Expand DropdownButton based on isExpanded flag

* Add dropdown golden tests

Fixes #13135, #16606
2018-09-07 14:01:21 -07:00
Chris Bracken 05d557b9ef
Make FlutterDevice.generator final (#21555)
Now that Dart 1 support has been eliminated, generator should always be
populated to a kernel compiler instance.

Also moves the constructor to the top of the class, and orders final
fields before non-final fields, as dictated by the style guide.
2018-09-07 13:56:04 -07:00
Chris Bracken 5ab9e70727
Revert "Eliminate snapshot/depfile options to build bundle (#21507)" (#21563)
This tickled a bug in KernelCompiler.compile() where the fingerprinter
doesn't include the outputFilePath in its list of dependencies. As such,
if the output .dill file is missing or corrupted, the fingerprint still
matches and re-compile is skipped, even though it shouldn't be. I'll fix
that in a followup, then look at how this triggered that issue. My
hypothesis is that that it's due to the aot kernel compile and bundle
kernel compile have separate output directories for the .dill files
(build/ vs build/aot) but the same output directory for the associated
depfiles (due to this patch).

This reverts commit 43a106e95a.
2018-09-07 12:33:05 -07:00
Jonah Williams 11943ce7e7
Revert "Shortcuts (#21083)" (#21556)
This reverts commit 6e7f3e6f5a.
2018-09-07 10:36:52 -07:00
jslavitz 6e7f3e6f5a
Shortcuts (#21083)
* added shortcuts and delete functionality

* added first test

*  afew chnages

* a few changes

* hope this works

* small change

* small changes

* fixed nits

* final changes:

* fixed initializing formals

* update comment

* minor change:

* added line

* final changes
2018-09-07 10:28:35 -07:00
Chris Bracken 43a106e95a
Eliminate snapshot/depfile options to build bundle (#21507)
The --snapshot argument was only necessary in Dart 1. The --depfile
argument was only used in Dart 2 mode to pass to the kernel compiler,
but was inconsistent with the 'build aot' command, where the depfile was
always set to build/kernel_compile.d.

This patch updates 'build bundle' to emit the depfile to a location
consistent with the 'build aot' command; since it's not intended to be
user-configurable and flutter.gradle hardcodes the location to
build/kernel_compile.d either way, this patch also eliminates the
ability to configure the filename altogether.
2018-09-07 10:21:55 -07:00
Jacob Richman a2acc6a3e5
Revert "Revert "Enable taking screenshots of arbitrary RenderObjects from a running a… (#20637)" (#21395)" (#21448)
This reverts commit 5b5a5b8228.
2018-09-07 10:02:05 -07:00
Ben Konyi de9f775fc0
Fixed missing implementations of toString() in two tests (#21509) 2018-09-07 09:48:33 -07:00
Jonah Williams 908de76c17
Remove value listener from semantics bindings (#21296) 2018-09-07 09:24:08 -07:00
Alexandre Ardhuin 976cffa24d
lint unnecessary_new on samples (#21539)
* lint unnecessary_new on samples

* fix tests
2018-09-07 11:00:05 +02:00
Alexandre Ardhuin 3c58195350
lint unnecessary_const on samples (#21155) 2018-09-07 09:13:13 +02:00
creativecreatorormaybenot c599f99584 Added music_note icon (#21459)
* Added music_note icon
2018-09-07 00:09:14 -07:00
Michael Goderbauer 5735adab5e
Roll engine to 58a1894a1cd798de2f9a206f157a90d45944028b (#21529) 2018-09-06 22:13:15 -07:00
CaiJingLong c5d16612a5 Fix ThemeData's cursorColor doesn't work. (#21142) 2018-09-06 21:13:11 -07:00
Mehmet Fidanboylu 0235ec59d1
Revert "InheritedModel - an InheritedWidget for data models (#19739)" (#21523)
This reverts commit 343b57036a.

Reverting because the assert introduced in framework.dart(inheritFromElement) is breaking certain Mulligan pages. @hixie suspects it might be due to global keys.
2018-09-06 20:23:13 -07:00
Gary Qian 7aea279b6d Roll engine to 9b297b3b51228... and Update goldens for flutter/engine#6184 (#21519)
* Update goldens for flutter/engine#6184

* Roll engine to 9b297b3b51228...
2018-09-06 20:18:48 -07:00
TL Lee e2167b9f53
Add build test for Flutter codelabs (#19579)
* Add build test for Flutter codelabs

* Fix indentation in build test script

* Correct filename for the codelabs build test run by travis

* Change if statement to elif

* Replace echo statements with set -x

* Add BSD-style license

* Add codelabs build test to Cirrus

* Remove codelabs_build_test from Travis.

* Remove codelabs_build_test from travis_script.sh

* Update documentation for codelabs_build_test.sh

* Update readme for build test

* Add link to open a new issue to MDC-Flutter

* Add phrase to address "if you think you really need to break this test, please escalate this"
2018-09-06 17:16:22 -04:00
Jason Simmons 4fc5048efd
gradle: add a dependency on the task that generates the x86 jar instead of the jar file (#21466) 2018-09-06 13:59:41 -07:00
engine-flutter-autoroll 358822e6bd Roll engine de4c7a53f21c..5f61056946ef (31 commits) (#21502)
de4c7a53f2...5f61056946

git log de4c7a53f21c..5f61056946ef --no-merges --oneline
5f6105694 Revert "Dart SDK roll for 2018/09/04 (#6161)" (flutter/engine#6183)
897178cc3 Roll src/third_party/skia 71f8475a0dba..33d3d31a7e28 (6 commits) (flutter/engine#6182)
1768bedcf Roll src/third_party/skia ffbcc3fadfa1..71f8475a0dba (3 commits) (flutter/engine#6181)
ade0f2230 Remove unused file picture_serializer. (flutter/engine#6179)
572753fb1 Roll src/third_party/skia 343553a1fe9e..ffbcc3fadfa1 (6 commits) (flutter/engine#6178)
108e0a64e Add transparency helpers to FlutterView.java (flutter/engine#6172)
f6ad3e096 Roll Tonic (flutter/engine#6177)
a0f30b3b0 Roll src/third_party/skia 9d1c88d9912d..343553a1fe9e (16 commits) (flutter/engine#6175)
e6d9b34a8 Remove the old location of the ICU data asset (flutter/engine#6170)
9f0ad8b79 Fixes negative end selection offset. (flutter/engine#6171)
0981731fd Enable transparent FlutterViews (flutter/engine#6163)
3a7d0b559 Roll buildroot to 7aadfaf196f9cd8a299f9ad78fab63362800466d (flutter/engine#6169)
564d214b7 Roll src/third_party/skia d0f0cb8ffc5e..9d1c88d9912d (12 commits) (flutter/engine#6168)
6af60d716 Remove obsolete discovery mechanism from FlutterView (flutter/engine#6157)
b22badf1d Dart SDK roll for 2018/09/04 (flutter/engine#6161)
6d0fbc7eb Roll src/third_party/skia 9478f7a38e6c..d0f0cb8ffc5e (1 commits) (flutter/engine#6167)
5063a8a5b Roll src/third_party/skia 72a02112a99f..9478f7a38e6c (1 commits) (flutter/engine#6166)
19a3bc8e1 Roll src/third_party/skia 85f4e40c5481..72a02112a99f (1 commits) (flutter/engine#6165)
9643a50ac Roll src/third_party/skia fddc6fa394cb..85f4e40c5481 (1 commits) (flutter/engine#6164)
6ad3183b1 Fix windows build. (flutter/engine#6162)
30af2f299 Roll src/third_party/skia e486bbaae296..fddc6fa394cb (2 commits) (flutter/engine#6159)
b32ceafb1 Add some more logs for diagnosing screenshot failures (flutter/engine#6156)
c173655b2 Roll src/third_party/skia b84576af0a43..e486bbaae296 (9 commits) (flutter/engine#6155)
aaf98fbfe Use double multiplication by a scale instead of 3 divides for speed. (flutter/engine#6154)
593ed5914 Revert "Use Skia normalize again after Skia precision fix. (#6121)" (flutter/engine#6122)
137389a85 Roll src/third_party/skia a45e1a71f548..b84576af0a43 (16 commits) (flutter/engine#6153)
f89a386a1 Roll src/third_party/skia cff3fd834ca8..a45e1a71f548 (1 commits) (flutter/engine#6152)
b0b8daa7b Unregister onFrameAvailable callbacks when a TextureEntry is released. (flutter/engine#6079)
2dc8271a4 Roll src/third_party/skia 24e58341fbcd..cff3fd834ca8 (1 commits) (flutter/engine#6151)
eea3a21e1 Roll src/third_party/skia bf67741140fd..24e58341fbcd (2 commits) (flutter/engine#6148)
bdcbe801a Roll src/third_party/skia 88119de2b849..bf67741140fd (1 commits) (flutter/engine#6147)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-09-06 13:00:25 -07:00
Jonah Williams b53ac0ddce
change expand icon to use default icon colors (#21328) 2018-09-06 12:59:01 -07:00
Devon Carew f5efbc4370
remove some temporary debug output (#21500) 2018-09-06 12:49:02 -07:00
Jonah Williams c6e8a513f0
Add android semantics integration test to device lab (#20971) 2018-09-06 12:31:18 -07:00
sir-boformer a4838a2adc Scale high-pixel-ratio images with BoxFit.none/BoxFit.scaleDown correctly (#20791)
* Scale high-pixel-ratio images with BoxFit.none/BoxFit.scaleDown correctly

* add test cases for image scale

* make analyzer happy

* Make sure that test images always have a scale to make all tests pass

* add a new author

* use new keyword in tests
2018-09-06 12:29:05 -07:00
Hans Muller 7a950eb3a7
Update InheritedModel doc (#21501) 2018-09-06 12:28:51 -07:00
Amir Hardon 9506d1e15b
Add an EagerGestureRecognizer. (#21407)
This recognizer can be passed in AndroidView's gesureRecognizers when we
want all touch events in the view bounds to be immediately dispatched
to the Android view.
2018-09-06 11:18:55 -07:00
jslavitz 7c477b9311
monodrag fix (#21138)
* monodrag fix

* added a test

* added test and changes

* fixed import

* removed comments
2018-09-06 11:04:43 -07:00
Jason Simmons 992f266208
Update animateToItem for new behavior of Future<void> in Dart 2 (#21446) 2018-09-06 11:03:03 -07:00
Chris Bracken 3519eabe8a
Do not pass --preview-dart-2 to Dart VM (#21455)
--preview-dart-2 is no longer necessary as it is now the default for the
standalone Dart VM.
2018-09-06 10:59:37 -07:00
Danny Tuppeny cc1766d44c
Remove flutter_tester test (#21493)
I'm working on fixing up all tests that rely on fs.currentDirectory to allow us to run concurrently. This one proved to be really tricky because it calls a lot of code and spawns multiple processes that have a mix of absolute and relative paths passed to them. I managed to handle some of it with a ChrootFileSystem, but the paths passed to the external processes were wrong.

The functionality here is covered by all of the integration tests that use flutter_tester that were added after this, including flutter_run_test.dart, lifetime_test.dart etc. in this same folder but because they're run through `flutter run` as a separate process they get to set their own working directories without affecting other tests if run concurrently.
2018-09-06 17:59:34 +01:00
liyuqian 6c4b38b707
Enable fading animation during page transitions. (#21394)
The average frame time of page transitions on Moto G4 is now very
close to 16ms (the last 10 measurements on our dashboard are
between 15.5ms to 16.7ms and half of them are below 16ms).

It is now much faster than when we disabled it (which was at about
35ms). So I think that we should be able to enable it by default.
I'll leave the flag there until we implement the retained rendering
to bring the frame time comfortably below 16ms.

See https://github.com/flutter/flutter/issues/13736
2018-09-06 09:26:52 -07:00
Amir Hardon 3e7f8b8bb5
Add a clipBehavior parameter to BottomAppBar. (#21461)
Setting the default clip behavior made bottom app bar to no longer clip
its children.
With this parameter users could opt-in to clipping.
2018-09-06 08:48:12 -07:00
Danny Tuppeny 7fc9165e4e
Add a detach command to detach without terminating (#21490)
* Add a detach command to detach without terminating (#21376)

* Add a detach command to detach without terminating

Fixes #21154.

* Bump protocol version for app.detach

* Tweak to detach/quit text

* Change logPrefix to named param

* Fix the text that the devicelab attach test looks for
2018-09-06 15:26:55 +01:00
Devon Carew e55b0f5244
remove the --use-cfe flag from flutter analyze (#21463) 2018-09-06 07:18:59 -07:00
Danny Tuppeny 7e3ebfc7e0
Rename test file to end with _test so it runs on the bots (#21438)
* Rename test file

* Fix detection to work regardless of whether there are other devices

On Windows we get one message, but on Mac we get another (because of the Simulator always being available).
2018-09-06 13:08:34 +01:00
Jonah Williams 2c1d12d4f7
Revert "Add a detach command to detach without terminating" (#21464) 2018-09-05 18:03:43 -07:00
Danny Tuppeny 409baff3ac
Revert "Allow FlutterTester to be provided with the working directory for execution (#21119)" (#21453)
This reverts commit 857bdc7a9a.
2018-09-05 21:31:29 +01:00
Danny Tuppeny 857bdc7a9a
Allow FlutterTester to be provided with the working directory for execution (#21119)
* Allow FlutterTester to be provided with the working directory for execution

Previously this test set fs.currentDirectory which prevents running tests concurrently. This allows setting the working directory for a FlutterTester in the cosntructor (optionally) and passes it through from the test (without setting fs.currentDirectory).

* Remove trailing whitespace
2018-09-05 19:37:04 +01:00
Amir Hardon bae44b29df
Add a note about the Android API level requirement for AndroidView. (#21386) 2018-09-05 11:33:19 -07:00
Danny Tuppeny fc8dbd3c44
Move asset_bundle_variant_test over to memory file system (#21426) 2018-09-05 19:31:36 +01:00
Danny Tuppeny eb9c975eb0
Add a detach command to detach without terminating (#21376)
* Add a detach command to detach without terminating

Fixes #21154.

* Bump protocol version for app.detach

* Tweak to detach/quit text

* Change logPrefix to named param
2018-09-05 19:31:21 +01:00
Danny Tuppeny 11ee2f71af
Move asset_bundle_package_test to MemoryFileSystem to avoid setting fs.currentDirectory in tests (#21427)
* Update asset_bundle_package_test to use MemoryFileSystem

This updates all tests in this file to use a memory filesystem (same as I did for asset_bundle_package_font_test) based on the current platform.

There were already a few minor tests at the bottom using a MemoryFileSystem and being run for all platforms - however this complicated the shared code I changed above to support Windows natively so I changed them to also work the same as others (that is, they just run the native platforms so require running on all to get full coverage - though this is the case for almost all other tests anyway).

* Move fixPath to the correct place
2018-09-05 19:30:55 +01:00
Danny Tuppeny 567a4b9cb6
Switch asset_bundle_test.dart to use memory file system (#21425) 2018-09-05 19:30:32 +01:00
Chris Bracken 05edc00a6f
Eliminate Dart 1 support from Flutter test (#21408) 2018-09-05 10:41:44 -07:00
Jonah Williams 61719c4e9f
fix unawaited future (#21439) 2018-09-05 09:29:22 -07:00
Matteo Crippa 5907a7264d Fix/ios run simulator (#20262) 2018-09-05 09:03:08 -07:00