10761 Commits

Author SHA1 Message Date
Fedor Korotkov
d0125d94b0 Renamed CI tasks (#17216)
* Renamed CI tasks

`tests` to `tests-linux`
`windows` to `tests-windows`

* Explicitly specify shards everywhere
2018-05-03 11:24:02 -07:00
xster
b2db3bafef
Make Android back button presses in a demo category not unexpectedly quit the app (#17224) 2018-05-03 11:15:51 -07:00
Hans Muller
22c12f9f92
Gallery demos: reordered and retitled (#17220) 2018-05-03 11:05:48 -07:00
Jonah Williams
50bd39a913
Add longPress/Tap event to SemanticService (#16945) 2018-05-03 11:04:43 -07:00
Ian Hickson
57dd51a301
Fix documentation for UnconstrainedBox and code cleanup (#17249) 2018-05-03 10:56:35 -07:00
Ian Hickson
916ed6c4f2
Update issue templates (#17213)
* Update issue templates

* Rename Custom.md to Z.md

* Create A.md

* Rename A.md to BUG.md

* Rename Z.md to SUPPORT.md

* Create ACTIVATION.md

* Update BUG.md

* Update BUG.md

* Delete ISSUE_TEMPLATE.md
2018-05-03 10:46:55 -07:00
xster
57fa40efac
Update the auto-inserted cupertino_icons dependency version which fixes linter warnings (#17229) 2018-05-03 09:39:43 -07:00
Konstantin Scheglov
9fe53b0d2b
Export @required from src/widgets/framework.dart (#17208) 2018-05-03 08:50:40 -07:00
Todd Volkert
65079ad5f2
Add Flutter-repo-specific golden comparator (#17205)
In order to avoid checking binaries into flutter/flutter,
this comparator can be used to retrieve golden files from
a sibling flutter/goldens repository.

https://github.com/flutter/flutter/issues/16859
2018-05-03 07:39:41 -07:00
Alexander Aprelev
50afda01e1
Roll engine to pick updated dart sdk with NSM and hot reload fix. (#17240)
Changes since last roll:
```
ae0d3a553 Roll dart to 2765fcf2aecd3841d082fedaeafc00a73a965f8c. (#5160)
73b835c33 Roll src/third_party/skia/ 0caef298c..20fa1e94a (1 commit) (#5159)
f5c7cb366 Roll dart to b298fc6d8f6a0e1aa841dbbdda26663d6012a79a. (#5155)
93b85ee68 Add Android accessibility bridge support for "longPress" and "tap" semantic events
862d13c6f Roll src/third_party/skia/ 97b48a9c7..0caef298c (6 commits) (#5158)
9b7cc44df Dart bindings own the FDIO namespace. Release the engine side reference to the handle after bindings are setup. (#5156)
8896bd35a Roll src/third_party/skia/ f9ab22385..97b48a9c7 (11 commits; 1 trivial rolls) (#5154)
77910baad Roll src/third_party/skia/ 2050565fe..f9ab22385 (11 commits) (#5151)
0667cba31 Roll src/third_party/skia/ 3fef39d94..2050565fe (2 commits) (#5150)
5da171634 Roll src/third_party/skia/ ef4142a9b..3fef39d94 (1 commit) (#5148)
4ec4b3870 Roll src/third_party/skia/ c86c5c014..ef4142a9b (2 commits) (#5147)
d5c111717 Roll dart to 011676641a8b4b77bb372384c712709cbf037675 (#5146)
beb988c60 Roll src/third_party/skia/ 91368c9b9..c86c5c014 (4 commits) (#5145)
a58eabf14 Roll src/third_party/skia/ dc3192b30..91368c9b9 (12 commits; 1 trivial rolls) (#5144)
```
2018-05-03 00:53:11 -07:00
Todd Volkert
29775f74fb
Handle pubspec.yaml files with no dependencies (#17195)
Currently, `flutter update-packages --force-upgrade` will
crash if it encounters a pubspec.yaml file with no dependencies
(either regular or dev). The assumption that we'd never see
such pubspec files is no longer valid, as we have such a file
in one of our tests.
2018-05-02 21:03:37 -07:00
Chris Bracken
7f0876700a
Handle multi-arch builds in Xcode lipo phase (#17212)
Correctly split ARCHS into a Bash array in xcode_backend.sh.

Previously, when ARCHS contained multiple values (e.g., ARCHS="armv7 arm64"),
we treated that as a single architecture, and lipo invocation would
fail.
2018-05-02 18:50:35 -07:00
Todd Volkert
27a2a27cbf
Roll engine to 2812ea3ed304eac01d89fe456cd5d45f658ce11c (#17206)
This contains the following commits:

flutter/engine@2812ea3 Define Uri.base as CWD to match the standalone Dart VM.
flutter/engine@6f15a91 Roll src/third_party/skia/ 4912d903b..dc3192b30 (7 commits)
flutter/engine@f9165be Roll src/third_party/skia/ c353ee211..4912d903b (1 commit)
flutter/engine@fb51bf2 Roll src/third_party/skia/ d5750b6b3..c353ee211 (1 commit)
flutter/engine@a859432 Roll buildroot to a69ebc4e1.
flutter/engine@89a8dff Roll src/third_party/skia/ 0ce19fa0b..d5750b6b3 (3 commits; 1 trivial rolls)
2018-05-02 18:50:02 -07:00
Hans Muller
c75db13f18 Fixed a typeO (#17223) 2018-05-02 17:43:32 -07:00
xster
4e6045883c
Fix front layer can be tapped through bug on gallery (#17181) 2018-05-02 14:31:59 -07:00
Hans Muller
dba7855de8
Update the gallery BottomAppBar demo (#17177) 2018-05-02 11:18:48 -07:00
Hans Muller
8d0ec25eb6
Updated the error color in the Gallery themes (#17200) 2018-05-02 11:09:28 -07:00
Andrew Davies
5d8bdd35cb
[gn] Add flutter_driver build file. (#17174) 2018-05-02 11:05:20 -07:00
Yegor
4d61ea277c
Revert "Roll engine to d5c111717 (#17178)" (#17201)
This reverts commit 2849bc04ff620e6177f572e0d953818174a239bf.

The engine roll causes hot reload crashes.
2018-05-02 09:57:32 -07:00
Vyacheslav Egorov
f6fb982d5c
Fix strong mode issue in _PosixUtils._which. (#17192)
ProcessResult.stdout has static type dynamic so for
inference to infer proper type argument for the map
invocation we need to cast stdout to String explicitly.

Fixes #17163
2018-05-02 17:49:30 +02:00
Yegor
2849bc04ff
Roll engine to d5c111717 (#17178)
d5c111717 (HEAD -> master, upstream/master) Roll dart to 011676641a8b4b77bb372384c712709cbf037675 (#5146)
beb988c60 (dart-roll) Roll src/third_party/skia/ 91368c9b9..c86c5c014 (4 commits) (#5145)
a58eabf14 Roll src/third_party/skia/ dc3192b30..91368c9b9 (12 commits; 1 trivial rolls) (#5144)
2812ea3ed Define Uri.base as CWD to match the standalone Dart VM. (#5137)
6f15a915c Roll src/third_party/skia/ 4912d903b..dc3192b30 (7 commits) (#5142)
f9165befd Roll src/third_party/skia/ c353ee211..4912d903b (1 commit) (#5141)
fb51bf280 Roll src/third_party/skia/ d5750b6b3..c353ee211 (1 commit) (#5140)
a8594324d Roll buildroot to a69ebc4e1. (#5139)
89a8dffcb Roll src/third_party/skia/ 0ce19fa0b..d5750b6b3 (3 commits; 1 trivial rolls) (#5138)
2018-05-01 20:07:45 -07:00
Chris Bracken
752906498a
Include kernel_compile.d in Gradle depfiles (#17175)
This updates the Android build to declare the kernel compile depfile as
an output and its contents as inputs when running with --preview-dart-2
(the default mode).

The 'flutter build aot' command behaves differently depending on whether
it's running in Dart 1 or Dart 2 mode:

* Dart 1: the entrypoint Dart file (typically main.dart) is passed
  directly to gen_snapshot, which then emits snapshot.d, whose contents
  list the transitive closure of Dart dependencies (input files) for the
  snapshot. snapshot.d is a declared output, its contents (plus
  gen_snapshot itself) constitute the set of input files to the Gradle
  build action.

* Dart 2: then entrypoint Dart file (typically main.dart) is first
  compiled with the Dart kernel frontend. This emits kernel_compile.d,
  whose contents list the transitive closure of Dart dependencies (input
  files) for the kernel 'dill' output file. This 'dill' file is then
  passed to gen_snapshot, which emits snapshot.d, whose contents are
  empty. As of this change, both snapshot.d and kernel_compile.d are
  declared outputs, and their contents (plus gen_snapshot and the
  frontend compiler themselves) constitute the set of input files to the
  Gradle build action.

This fixes a bug wherein profile/release AOT outputs were not
invalidated due to snapshot.d being empty, and kernel_compile.d being
ignored. This was introduced during recent refactoring of the AOT build
code, wherein the kernel compile and gen_snapshot actions were changed
to emit independent depfiles (previously one stomped -- or failed to --
on the other's output).
2018-05-01 18:11:57 -07:00
xster
7982a3a277
New gallery performance improvements (#17167) 2018-05-01 18:08:13 -07:00
xster
e77cfcf2ae
roll engine to d48ba4c0349109c3b5c62e77cfe2d26e794aabcb (#17162) 2018-05-01 16:48:53 -07:00
Chris Bracken
802301e16f
Extract shared library build from AOT snapshotting (#17166) 2018-05-01 15:14:20 -07:00
Fedor Korotkov
7333459916 Configure Cirrus CI (#16224)
* Configure Cirrus CI

* Read file directly instead of shelling a command

* Wait for all streams to finish

* Add LTR `textDirection`

Since `RenderFlex#_debugHasNecessaryDirections` requires it when `direction` is horizontal and there are multiple children.
2018-05-01 15:11:21 -07:00
Chris Bracken
c77ceb01be
Eliminate unnecessary params in assembly AOT (#17164)
Previously, we were incorrectly passing --vm_snapshot_data and
--isolate_snapshot_data options to gen_snapshot in assembly AOT builds.
These only make sense in AOT blob snapshot mode (alongside
--vm_snapshot_instructions and --isolate_snapshot_instructions).
2018-05-01 13:20:02 -07:00
Chris Bracken
42ed01522d
Split Snapshotter into AOT and Script classes (#17159)
There's very little code-sharing between the two, and what little there
is is concentrated in the GenSnapshotClass and the fingerprint
reading/writing utility methods.
2018-05-01 12:42:05 -07:00
Todd Volkert
28c1973340
Add support for flutter_test_config.dart (#17141)
This enables support for a `flutter_test_config.dart` configuration file,
which will be discovered and handed the responsibility of running the
test file (thus allowing it to run pre-test setup on a project level).

https://github.com/flutter/flutter/issues/16859
2018-05-01 12:36:22 -07:00
Chris Bracken
064d2f4281
Simplify split between assembly/blob AOT compile (#17157)
This de-duplicates assembly AOT configuration between Android and iOS,
and makes it easier to adjust parameters for 32-bit iOS (which, like
32-bit Android, requires --no-integer-division) in an upcoming patch.
2018-05-01 10:50:35 -07:00
Ryan Macnak
bf42524b52 Roll engine to bb9b84ffb8ed0980ec52f488649823e84c1c45d6. 2018-05-01 10:07:10 -07:00
Ryan Macnak
aa514cce46 Roll engine to 7004e0654c537c79788ed02f125b9350ceff7cfe. 2018-05-01 10:07:10 -07:00
Chris Bracken
23adf0085b
Eliminate hardcoding of no-sim-use-hardfp (#17147)
This is now derived automatically from the target platform by
gen_snapshot.
2018-05-01 09:55:23 -07:00
Adrian Secord
1680e55c02 Updated links to Material design guidelines to use short links. (#17077) 2018-04-30 20:29:46 -07:00
Chris Bracken
68a1e2f7aa
Simplify iOS debug build (#17145)
iOS debug builds always run in interpreted mode whether on device or on
simulator. In both cases, we can skip snapshotting and link against an
empty App.framework. Previously, we did this for iOS simulator builds.
This does the same for device builds.

Previously, debug iOS builds used gen_snapshot to generate a core
snapshot, then used 'xxd' to generate C files containing the snapshot
data in buffers named kDartVmSnapshotData and kDartIsolateSnapshotData,
which are then compiled/linked into App.framework. This is unnecessary
since the VM compiled into Flutter.framework already contains this data.
2018-04-30 19:51:30 -07:00
Chris Bracken
c3d43ef4a7
Improve AOT snapshot input verification + cleanup (#17144)
Bugfix: Moves AOT snapshot input verification past where the last input
is added to the inputs list.

Cleanup:
* Extracts _isValidAotPlatform method.
* Moves non-platform-specific logic to the top.
* Moves variable declaration closer to first use, and inlines to a
  narrower scope where possible.

This relands #17136, which was reverted in #17142 due to breakage in
on-device iOS debug builds.
2018-04-30 19:15:09 -07:00
Chris Bracken
d19bdc4339
Revert "Improve AOT snapshot input verification + cleanup (#17136)" (#17142)
This reverts commit 100be23a341a4206a76e19087bd899a1b1fe2b5e.
2018-04-30 17:34:36 -07:00
xster
709b0cb285
Accessibility fixes for new gallery (#16973) 2018-04-30 17:19:00 -07:00
Chris Bracken
100be23a34
Improve AOT snapshot input verification + cleanup (#17136)
Bugfix: Moves AOT snapshot input verification past where the last input
is added to the inputs list.

Cleanup:
* Extracts _isValidAotPlatform method.
* Moves non-platform-specific logic to the top.
* Moves variable declaration closer to first use, and inlines to a
  narrower scope where possible.
2018-04-30 16:47:03 -07:00
Todd Volkert
b2c67e88d4
Make Layer.toImage() accept bounds rather than size (#17129)
It allows callers to account for things like shadows that paint
outside the bounds of the widget.

https://github.com/flutter/flutter/issues/16859
2018-04-30 15:26:17 -07:00
Todd Volkert
5972fdb7aa
Fix RenderView.paintBounds (#17126)
It should account for the device pixel ratio

https://github.com/flutter/flutter/issues/16859
2018-04-30 13:48:42 -07:00
Chris Bracken
98ec321ad6
Merge two large switch blocks in AOT snapshotting (#17123)
No functional changes. Merges two platform switch statements and
eliminates an iOS-specific local.
2018-04-30 13:37:45 -07:00
Hans Muller
286cdf43f0
Add support for the Malay (ms) locale (#17121) 2018-04-30 11:12:25 -07:00
Todd Volkert
e19db89a0e
Add basic support for golden image file testing (#17094)
* Add a `matchesGoldenFile()` async matcher that will match
  a finder's widget's rasterized image against a golden file.
* Add support for pluggable image comparison backends
* Add a default backend that does simplistic PNG byte
  comparison on locally stored golden files.
* Add support for `flutter test --update-goldens`, which will
  treat the rasterized image bytes produced during the test
  as the new golden bytes and update the golden file accordingly

Still TODO:

* Add support for the `flutter_test_config.dart` test config hook
* Utilize `flutter_test_config.dart` in `packages/flutter/test`
  to install a backend that retrieves golden files from a dedicated
  `flutter/goldens` repo

https://github.com/flutter/flutter/issues/16859
2018-04-30 10:35:56 -07:00
Todd Volkert
dedd180f9f
Fix expectLater to not wrap the delegate in a guard (#17085)
Follow-up to https://github.com/flutter/flutter/pull/17063

https://github.com/flutter/flutter/issues/16859
2018-04-30 10:05:04 -07:00
Hans Muller
5c2259d505
Cross fade gallery UI front layer (#17064) 2018-04-30 08:23:11 -07:00
Mikkel Nygaard Ravn
7a0ebad092
Revert "Flutter tools recommend using Cocoapods 1.5.0 (#16971)" (#17110)
This reverts commit 6e26cc28ba4558ac35dcac8eaea3df4fd37a41e1.
2018-04-30 11:45:58 +02:00
Mikkel Nygaard Ravn
6e26cc28ba
Flutter tools recommend using Cocoapods 1.5.0 (#16971) 2018-04-30 11:24:09 +02:00
Chris Bracken
cdbb2385f1
Extract kernel compile from buildAotSnapshot (#17062)
Moves the kernel compile step to the beginning of the AOT build in a
separate method. This is pre-factoring for iOS universal builds where
the kernel build happens once, but we then snapshot twice: once for
armv7 and once for arm64.

This also writes dependencies to build/kernel_compile.d rather than
build/aot/snapshot.d, since that is immediately overwritten by
gen_snapshot.
2018-04-29 10:47:34 -07:00
Todd Volkert
8860627b63
Add WidgetTester.runAsync() (#17029)
This will allow callers to run real async code within a widget test.

https://github.com/flutter/flutter/issues/16859
2018-04-28 15:14:46 -07:00