10913 Commits

Author SHA1 Message Date
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
Todd Volkert
8b99d1d83c
Add expectLater to flutter_test (#17063)
* Wrap `expectLater()` in flutter_tester so that callers can
  wait for the matcher to complete in their tests

https://github.com/flutter/flutter/issues/16859
2018-04-28 13:54:08 -07:00
Alexander Aprelev
c813eabf50
Roll engine to 613aae032f07b01b9ac2172529e51869431fe465 (dart roll) (#17069)
* Roll to pre-dart engine.

* Roll to dart roll engine.
2018-04-27 22:55:51 -07:00
Todd Volkert
a5a33325ef
Move toImage() impl from RepaintRenderBoundary to OffsetLayer (#17060)
https://github.com/flutter/flutter/issues/16859
2018-04-27 21:19:24 -07:00
Jonah Williams
f0c4bc30c6
Add SemanticService.tooltip method for Android tooltips (#16978) 2018-04-27 20:02:11 -07:00
Hans Muller
6334da0109
Assert that required dialog context args are non-null (#16890) 2018-04-27 16:33:38 -07:00
xster
396298fb39
Give more room for the front layer drag on iPhone X for new Gallery (#16975)
* Give more room for the front layer drag on iPhone X

* Tweak the animation visual effects

* review lint
2018-04-27 16:25:42 -07:00
xster
f8fe5e3cba
Fix some glyph codes that pointed to the wrong places in CupertinoIcons (#16916) 2018-04-27 16:25:14 -07:00
Chris Bracken
fe0de001d9
Eliminate unnecessary buildAotSnapshot parameter (#17056)
This isn't user-specifiable through a flag, so no need to pass it as a
parameter.
2018-04-27 15:51:07 -07:00
Andrew Davies
32d1f0a80a
[frdb] Analyzer fix. (#17057)
Removes unused var.
2018-04-27 13:34:50 -07:00
Jonah Williams
84dbef3982
add route semantics to backdrop widget (#16981) 2018-04-27 13:24:21 -07:00
Andrew Davies
61de5014b6
[frdp] Ignore stale ports. (#16944)
When forwarding all ports, run a test connection to each Dart VM instance, stopping port forwarding if the connection fails.

Also does the same for any batched calls that hit all Dart VM instances.
2018-04-27 13:24:01 -07:00
Chris Bracken
549acac655
Improve AOT build fingerprinting (#17053)
This is a simple refactoring with no functional changes. We now reuse
the existing _isBuildRequired() and _writeFingerprint() functions and
share them with script snapshotting rather than reimplementing their
logic.

Changes the signatures of both to support multiple output files (as
required for AOT snapshotting).
2018-04-27 13:03:40 -07:00
Chris Bracken
972a9e915a
Fix AOT snapshotting depfile path (#17050)
Fixes a bug introduced in 82f969ff0593e1da270bcc18cb0a495877f617df where
the depfile used for AOT snapshotting, useful in particular for skipping
gen_snapshot when inputs/outputs haven't changed since the last build.
2018-04-27 13:03:26 -07:00
Konstantin Scheglov
31156aed43
We can launch if the flutter-tester device is enabled. (#17019) 2018-04-27 09:33:42 -07:00
Hans Muller
bf3bd7667f
New Gallery UI reprise (#17031) 2018-04-27 08:11:20 -07:00
Alexander Aprelev
4033937c89
Roll engine to e11905c6e5ac226fe388b51faacf36cdc2e96d2c. (#17026)
Changes since the last roll:

```
e11905c6e Add tooltip method to Android AccessibilityBridge (#5103)
2ee36e270 Always enable verbose logging on fuchsia. (#5104)
131349f83 Update flutter runner process name to reflect last running shell. (#5102)
ad9826cbb Roll src/third_party/skia/ c79e2d155..47ed6f10e (10 commits; 1 trivial rolls) (#5100)
7617d2889 libtxt: post-process glyph positions in order to accurately right-justify text (#5093)
895c965ce Set file modified callback. (#5096)
956f3eeca Roll src/third_party/skia/ 5c9369eb1..c79e2d155 (7 commits) (#5099)
6e5112214 Roll src/third_party/skia/ 643ab1bf5..5c9369eb1 (1 commit; 1 trivial rolls) (#5098)
a9180ca20 Roll src/third_party/skia/ 6b043cb9c..643ab1bf5 (3 commits; 3 trivial rolls) (#5097)
82d461049 Roll src/third_party/skia/ 1366282bc..6b043cb9c (2 commits) (#5095)
fb4926e65 Roll src/third_party/skia/ 580aee2fa..1366282bc (2 commits) (#5094)
c249b7026 Path metrics/getBounds/combinations again (#4957)
df255b828 Roll src/third_party/skia/ de5cffbc4..580aee2fa (16 commits) (#5092)
e44e1b49f Initial plugin support for background downloads + content fetching (#5082)
78f8a0f45 [fuchsia] Changes for running Dart 2 on flutter_runner. (#5080)
cbec56a3d Roll src/third_party/skia/ 77e95f706..de5cffbc4 (14 commits) (#5090)
8da9398ed Throw an exception if a secondary isolate tries to send a platform message (#5069)
```
2018-04-26 19:54:39 -07:00
Chris Bracken
c38ac4480c
Eliminate unnecessary AOT build wrapper function (#17027)
Inlines the buildAotSnapshot function, which simply passes through its
arguments to Snapshotter.buildAotSnapshot.
2018-04-26 19:03:33 -07:00
Chris Bracken
ebcd08c6ef
Eliminate build aot --interpreter flag (#17025) (#17033)
This is required for iOS debug builds, but unused otherwise. In theory,
Android debug builds could be run in this mode, but this is historically
untested and adds unnecessary complexity to the code. If ad-hoc testing
is required, it can be patched in when necessary.

This re-lands 8c4f0c0d215ca3219923c60fce2cd7c7528acf9b with a fix to
xcode_backend.sh to eliminate the use of --interpreter.
2018-04-26 17:25:23 -07:00
Chris Bracken
e3247a3629
Revert "Eliminate build aot --interpreter flag (#17025)" (#17032)
Requires a fix to xcode_backend.sh. Will followup momentarily with that
fix.

This reverts commit 8c4f0c0d215ca3219923c60fce2cd7c7528acf9b.
2018-04-26 16:30:16 -07:00
Chris Bracken
8c4f0c0d21
Eliminate build aot --interpreter flag (#17025)
This is required for iOS debug builds, but unused otherwise. In theory,
Android debug builds could be run in this mode, but this is historically
untested and adds unnecessary complexity to the code. If ad-hoc testing
is required, it can be patched in when necessary.
2018-04-26 16:07:10 -07:00
Ian Hickson
c482cc4bb3
Add some suggestions for using Column with a SingleChildScrollView (#16500) 2018-04-26 16:06:39 -07:00
Ian Hickson
ca35ddd439
Add some Transform constructors (#16553)
See https://github.com/flutter/flutter/pull/15383
2018-04-26 16:06:17 -07:00
Ian Hickson
7d5e5ebc94
Fix broken link (#16965)
See https://docs.flutter.io/ to see what I mean.
2018-04-26 16:06:04 -07:00
Chris Bracken
82f969ff05
Move AOT snapshotting to Snapshotter class (#17015)
This moves AOT snapshotting out of build_aot.dart and into the
Snapshotter class. It also adds unit tests for iOS debug, profile, and
release builds.
2018-04-26 14:37:39 -07:00
Hans Muller
adf97fb58f
Increased the channels test timeout (#17018)
Increased the channels test timeout
2018-04-26 14:09:23 -07:00
Hans Muller
e62a6451f7
Fixed (#17010) 2018-04-26 10:29:44 -07:00
Jason Simmons
d8f2f36935
Use a space instead of a zero-width space to calculate the preferred height of a line of text (#16972)
The zero-width space character may not be supported by the font requested in
the text style.  If that happens, then libtxt will fall back to another font
to render that character, resulting in text metrics that do not match the
intended font.

Fixes https://github.com/flutter/flutter/issues/16257
2018-04-26 09:42:26 -07:00
Chris Bracken
9765f0af00
Extract Xxd class for iOS AOT snapshotting (#17006)
This fixes and re-lands 4bb7496b6243b13e14712b3b5702928c831a329f, which
was reverted in ceade39c83cf0832b53c4e0fbf17eee6081201ca due to test
failures caused by a bad rebase.
2018-04-26 08:32:51 -07:00
Todd Volkert
ae62a85699
Mark flaky tests as flaky (#17004) 2018-04-26 07:55:57 -07:00
Todd Volkert
ceade39c83
Revert "Extract Xxd class for iOS AOT snapshotting (#16986)" (#17003)
This reverts commit 4bb7496b6243b13e14712b3b5702928c831a329f.
2018-04-26 07:11:06 -07:00
Chris Bracken
4bb7496b62
Extract Xxd class for iOS AOT snapshotting (#16986)
Allows for better mockability when tests are added.
2018-04-25 22:16:59 -07:00
Todd Volkert
dcf05afca1
Add some trace statements to flutter_tools (#16990) 2018-04-25 21:33:25 -07:00
Chris Bracken
cd90a1ed73
Use File.rename instead of mv to move AOT outputs (#16985)
This allows for testing with MemoryFileSystem, when tests are added.
2018-04-25 20:50:53 -07:00
Chris Bracken
b45a260534
Make FakeGenSnapshot's outputs mutable for tests (#16976)
This simplifies tests by allowing the test author to express the outputs
they'd like the snapshotter to generate without creating a whole new
instance and context with the additional overrides.

Also sets the default set of outputs to none, setting them instead in
the setUp function for script snapshotting.
2018-04-25 20:50:33 -07:00
Chris Bracken
2689560b72
Add Xcode.cc, Xcode.clang methods for iOS builds (#16974)
Makes for easier mocking, particularly for testing AOT snapshot build.
2018-04-25 20:50:16 -07:00
Alexander Aprelev
d4ba2f75d1 Roll engine to dart roll. 2018-04-25 20:40:13 -07:00
Alexander Aprelev
aa54267351 Roll engine to pre-dart roll.
Changes since last engine roll:
```
cc72fc1c3 Roll src/third_party/skia/ ec4e7358b..77e95f706 (1 commit) (#5088)
ee2532f2d Roll src/third_party/skia/ e1c37a7b8..ec4e7358b (1 commit) (#5087)
dd34fd178 Roll src/third_party/skia/ 058f2e6ed..e1c37a7b8 (4 commits) (#5086)
b08b15290 Revert "Roll dart to 29d6e963702fcbb0ed0d5ca67d6b5f977ac0c328 (#5083)" (#5085)
```
2018-04-25 20:40:13 -07:00
Devon Carew
647c57dabd
update the build complete message to not include APK sizes for debug builds (#16931) 2018-04-25 20:38:33 -07:00
Hans Muller
38d5d46127 Revert "New Flutter Gallery UI" (#16984)
* Revert "New Flutter Gallery UI (#16936)"

This reverts commit 7038597b02b46d89c23560cbe0e307e55b304b4d.
2018-04-25 18:41:07 -07:00
Jason Simmons
e06f69e1cd
Remove an obsolete workaround for Blink's calculation of baselines (#16966) 2018-04-25 14:24:07 -07:00
Hans Muller
7038597b02
New Flutter Gallery UI (#16936)
A new front-end for the Flutter Gallery example.
2018-04-25 14:15:34 -07:00
xster
76aa02875e
Update Fastlane to adhere to new Play Store API requirement (#16949) 2018-04-25 11:35:35 -07:00
Ian Hickson
d4de73c183
Attempt to fix coveralls.io being confused (#16535)
As suggested by: https://github.com/lemurheavy/coveralls-public/issues/1103
2018-04-25 11:08:17 -07:00
Michael Goderbauer
1d915bacc0
Roll engine to 9859af123eb383ade52208a9db58ac39db84bfc2 (#16947)
flutter/engine@9859af1 Roll dart to 29d6e963702fcbb0ed0d5ca67d6b5f977ac0c328
2018-04-25 10:25:03 -07:00
Michael Goderbauer
8f03d27fa7
Roll engine to 6a93ef1c707fb1fdea697a1c35bf68fc4e2986e3 (#16946)
flutter/engine@6a93ef1 Call SkGraphics::Init earlier on Fuchsia.
flutter/engine@f1234eb Add disabled failing test for floating point errors on matrix decomposition.
flutter/engine@ac68263 Hold a global reference to the AssetManager Java object backing the APKAssetProvider
flutter/engine@0e95bb2 Roll src/third_party/skia/ 2d2c1e32c..058f2e6ed (35 commits; 1 trivial rolls)
flutter/engine@3e20562 Roll src/third_party/skia/ 5209d7fce..2d2c1e32c (42 commits; 1 trivial rolls)
flutter/engine@a20fd83 [fuchsia] Remove dead package file generation from core snapshots.
flutter/engine@79b9ffb Fixup Fuchsia content handler post shell refactor.
2018-04-24 19:14:39 -07:00
josephmr
7f9bf5ade9 Introduce DoctorValidatorsProvider to improve extensibility of flutter_tools (#16918)
DoctorValidatorsProvider is injected into Doctor to allow
overriding of DoctorValidators without needing to override
the whole Doctor instance.
2018-04-24 19:01:53 -07:00
Yegor
a7d7652a5f
Set text direction in semantics along with Directionality (#16907)
* Set text direction in semantics along with Directionality

* update tests for the extra SemanticsNode
2018-04-24 18:29:26 -07:00
xster
00221820df
Remove the initial xcodebuild clean step which seems unnecessary (#16475) 2018-04-24 18:17:24 -07:00