Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 059291c

Browse files
Merge pull request #9 from flutter/master
Update master
2 parents b64dd60 + 7dccc73 commit 059291c

File tree

460 files changed

+13189
-4330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

460 files changed

+13189
-4330
lines changed

.cirrus.yml

Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
gcp_credentials: ENCRYPTED[987a78af29b91ce8489594c9ab3fec21845bbe5ba68294b8f6def3cf0d380830f06687a89ea69c87344c5ade369700fe]
22

33
web_shard_template: &WEB_SHARD_TEMPLATE
4-
only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''"
4+
only_if: "changesInclude('.cirrus.yml', 'DEPS', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''"
55
environment:
6-
# As of October 2019, the Web shards needed more than 6G of RAM.
7-
CPU: 2
8-
MEMORY: 8G
6+
# As of March 2020, the Web shards needed 16G of RAM and 4 CPUs to run all framework tests with goldens without flaking.
7+
CPU: 4
8+
MEMORY: 16G
99
compile_host_script: |
1010
cd $ENGINE_PATH/src
1111
./flutter/tools/gn --unoptimized --full-dart-sdk
@@ -60,10 +60,23 @@ task:
6060
cd $ENGINE_PATH/src/out/host_release/
6161
./txt_benchmarks --benchmark_format=json > txt_benchmarks.json
6262
./fml_benchmarks --benchmark_format=json > fml_benchmarks.json
63+
./shell_benchmarks --benchmark_format=json > shell_benchmarks.json
6364
cd $ENGINE_PATH/src/flutter/testing/benchmark
6465
pub get
6566
dart bin/parse_and_send.dart ../../../out/host_release/txt_benchmarks.json
6667
dart bin/parse_and_send.dart ../../../out/host_release/fml_benchmarks.json
68+
dart bin/parse_and_send.dart ../../../out/host_release/shell_benchmarks.json
69+
- name: build_and_test_linux_release
70+
compile_host_script: |
71+
cd $ENGINE_PATH/src
72+
./flutter/tools/gn --runtime-mode=release
73+
ninja -C out/host_release
74+
test_host_script: |
75+
cd $ENGINE_PATH/src
76+
./flutter/testing/run_tests.sh host_release
77+
78+
# The following test depends on Flutter framework repo. It may fail if the
79+
# framework repo is currently broken.
6780
- name: build_and_test_linux_unopt_debug
6881
compile_host_script: |
6982
cd $ENGINE_PATH/src
@@ -126,6 +139,16 @@ task:
126139
- name: web_tests-7_last-linux # last Web shard must end with _last
127140
<< : *WEB_SHARD_TEMPLATE
128141

142+
- name: web_engine_analysis
143+
compile_host_script: |
144+
cd $ENGINE_PATH/src
145+
./flutter/tools/gn --unoptimized --full-dart-sdk
146+
ninja -C out/host_debug_unopt
147+
script:
148+
- cd $ENGINE_PATH/src/flutter/lib/web_ui
149+
- $ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
150+
- $ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dartanalyzer --fatal-warnings --fatal-hints dev/ lib/ test/ tool/
151+
129152
- name: web_engine_integration_test_linux
130153
compile_host_script: |
131154
cd $ENGINE_PATH/src
@@ -146,6 +169,9 @@ task:
146169
- $FRAMEWORK_PATH/flutter/bin/flutter config --local-engine=host_debug_unopt --no-analytics --enable-web
147170
- $FRAMEWORK_PATH/flutter/bin/flutter pub get --local-engine=host_debug_unopt
148171
- $FRAMEWORK_PATH/flutter/bin/flutter drive -v --target=test_driver/text_editing_e2e.dart -d web-server --release --browser-name=chrome --local-engine=host_debug_unopt
172+
- $FRAMEWORK_PATH/flutter/bin/flutter drive -v --target=test_driver/platform_messages_e2e.dart -d web-server --release --browser-name=chrome --local-engine=host_debug_unopt
173+
- $FRAMEWORK_PATH/flutter/bin/flutter drive -v --target=test_driver/treeshaking_e2e.dart -d web-server --profile --browser-name=chrome --local-engine=host_debug_unopt
174+
- $FRAMEWORK_PATH/flutter/bin/flutter drive -v --target=test_driver/image_loading_e2e.dart -d web-server --release --browser-name=chrome --local-engine=host_debug_unopt
149175

