Commit graph

12024 commits

Author SHA1 Message Date
Chris Bracken b07d986f66
Eliminate snapshot, depfile opts from bundle cmd (#22495)
Eliminates the --snapshot and --depfile parameters from the flutter
bundle command. The snapshot parameter is unused in Dart 2 -- code is
built to kernel .dill files and for profile/release builds, then AOT
compiled.

While depfiles are still used in Dart 2 (e.g. by the kernel compiler),
there are enough assumptions in the code that they lie in the default
location (e.g. in the Gradle build) and no reasons to support
user-cusomisation that it makes sense to eliminate the --depfile option
as well, and always use the default location.

This commit also renames 'depFilePath' to 'depfilePath' for consistency
across the codebase.
2018-10-01 10:19:37 -07:00
jslavitz a7303e040d
Selection controls internationalization (#22443)
* Fix internationalization issues with cupertinoTextSelectionControls
2018-10-01 10:04:08 -07:00
Tran Huy Phuc 481cb77a4c Fix flutter emaultors crash when ini file is not parsed (#22503)
Fixes #22247.
2018-10-01 18:02:43 +01:00
xster ac9dc5745e
Add support for material agnostic driver navigation (#22461) 2018-10-01 09:18:20 -07:00
Viet Do 2a8e35cc9c Cupertino Date Picker (#21251) 2018-09-28 18:29:28 -07:00
jslavitz efc5123d29
Chip press elevation (#22383)
* Make Chip press elevation customizable.
2018-09-28 16:12:55 -07:00
xster 75b24070dd
Add API docs link to each gallery demo (#22379) 2018-09-28 16:06:41 -07:00
Alexander Markov c60560fb16 Roll engine to 0c2b6dc6e3395b41ea284c505067455a4081949e (with Dart roll) 2018-09-28 15:16:36 -07:00
Alexander Markov c51aaf95a8 Roll engine to 277c895111e2c3d4cc27bb37df7540dd67c669f1 2018-09-28 15:16:36 -07:00
shrike69 c496751ae8
Change flutter tool to not require Fuchsia build args (#22382)
* Change flutter tool to not require Fuchsia build args

* Restore code that was commented out.

* Fix style nits.
2018-09-28 15:13:47 -07:00
Stanislav Baranov 54c10f44b2
Implement build flow for hot updates on Android (#22391)
This also involves switching from Core JIT to App JIT snapshot, and replacing per-isolate VM snapshot with the shared VM snapshot.

For now there is no separate update bundle file, as the generated update gets packaged directly into the APK for testing purposes.
2018-09-28 13:58:37 -07:00
liyuqian b65d3bceaa
2a22019a8d...7dc6b3a8ee (#22441)
git log 2a22019a8dd8..7dc6b3a8eeef --no-merges --oneline
7dc6b3a8e Skip non-existing libflutters for symbol check (flutter/engine#6374)
0cd9ee372 Add more debug loging to symbol verification script (flutter/engine#6372)
fcb3c519b Roll src/third_party/skia b726c89ff8a8..d004e0b55c4a (1 commits) (flutter/engine#6373)
5e3d786d0 Use nm from buildtools (flutter/engine#6371)
2018-09-28 13:19:55 -07:00
liyuqian 783c028f2c
Don't push offset to leaf layers (#21619)
For retained rendering, we don't want to push the offset down to each leaf layer. Otherwise, changing an offset layer on the very high level could cascade the change to too many leaves, which means that we can't retain them.

To not push the offset downwards, we simply push a TransformLayer when there's an offset. Skia has a fast path for concatenating scale/translation-only matrix so this operation should be fast (no performance regression is measured on Moto G4).

This is our first step towards https://github.com/flutter/flutter/issues/21756
2018-09-28 12:21:43 -07:00
Andrew Davies 1c2f478e9e
[frdp][connection] Exception checks in _getDartVm (#22386)
Through some integration testing checks, it looks like it's possible
that connecting to a new instance of the Dart VM may fail even after the
Dart VM instance has been discovered.

This means that _getDartVm should be checked in more than just one
place.  This changes the function to return a null value in the event of
a 'well-known' exception (`HttpException` or `TimeoutException`
specifically).

As a result, code now calling _getDartVm checks for null and handles it
as appropriate, and the DartVm RPC calls are all updated with
consistent timeout params.
2018-09-28 11:40:36 -07:00
shrike69 fd8a9603ac
Remove waitForViews() during hot reload (#22371) 2018-09-28 11:35:38 -07:00
liyuqian 5f739a1ed2
2a22019a8d...9ae1c14c35 (#22434)
git log 2a22019a8dd8..9ae1c14c3515 --no-merges --oneline
9ae1c14c3 Update observatory-port default behavior description. (flutter/engine#6365)
5550fdbc2 Remove cull_rects_ from SceneBuilder (flutter/engine#6352)
75e404f39 Roll src/third_party/skia 656cefe65d62..b726c89ff8a8 (8 commits) (flutter/engine#6370)
2018-09-28 11:24:41 -07:00
liyuqian 598ef49051
Put opacity image source inside "Sample code" (#22385)
See https://github.com/flutter/flutter/pull/22278#pullrequestreview-159230244
2018-09-28 11:10:11 -07:00
liyuqian a0944bb228
Revert "Roll engine 2a22019a8dd8..51de09c7e0e1 (10 commits) (#22426)" (#22433)
This reverts commit 7b2d34621d.
2018-09-28 10:23:07 -07:00
engine-flutter-autoroll 7b2d34621d Roll engine 2a22019a8dd8..51de09c7e0e1 (10 commits) (#22426)
2a22019a8d...51de09c7e0

git log 2a22019a8dd8..51de09c7e0e1 --no-merges --oneline
51de09c7e Roll src/third_party/skia 10d12834c8db..f88f49d2a52e (1 commits) (flutter/engine#6377)
c0b44bc20 Roll src/third_party/skia d004e0b55c4a..10d12834c8db (1 commits) (flutter/engine#6376)
77c30cadd make sure we dont set live regionin api level < 18 (flutter/engine#6375)
7dc6b3a8e Skip non-existing libflutters for symbol check (flutter/engine#6374)
0cd9ee372 Add more debug loging to symbol verification script (flutter/engine#6372)
fcb3c519b Roll src/third_party/skia b726c89ff8a8..d004e0b55c4a (1 commits) (flutter/engine#6373)
5e3d786d0 Use nm from buildtools (flutter/engine#6371)
9ae1c14c3 Update observatory-port default behavior description. (flutter/engine#6365)
5550fdbc2 Remove cull_rects_ from SceneBuilder (flutter/engine#6352)
75e404f39 Roll src/third_party/skia 656cefe65d62..b726c89ff8a8 (8 commits) (flutter/engine#6370)

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-28 09:58:37 -07:00
Dan Field 8081336966
Fix red tree (#22432)
* fix race in devicelab concurrent hot reload

* only complete future once!
2018-09-28 09:43:42 -07:00
Dan Field 2c61067387
fix race in devicelab concurrent hot reload (#22403) 2018-09-28 09:01:39 -07:00
Siva 11ed8aa164
Roll engine version to 2a22019a8dd8d8f6666af55f9d5f15c4c709e3b8 (#22398)
This roll contains the following changes
2a22019a8 Roll Dart to version 7f9a9feae181573cca609fd1b8760d7992176699 (#6366)
0fa159a26 Add debug info to figure out why the bots are unhappy (#6369)
e031ccef7 Add missing binding for pushOffset (#6367)
2018-09-27 21:38:17 -07:00
engine-flutter-autoroll 4b1717a2c1
Roll engine d80c1de7b53a..8176f4d3c467 (3 commits) (#22390)
d80c1de7b5...8176f4d3c4

git log d80c1de7b53a..8176f4d3c467 --no-merges --oneline
8176f4d3c Roll buildroot to 96d2493887daabe6877142caa8504a2f964b0e7e (flutter/engine#6364)
27f77cbef Document that all MethodChannel callbacks must be called on the main thread. (flutter/engine#6245)
e6c173392 Script to verify exported symbols on release binaries (flutter/engine#6363)


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-27 21:26:32 -04:00
jslavitz 657a41ed8c
Vertical divider (#22377)
* Add vertical divider option.

* added vertical divider

* restored hello world

* final changes

* a few changes

* comment fixes

* added VerticalDivider

* few changes

* comment changes:

* ultra nits
2018-09-27 16:37:33 -07:00
asiva 556568ffe6 Fix quotes. 2018-09-27 15:17:03 -07:00
asiva 5024871a05 Fix error message. 2018-09-27 15:17:03 -07:00
asiva aef9804784 Roll engine to version d80c1de7b53af81a0b4385eb3f13de1ef77f0d2d
Contains the following changes:

d80c1de7b (HEAD -> master, upstream/master) Roll src/third_party/skia ab3144c3abb9..656cefe65d62 (11 commits) (#6362)
edf6249e0 Add pushOffset to SceneBuilder (#6349)
3a01f3956 Change log level from ERROR to WARNING (#6361)
5ae470845 Roll src/third_party/skia 227d4e10276c..ab3144c3abb9 (11 commits) (#6360)
763627fff Do not export libdart symbols (#6337)
3052dbd79 SystemNavigator.pop can pop w/o UINavigationController (#6341)
0c096f798 Roll src/third_party/skia b3e48afc936d..227d4e10276c (1 commits) (#6359)
b8c2a17a1 Roll src/third_party/skia cfe1264d7465..b3e48afc936d (3 commits) (#6356)
c589b312a Expose push/popRoute on FlutterViewController (#6347)
075b3fcca Roll src/third_party/skia 5ea41fc89b26..cfe1264d7465 (1 commits) (#6355)
2dd9b99aa Roll Dart to version 808ed6238b9262660e31ea826f7aea6cfa3a3493 (#6354)
5b799381f Dont make any binaries specify an X11 dependency. (#6353)
309ac4e1b V0.8.2 fix compile problem with xcode10 (#6339)
26fdd1e4f Roll src/third_party/skia 5767fc042834..5ea41fc89b26 (3 commits) (#6351)
cc44ca5d0 Perform persistent cache stores on the IO thread outside the frame workload. (#6350)
f2a3df97e Wire up the Skia persistent GPU related artifacts cache. (#6278)
2018-09-27 15:17:03 -07:00
xster 6cdf953241 Revert "remove code signing special casing for Googlers (#22287)" (#22376)
This reverts commit 1eb38abdb7.
2018-09-27 14:43:54 -07:00
xster 1eb38abdb7
remove code signing special casing for Googlers (#22287) 2018-09-27 14:03:52 -07:00
James D. Lin f6c154c39c
Improve Swift usage in platform_channel_swift some more (#22318)
Improve Swift usage in platform_channel_swift some more

Make a bunch of changes that willlarche requested in
https://github.com/flutter/flutter/pull/21712:

* Use `static let` within `enum` namespaces for String constants.
* Use `guard` for early exits and to avoid forced unwrapping.
* Explicitly qualify a selector.
* Fix a retain cycle by using a weak reference.
2018-09-27 13:44:16 -07:00
Jacob Richman 5225f3d235
Revert "Only register WidgetInspectorService extension in debug builds." (#22366)
This reverts commit 11350fed7f.
2018-09-27 13:39:44 -07:00
MH Johnson 1ad9f01255
Remove extra space in widget_inspector dart doc (#22359) 2018-09-27 15:20:03 -04:00
xster 79dae000c8
Support activeIcon in CupertinoTabBar (#22323) 2018-09-27 11:17:00 -07:00
liyuqian d5b21997f4
Roll engine 38a646e14cc2..9d4b80a60cb5 (13 commits) (#22358)
38a646e14c...9d4b80a60c

git log 38a646e14cc2..9d4b80a60cb5 --no-merges --oneline
9d4b80a60 Roll src/third_party/skia 17282da3aa94..5767fc042834 (8 commits) (flutter/engine#6348)
ef98dcb11 Add support for counter timeline traces from the engine. (flutter/engine#6315)
a961e96d1 Roll buildroot to pick up updated vs toolchain. (flutter/engine#6346)
d6bb59978 Fixed IsolateNameServer documentation (flutter/engine#6344)
0c854ac01 Roll src/third_party/skia bdf1431686c2..17282da3aa94 (4 commits) (flutter/engine#6345)
e394ea1dd Roll src/third_party/skia c05302bc84da..bdf1431686c2 (1 commits) (flutter/engine#6343)
bcdfc2312 Roll src/third_party/skia 5457141b011e..c05302bc84da (1 commits) (flutter/engine#6342)
a861f37f7 Pass on the new unsafe-package-serialization option (flutter/engine#6331)
5e77a1e46 Roll src/third_party/skia bd03b54cb98d..5457141b011e (1 commits) (flutter/engine#6340)
6332db875 Roll src/third_party/skia f18c297cfb74..bd03b54cb98d (1 commits) (flutter/engine#6338)
a08bc52e8 Roll src/third_party/skia 7ffa40cedbc4..f18c297cfb74 (6 commits) (flutter/engine#6336)
8247ce26b Implement restore functions on Android and iOS (flutter/engine#6322)
2ead5c06c Roll src/third_party/skia 4ef464cd3c2e..7ffa40cedbc4 (10 commits) (flutter/engine#6334)
2018-09-27 10:49:31 -07:00
Peter Zagoranski acbef6aac4 Added elevation to BottomSheet (#21998) 2018-09-27 10:08:33 -07:00
Derek Hannah fafd615a81 updated Flutter Doctor grammar (#19676)
* updated Flutter Doctor grammar

* updated messaging based on a suggestion by Greg Spencer

* grammar update
2018-09-27 09:47:36 -07:00
James D. Lin 1dc3e98af0 Fix a retain cycle in the Objective-C platform_channel example (#22321) 2018-09-27 09:45:50 -07:00
Yasutaka Kawamoto 7d47f04ddc Removed then (#22346) 2018-09-27 18:20:11 +02:00
Øystein K 35e9a84c0e Added more cupertino icons (#22347)
Microphone, clock, time, padlock and eye icons added (both outlined and solid)
2018-09-27 09:16:13 -07:00
Michael Klimushyn 020fd590b0
Prevent dropdown menu's scroll offset from going negative (#22235)
In long lists this resulted in the dropdown scrolling to the very last
item in its list. Now clamping the value at `0.0`. Added a test to
verify that the selected item aligns with the button to test the offset.

Fixes flutter/flutter#15346
2018-09-26 14:28:26 -07:00
Jonah Williams 63f2fb9f5d
Add coverage directory to fuchsia coverage script (#22236) 2018-09-26 13:17:20 -07:00
liyuqian 84c61ad640
Add doc for transparent image inside Opacity (#22278) 2018-09-26 13:03:26 -07:00
James D. Lin 960d669897
Make platform_channels_swift use more idiomatic Swift (#21712)
Make platform_channels_swift use more idiomatic Swift

* Remove semicolons.
* `if (condition)` => `if condition`.
* `Class.init(...)` => `Class(...)`.
* Remove `break` statements from `switch` cases.
* Remove some unnecessary uses of `self`.
2018-09-26 11:13:10 -07:00
MH Johnson a2dbc20b77
[Documentation] Replaced lerp dart docs with macro (#22309) 2018-09-26 13:12:18 -04:00
Greg Spencer 306bcbde8a Fixes terse doctor output when no devices available. (#22108) 2018-09-26 09:33:08 -07:00
Yegor f16d005d66
remove _ListenerMixin, which provides dubious value (#22268)
* remove _ListenerMixin, which provides dubious value

* remove trailing whitespace
2018-09-26 09:30:45 -07:00
xster 6b94e6b168 Fix picker demo safe area layout (#22244) 2018-09-26 09:28:27 -07:00
Hans Muller 63efe4c4ac
Fix some TabBarTheme mergeOs (#22285) 2018-09-26 09:11:18 -07:00
Mikkel Nygaard Ravn 52697ef962 Fixes to support add2app on iOS (#22277)
* Fix xcode_backend.sh script to support add2app

* Fix ios deployment target. Too old for new Xcode.

* Fix ios host app

* Register plugins with Flutter view
2018-09-26 01:57:05 -04:00
Michael Goderbauer eda228404c
Strip debug symbols from App.framework for non-debug builds (#22245)
A dSYM file is created for the stripped `App.framework` and placed at `build/aot/App.dSYM`.

Reduces `App.framework` for Flutter Gallery by 6MB uncompressed, minus 23%.
Reduces `App.framework` for Hello World by 1.6MB uncompressed, minus 22%.

Fixes #4287.
Fixes #18693.
Helps with #21813.
See also #12012.

This change depends on https://dart-review.googlesource.com/c/sdk/+/76306.
2018-09-26 00:57:39 +02:00