150176
- name: build_and_test_web_linux_firefox
151177
compile_host_script: |
@@ -186,40 +212,3 @@ task:
186212
cd $ENGINE_PATH/src
187213
./flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version HEAD --runtime-mode debug --no-lto --archs x64
188214
cd $ENGINE_PATH/src/flutter
189-
190-
# WINDOWS
191-
task:
192-
gce_instance:
193-
image_project: flutter-cirrus
194-
image_name: flutter-engine-windows-server-2016
195-
zone: us-central1-a
196-
platform: windows
197-
cpu: 32
198-
memory: 32Gb
199-
disk: 50
200-
env:
201-
# Cirrus is somehow not picking up the environment variables set in the VM image.
202-
PATH: "c:/depot_tools;c:/MinGit/cmd;$PATH"
203-
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
204-
GYP_MSVS_OVERRIDE_PATH: "c:/Program Files (x86)/Microsoft Visual Studio/2017/Community"
205-
ENGINE_PATH: "c:/flutter/engine"
206-
setup_script: |
207-
REM robocopy can return 1 for successful copy; suppress its error code.
208-
REM move somehow doesn't work as it complains that the file is being used by another process.
209-
robocopy %CIRRUS_WORKING_DIR% %ENGINE_PATH%/src/flutter /MIR| (cmd /s /c exit /b 0)
210-
cd %ENGINE_PATH%/src
211-
gclient sync
212-
matrix:
213-
- name: build_and_test_windows_unopt_debug
214-
compile_host_script: |
215-
cd %ENGINE_PATH%/src
216-
python flutter/tools/gn --runtime-mode debug --unoptimized
217-
ninja -C out/host_debug_unopt
218-
test_host_script: |
219-
cd %ENGINE_PATH%/src
220-
python flutter/testing/run_tests.py --type=engine
221-
- name: build_windows_opt_debug
222-
compile_host_script: |
223-
cd %ENGINE_PATH%/src
224-
python flutter/tools/gn --runtime-mode debug
225-
ninja -C out/host_debug

.github/auto_assign.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ reviewers:
2020
- franciscojma86
2121
- cbracken
2222
- flar
23-
- stuartmorgan
2423

2524
# A number of reviewers added to the pull request
2625
# Set 0 to add all the reviewers (default: 0)

BUILD.gn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ group("flutter") {
1919

2020
public_deps = []
2121

22-
if (!(is_fuchsia && using_fuchsia_sdk)) {
22+
if (!is_fuchsia) {
2323
public_deps += [
2424
"//flutter/lib/snapshot:generate_snapshot_bin",
2525
"//flutter/lib/snapshot:kernel_platform_files",
@@ -40,14 +40,14 @@ group("flutter") {
4040
public_deps += [ "//flutter/tools/const_finder" ]
4141
}
4242

43-
if (is_fuchsia && using_fuchsia_sdk) {
43+
if (is_fuchsia) {
4444
public_deps += [
4545
"//flutter/shell/platform/fuchsia",
4646
"//flutter/shell/testing($host_toolchain)",
4747
]
4848
}
4949

50-
if (!is_fuchsia && !is_fuchsia_host) {
50+
if (!is_fuchsia) {
5151
if (current_toolchain == host_toolchain) {
5252
public_deps += [
5353
"//flutter/flutter_frontend_server:frontend_server",
@@ -75,6 +75,8 @@ group("flutter") {
7575
"//flutter/lib/ui:ui_unittests",
7676
"//flutter/runtime:runtime_unittests",
7777
"//flutter/shell/common:shell_unittests",
78+
"//flutter/shell/platform/common/cpp:common_cpp_core_unittests",
79+
"//flutter/shell/platform/common/cpp:common_cpp_unittests",
7880
"//flutter/shell/platform/common/cpp/client_wrapper:client_wrapper_unittests",
7981
"//flutter/shell/platform/embedder:embedder_unittests",
8082
"//flutter/shell/platform/glfw/client_wrapper:client_wrapper_glfw_unittests",

DEPS

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ vars = {
2626
'skia_git': 'https://skia.googlesource.com',
2727
# OCMock is for testing only so there is no google clone
2828
'ocmock_git': 'https://github.com/erikdoe/ocmock.git',
29-
'skia_revision': '320c32bfa3062b0c67270667df5e4df1856f176e',
29+
'skia_revision': 'ad653d8378d7a17502956c4addebb68eb3129961',
3030

3131
# When updating the Dart revision, ensure that all entries that are
3232
# dependencies of Dart are also updated to match the entries in the
3333
# Dart SDK's DEPS file for that revision of Dart. The DEPS file for
3434
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
3535
# You can use //tools/dart/create_updated_flutter_deps.py to produce
3636
# updated revision list of existing dependencies.
37-
'dart_revision': '7c5059f528814e14dc9ff29ee1629b922daf77a4',
37+
'dart_revision': '3e43a3dcadf96c0f1e30b12e0a1805df5a336c3c',
3838

3939
# WARNING: DO NOT EDIT MANUALLY
4040
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
41-
'dart_args_tag': '1.5.3',
42-
'dart_async_tag': '2.0.8',
41+
'dart_args_tag': '1.6.0',
42+
'dart_async_tag': '2.4.1',
4343
'dart_bazel_worker_tag': 'v0.1.22',
4444
'dart_boolean_selector_tag': '1.0.4',
4545
'dart_boringssl_gen_rev': 'b9e27cff1ff0803e97ab1f88764a83be4aa94a6d',
@@ -60,9 +60,9 @@ vars = {
6060
'dart_http_retry_tag': '0.1.1',
6161
'dart_http_tag': '0.12.0+2',
6262
'dart_http_throttle_tag': '1.0.2',
63-
'dart_intl_tag': '0.15.7',
63+
'dart_intl_tag': '0.16.1',
6464
'dart_json_rpc_2_tag': '2.0.9',
65-
'dart_linter_tag': '0.1.112',
65+
'dart_linter_tag': '0.1.115',
6666
'dart_logging_tag': '0.11.3+2',
6767
'dart_markdown_tag': '2.1.1',
6868
'dart_matcher_tag': '0.12.5',
@@ -71,14 +71,13 @@ vars = {
7171
'dart_mustache_tag': '5e81b12215566dbe2473b2afd01a8a8aedd56ad9',
7272
'dart_oauth2_tag': '1.2.1',
7373
'dart_observatory_pub_packages_rev': '0894122173b0f98eb08863a7712e78407d4477bc',
74-
'dart_package_config_tag': '87a8b5184020ebcc13b34ee95dde58f851b68ca3',
75-
'dart_package_resolver_tag': '1.0.10',
74+
'dart_package_config_tag': 'v1.9.2',
7675
'dart_path_tag': '1.6.2',
77-
'dart_pedantic_tag': 'v1.8.0',
76+
'dart_pedantic_tag': 'v1.9.0',
7877
'dart_pool_tag': '1.3.6',
7978
'dart_protobuf_rev': '3746c8fd3f2b0147623a8e3db89c3ff4330de760',
80-
'dart_pub_rev': '429a06039d185149f387a65e3503b0693ce6d24e',
81-
'dart_pub_semver_tag': '1.4.2',
79+
'dart_pub_rev': '3606265962da4248d34d352aa3d170aae4496a90',
80+
'dart_pub_semver_tag': 'v1.4.4',
8281
'dart_quiver-dart_tag': '2.0.0+1',
8382
'dart_resource_rev': 'f8e37558a1c4f54550aa463b88a6a831e3e33cd6',
8483
'dart_root_certificates_rev': '16ef64be64c7dfdff2b9f4b910726e635ccc519e',
@@ -88,7 +87,7 @@ vars = {
8887
'dart_shelf_web_socket_tag': '0.2.2+3',
8988
'dart_source_map_stack_trace_tag': '2.0.0',
9089
'dart_source_maps_tag': '8af7cc1a1c3a193c1fba5993ce22a546a319c40e',
91-
'dart_source_span_tag': '1.5.5',
90+
'dart_source_span_tag': '1.7.0',
9291
'dart_stack_trace_tag': '1.9.3',
9392
'dart_stagehand_tag': 'v3.3.7',
9493
'dart_stream_channel_tag': '2.0.0',
@@ -100,7 +99,7 @@ vars = {
10099
'dart_typed_data_tag': '1.1.6',
101100
'dart_usage_tag': '3.4.0',
102101
'dart_watcher_rev': '0.9.7+14',
103-
'dart_web_socket_channel_tag': '1.0.9',
102+
'dart_web_socket_channel_tag': '1.0.15',
104103
'dart_yaml_tag': '2.2.0',
105104

106105
'ocmock_tag': 'v3.4.3',
@@ -114,6 +113,9 @@ vars = {
114113
# Checkout Windows dependencies only if we are building on Windows.
115114
'download_windows_deps' : 'host_os == "win"',
116115

116+
# Checkout Linux dependencies only when building on Linux.
117+
'download_linux_deps': 'host_os == "linux"',
118+
117119
# An LLVM backend needs LLVM binaries and headers. To avoid build time
118120
# increases we can use prebuilts. We don't want to download this on every
119121
# CQ/CI bot nor do we want the average Dart developer to incur that cost.
@@ -137,7 +139,7 @@ allowed_hosts = [
137139
]
138140

139141
deps = {
140-
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'd14f3c708fb132381f7053b4ee9e628be915ed96',
142+
'src': 'https://github.com/flutter/buildroot.git' + '@' + '036715c76da60220b39312ea066cd65d32c2157d',
141143

142144
# Fuchsia compatibility
143145
#
@@ -177,6 +179,9 @@ deps = {
177179
'src/third_party/icu':
178180
Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '5005010d694e16571b8dfbf07d70817841f80a69',
179181

182+
'src/third_party/khronos':
183+
Var('chromium_git') + '/chromium/src/third_party/khronos.git' + '@' + '7122230e90547962e0f0c627f62eeed3c701f275',
184+
180185
'src/third_party/boringssl':
181186
Var('github_git') + '/dart-lang/boringssl_gen.git' + '@' + Var('dart_boringssl_gen_rev'),
182187

@@ -228,7 +233,7 @@ deps = {
228233
Var('dart_git') + '/dart2js_info.git' + '@' + Var('dart_dart2js_info_tag'),
229234

230235
'src/third_party/dart/third_party/pkg/dartdoc':
231-
Var('dart_git') + '/[email protected].2',
236+
Var('dart_git') + '/[email protected].3',
232237

233238
'src/third_party/dart/third_party/pkg/ffi':
234239
Var('dart_git') + '/ffi.git' + '@' + Var('dart_ffi_tag'),
@@ -377,11 +382,8 @@ deps = {
377382
'src/third_party/dart/third_party/pkg_tested/package_config':
378383
Var('dart_git') + '/package_config.git' + '@' + Var('dart_package_config_tag'),
379384

380-
'src/third_party/dart/third_party/pkg_tested/package_resolver':
381-
Var('dart_git') + '/package_resolver.git' + '@' + Var('dart_package_resolver_tag'),
382-
383385
'src/third_party/dart/tools/sdks':
384-
{'packages': [{'version': 'version:2.8.0-dev.0.0', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
386+
{'packages': [{'version': 'version:2.8.0-dev.18.0', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
385387

386388
# WARNING: end of dart dependencies list that is cleaned up automatically - see create_updated_flutter_deps.py.
387389

@@ -432,7 +434,7 @@ deps = {
432434
'packages': [
433435
{
434436
'package': 'flutter/android/ndk/${{platform}}',
435-
'version': 'version:r19b'
437+
'version': 'version:r21.0.6113669'
436438
}
437439
],
438440
'condition': 'download_android_deps',
@@ -521,8 +523,8 @@ deps = {
521523
'src/buildtools/{host_os}-x64/clang': {
522524
'packages': [
523525
{
524-
'package': 'fuchsia/clang/${{platform}}',
525-
'version': 'git_revision:de39621f0f03f20633bdfa50bde97a3908bf6e98'
526+
'package': 'fuchsia/third_party/clang/${{platform}}',
527+
'version': 'git_revision:7e9747b50bcb1be28d4a3236571e8050835497a6'
526528
}
527529
],
528530
'condition': 'host_os == "mac" or host_os == "linux"',
@@ -536,7 +538,7 @@ deps = {
536538
'packages': [
537539
{
538540
'package': 'fuchsia/sdk/core/mac-amd64',
539-
'version': 'eGWV8Up-Giv-15K1FBRnkFQompVx2GpVBNomG09my_wC'
541+
'version': '8JtFK64mmIC2zTEj9ICMrcQBITqKDZVQluLVKczro9kC'
540542
}
541543
],
542544
'condition': 'host_os == "mac"',
@@ -556,7 +558,7 @@ deps = {
556558
'packages': [
557559
{
558560
'package': 'fuchsia/sdk/core/linux-amd64',
559-
'version': '6ds94xRmD_5jjJ9jn1pngltBcWUyduH4JF-PxklsD50C'
561+
'version': 'LnaL23_DpQsbnbs-byJi-UoGe1XerKCfLjb4_XkxMRoC'
560562
}
561563
],
562564
'condition': 'host_os == "linux"',
@@ -626,4 +628,13 @@ hooks = [
626628
'src/third_party/dart/third_party/7zip.tar.gz.sha1',
627629
],
628630
},
631+
{
632+
'name': 'linux_sysroot',
633+
'pattern': '.',
634+
'condition': 'download_linux_deps',
635+
'action': [
636+
'python',
637+
'src/build/linux/sysroot_scripts/install-sysroot.py',
638+
'--arch=x64'],
639+
},
629640
]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Flutter Engine
22
==============
3+
34
[![Build Status - Cirrus][]][Build status]
45

56
Flutter is Google's mobile app SDK for crafting high-quality native interfaces

analysis_options.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
# private fields, especially on the Window object):
1111

1212
analyzer:
13-
# this test pretends to be part of dart:ui and results in lots of false
14-
# positives.
15-
exclude: [ testing/dart/window_hooks_integration_test.dart ]
13+
exclude: [
14+
# this test pretends to be part of dart:ui and results in lots of false
15+
# positives.
16+
testing/dart/window_hooks_integration_test.dart,
17+
# Fixture depends on dart:ui and raises false positives.
18+
flutter_frontend_server/test/fixtures/lib/main.dart
19+
]
1620
strong-mode:
1721
implicit-casts: false
1822
implicit-dynamic: false

ci/check_gn_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def main():
4141
for gn_file in GetGNFiles(args.root_directory):
4242
if subprocess.call(gn_command + [ gn_file ]) != 0:
4343
print "ERROR: '%s' is incorrectly formatted." % os.path.relpath(gn_file, args.root_directory)
44-
print "Format the same with 'gn format' using the 'gn' binary in //buildtools."
45-
print "Or, run ./ci/check_gn_format.py with '--dry-run false'"
44+
print "Format the same with 'gn format' using the 'gn' binary in third_party/gn/gn."
45+
print "Or, run ./ci/check_gn_format.py without '--dry-run'"
4646
return 1
4747

4848
return 0

ci/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi;
4242

4343
BASE_SHA="$(git fetch $UPSTREAM master > /dev/null 2>&1 && \
4444
(git merge-base --fork-point FETCH_HEAD HEAD || git merge-base FETCH_HEAD HEAD))"
45-
CLANG_FILES_TO_CHECK="$(git diff $DIFF_OPTS $BASE_SHA -- $CLANG_FILETYPES)"
45+
CLANG_FILES_TO_CHECK="$(git ls-files $CLANG_FILETYPES)"
4646
FAILED_CHECKS=0
4747
for f in $CLANG_FILES_TO_CHECK; do
4848
set +e

0 commit comments

Comments
 (0)