28971 Commits

Author SHA1 Message Date
engine-flutter-autoroll
fc9e84daff
Roll Flutter Engine from e0b2485d24d8 to 97a32340a636 (4 revisions) (#104019) 2022-05-17 16:27:08 -07:00
Christopher Fujino
0116b2e77d
[flutter_tools] fix RangeError in flutter channel command (#103766) 2022-05-17 16:22:12 -07:00
Jonah Williams
2ad7ced916
[flutter_tools] pass --enable-impeller to android (#104014) 2022-05-17 15:52:09 -07:00
Michael Goderbauer
2cbad4b3ae
Final chapter: migrate api doc samples to super-parameters (#104007) 2022-05-17 15:35:07 -07:00
dependabot[bot]
7fdf747723
Bump github/codeql-action from 2.1.10 to 2.1.11 (#104016) 2022-05-17 15:32:11 -07:00
engine-flutter-autoroll
12ffd622f1
Roll Flutter Engine from 1208983f4085 to e0b2485d24d8 (3 revisions) (#104012) 2022-05-17 15:12:09 -07:00
engine-flutter-autoroll
8c141c1157
Roll Flutter Engine from d43c9c3283d9 to 1208983f4085 (1 revision) (#104005) 2022-05-17 13:57:10 -07:00
engine-flutter-autoroll
10087a3b5e
Roll Flutter Engine from 8ab17202937d to d43c9c3283d9 (7 revisions) (#104000) 2022-05-17 12:52:11 -07:00
Aman Verma
8fbf89b9f2
[flutter_tools] throw error when argResults is null (#103827) 2022-05-17 12:37:08 -07:00
engine-flutter-autoroll
9651f1d717
Roll Flutter Engine from fce741dd83cf to 8ab17202937d (7 revisions) (#103982)
* e0f736dab Set error handler (flutter/engine#33402)

* dcd596a99 Roll Dart SDK from 381855557df2 to f3bf9025c141 (1 revision) (flutter/engine#33411)

* 5c2a16e07 Roll Fuchsia Linux SDK from F0_B8WVKY... to IZ7_b83xC... (flutter/engine#33415)

* 4958a245a Roll dart sdk to 1bdb83bddf96c41cc046810c697a2c80bfaaaf19 (flutter/engine#33416)

* d2fd3d852 Roll Fuchsia Mac SDK from t_ky8l6nb... to egBfZMmTP... (flutter/engine#33417)

* d58fc83f1 Roll Dart SDK from 1bdb83bddf96 to 0bc104c3e959 (1 revision) (flutter/engine#33419)

* 8ab172029 Roll Skia from 0a5146ca3ffd to 16fa353926b8 (28 revisions) (flutter/engine#33420)

* Remove fraction translation

* Update codesign.dart

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2022-05-17 11:45:05 -07:00
godofredoc
4c7384c971
Update cirrus secret. (#103957) 2022-05-17 11:37:14 -07:00
Dan Field
1662a14bc8
More missing clipBehavior respects (#103931) 2022-05-17 11:32:11 -07:00
Lau Ching Jun
a633f3df32
Add ability for PrebuiltWindowsApp to accept a zip archive. (#103918) 2022-05-17 11:27:11 -07:00
Dan Field
d54cdf9e18
Add a mechanism to observe layer tree composition. (#103378) 2022-05-17 11:22:11 -07:00
engine-flutter-autoroll
c62a7d4141
Roll Plugins from 486071d7f9bb to a692f840ce72 (7 revisions) (#103986) 2022-05-17 11:17:10 -07:00
Chris Bracken
928bb1229b
[tool] Consistent FakeProcessManager.run/runSync (#103947)
`FakeProcessManager` is a test-oriented implementation of `ProcessManager`
that simulates launching processes and returning `ProcessResult` objects
whose `exitCode`, `stdout`, `stderr` can be used to write platform-portable,
hermetic tests that don't rely on actually launching processes from
executables on disk. Its `run` and `runSync` methods provide asynchronous and
synchronous variants of this functionality.

Previously, the behaviour of `run` and `runSync` were inconsistent with
regards to the treatment of the `stdoutEncoding` (similarly,
`stderrEncoding`) parameters:

`run`:
* if the encoding was null, `ProcessResult.stdout` was returned as a
  String in UTF-8 encoding. This was incorrect. The behaviour as
  specified in `ProcessResult.stdout` is that in this case, a raw
  `List<int>` should be returned.
* If the encoding was unspecified, `ProcessResult.stdout` was returned as
  a `String` in the `io.systemEncoding` encoding. This was correct.
* If the encoding was non-null, `ProcessResult.stdout` was returned as a
  `String` in the specified encoding. This was correct.

`runSync`:
* if the encoding was null, `ProcessResult.stdout` was returned as a
  `List<int>` in UTF-8 encoding. This was incorrect. The behaviour as
  specified in `ProcessResult.stdout` is that in this case, a raw
  `List<int>` should be returned.
* If the encoding was unspecified, `ProcessResult.stdout` was returned as
  `List<int>` in UTF-8 encoding. This was incorrect. The behaviour as
  specified in `ProcessResult.stdout` is that in this case, a String a
  `String` in the `io.systemEncoding` encoding should be returned.
* if the encoding was non-null, `ProcessResult.stdout` was returned as a
  `String` in unknown (but probably UTF-8) encoding. This was incorrect.
  The behaviour as specified in `ProcessResult.stdout` is that in this
  case, a `String` in the specified encoding should be returned.

`_FakeProcess`, from which we obtain the fake stdout and stderr values now
holds these fields as raw `List<int>` of bytes rather than as `String`s. It
is up to the user to supply values that can be decoded with the encoding
passed to `run`/`runAsync`.

`run` and `runAsync` have been updated to set stdout (likewise, stderr) as
specified in the `ProcessResult` documentation.

This is pre-factoring for #102451, in which the tool throws an exception
when processing the JSON output from stdout of the `vswhere.exe` tool,
whose output was found to include the `U+FFFD` Unicode replacement
character during UTF-8 decoding, which triggers a `toolExit` exception
when decoded using our [Utf8Decoder][decoder] configured with `reportErrors` =
true. Because `FakeProcessManager.runAsync` did not previously invoke
`utf8.decode` on its output (behaviour which differs from the non-fake
implementation), it was impossible to write tests to verify the fix.

Ref: https://api.flutter.dev/flutter/dart-io/ProcessResult/stdout.html

Issue: https://github.com/flutter/flutter/issues/102451

[decoder]: fd312f1ccf/packages/flutter_tools/lib/src/convert.dart (L51-L60)
2022-05-17 11:15:54 -07:00
Greg Spencer
1994027986
Add VoidCallbackAction and VoidCallbackIntent (#103518)
This adds a simple VoidCallbackAction and VoidCallbackIntent that allows configuring an intent that will invoke a void callback when the intent is sent to the action subsystem. This allows binding a shortcut directly to a void callback in a Shortcuts widget.

I also added an instance of VoidCallbackAction to the default actions so that simply binding a shortcut to a VoidCallbackIntent works anywhere in the app, and you don't need to add a VoidCallbackAction at the top of your app to make it work.
2022-05-17 11:11:41 -07:00
engine-flutter-autoroll
c248854d17
Roll Flutter Engine from 986700315af9 to fce741dd83cf (3 revisions) (#103944) 2022-05-16 20:57:08 -07:00
engine-flutter-autoroll
fd312f1ccf
Roll Flutter Engine from f1a08ff35920 to 986700315af9 (1 revision) (#103940) 2022-05-16 19:52:09 -07:00
engine-flutter-autoroll
bb9bbc6013
Roll Flutter Engine from 93100729d65d to f1a08ff35920 (2 revisions) (#103938) 2022-05-16 18:37:08 -07:00
Jenn Magder
bf7a32628e
Up CocoaPods minumum to 1.10 (#103655) 2022-05-16 17:42:19 -07:00
engine-flutter-autoroll
09a35537db
Roll Flutter Engine from 10f1bac08d4f to 93100729d65d (1 revision) (#103937) 2022-05-16 17:22:10 -07:00
Jenn Magder
5ce07af9ca
Delete native_ui_tests_ios (#103727) 2022-05-16 15:59:52 -07:00
engine-flutter-autoroll
ef582820a1
Roll Flutter Engine from a277fe24b8b4 to 10f1bac08d4f (5 revisions) (#103927) 2022-05-16 15:19:09 -07:00
Jim Graham
697e930d5e
add noSuchMethod to _MulticastCanvas to unblock smoke testing against forthcoming new getTransform/Clip methods (#103737) 2022-05-16 13:49:10 -07:00
engine-flutter-autoroll
03be77dbf0
Roll Flutter Engine from ccde8fd63a0f to a277fe24b8b4 (2 revisions) (#103916)
* 05ddf054c Add Spell Check Support for Android Engine (flutter/engine#30858)

* a277fe24b Roll Fuchsia Linux SDK from sg5JUw-y-... to F0_B8WVKY... (flutter/engine#33395)
2022-05-16 13:47:25 -07:00
Yegor
21b975041f
[web] do not swallow WebDriver errors (#103754) 2022-05-16 13:44:24 -07:00
Dan Field
fe87538b76
Implement paintsChild on RenderObjects that skip painting on their children (#103768) 2022-05-16 11:29:07 -07:00
engine-flutter-autoroll
6e7f7aea51
Roll Flutter Engine from aeab8402c6cc to ccde8fd63a0f (5 revisions) (#103911) 2022-05-16 11:19:10 -07:00
engine-flutter-autoroll
c60936e5c9
Roll Plugins from 053c4bdb3812 to 486071d7f9bb (3 revisions) (#103904) 2022-05-16 10:04:12 -07:00
engine-flutter-autoroll
1b71c5bf67
Roll Flutter Engine from 498a85623a6d to aeab8402c6cc (1 revision) (#103893) 2022-05-16 09:59:17 -07:00
engine-flutter-autoroll
630f9559ff
Roll Flutter Engine from 08b0cc0d6cda to 498a85623a6d (1 revision) (#103888) 2022-05-16 04:24:10 -07:00
engine-flutter-autoroll
6cdefebe34
Roll Flutter Engine from c40bc1313c67 to 08b0cc0d6cda (1 revision) (#103884) 2022-05-16 02:54:07 -07:00
engine-flutter-autoroll
e01522c83e
Roll Flutter Engine from b6fb2c1bce06 to c40bc1313c67 (1 revision) (#103878) 2022-05-16 01:49:06 -07:00
engine-flutter-autoroll
497a10878f
Roll Flutter Engine from 1b064fd1a39f to b6fb2c1bce06 (2 revisions) (#103875) 2022-05-16 00:44:07 -07:00
engine-flutter-autoroll
36f9a186bf
Roll Flutter Engine from c581fa93ff3c to 1b064fd1a39f (1 revision) (#103860) 2022-05-15 11:34:06 -07:00
engine-flutter-autoroll
90f7b96d73
Roll Flutter Engine from 23a215c87473 to c581fa93ff3c (1 revision) (#103859) 2022-05-15 09:14:05 -07:00
engine-flutter-autoroll
955692128c
Roll Flutter Engine from d093c43b3aef to 23a215c87473 (1 revision) (#103849) 2022-05-15 04:29:07 -07:00
engine-flutter-autoroll
e4840f6a63
Roll Flutter Engine from fdf2ddc04cbe to d093c43b3aef (1 revision) (#103845) 2022-05-15 01:24:05 -07:00
engine-flutter-autoroll
aa2f567bab
Roll Flutter Engine from decfc94a44ef to fdf2ddc04cbe (1 revision) (#103841) 2022-05-14 23:34:05 -07:00
engine-flutter-autoroll
758f08df66
Roll Flutter Engine from d09cf345042f to decfc94a44ef (2 revisions) (#103837) 2022-05-14 22:29:04 -07:00
Chris Bracken
6eb12c6843
[macOS] Update template icons to Big Sur style (#103739)
Updates the AppIcon assets in the macOS app template to meet Apple's
icon guidelines as of macOS Big Sur. Assets were moved to the
[flutter_template_images][1] package, which includes them as of version
4.1.0.

Ref: https://developer.apple.com/design/human-interface-guidelines/macos/icons-and-images/app-icon/

Issue: https://github.com/flutter/flutter/issues/103371

[1]: https://github.com/flutter/packages/tree/main/packages/flutter_template_images
2022-05-14 17:20:24 -07:00
Chris Bracken
27c6cdb416
Roll dependendencies (#103771)
Roll dependendencies

This rolls depdendencies to latest using
flutter update-packages --force-upgrade

This change includes three code changes:

* Removes charcode from the dependencies allowlist since it no longer
  appears in the transitive closure of dependencies of the flutter,
  flutter_test, flutter_driver, flutter_localizations, and
  integration_test packages.

* Uses Resolver.create instead of the deprecated Resolver constructor.
  The default Resolver constructor has been deprecated in favour of the
  static Resolver.create() factory function, which unfortunately happens
  to be async. Propagated the async-ness up the chain.
  This change was partially reverted and the deprecation ignored in this
  patch until package:coverage can be rolled internally at Google.

* Eliminates the use of the deprecated packagesPath parameter to
  HitMap.parseJson. This parameter was deprecated and replaced with
  packagePath in https://github.com/dart-lang/coverage/pull/370 which
  was part of the overall deprecation of the .packages file in Dart
  itself https://github.com/dart-lang/sdk/issues/48272. The overall goal
  being that end-user code shouldn't need to know about implementation
  details such as whether dependency information is stored in a
  .packages file or a package_info.json file, but rather use the
  package_config package to obtain the package metadata and perform
  other functions such as resolving its dependencies to filesystem
  paths. packagesPath was replaced by packagePath, which takes the path
  to the package directory itself. Internally, package:coverage then
  uses package_config to do the rest of the package/script URI
  resolution to filesystem paths.
  This change was partially reverted and the deprecation ignored in this
  patch until package:coverage can be rolled internally at Google.

This is a pre-update prior to updating flutter_template_images in
https://github.com/flutter/flutter/pull/103739

Issue: https://github.com/flutter/flutter/issues/103371
Issue: https://github.com/flutter/flutter/issues/103775
Issue: https://github.com/flutter/flutter/issues/103830

When re-applying the partially-reverted changes to code coverage,
we'll need to patch host_entrypoint.dart internally to await the Future
that we'll be returning rather than a non-async value.
2022-05-14 16:34:10 -07:00
engine-flutter-autoroll
b656c476f6
Roll Flutter Engine from 260e5e286c05 to d09cf345042f (2 revisions) (#103828) 2022-05-14 14:54:07 -07:00
Christopher Fujino
0ad0dc255d
[flutter_tools] fix missing cmake (#103761) 2022-05-14 11:59:07 -07:00
Jonah Williams
90a592bf36
[flutter_tools] fix test asset loading (#103667) 2022-05-14 10:59:07 -07:00
engine-flutter-autoroll
d3b80f884f
Roll Flutter Engine from b2f31f56f8b0 to 260e5e286c05 (1 revision) (#103812) 2022-05-14 10:34:03 -07:00
Chris Bracken
110c0a7f80
[ci] Add pointer to template image assets wiki (#103787)
Many of our flutter_tools templates include image assets such as
application icons. Adding these will trigger an analysis error from our
CI tooling.

This adds a pointer to the wiki describing the procedure for adding or
updating image assets in the templates:
https://github.com/flutter/flutter/wiki/Managing-template-image-assets

Uncovered while working on https://github.com/flutter/flutter/issues/103371
2022-05-14 10:28:59 -07:00
Chris Bracken
f2116cb0b2
[tool] Fix BuildInfo.packagesPath doc comment (#103785)
Until recently, BuildInfo.packagesPath defaulted to `.packages` however,
the .packages file has been deprecated [1] and is being removed. In
https://github.com/flutter/flutter/pull/99677 the default was changed to
`.dart_tool/package_config.json` but the doc comment was accidentally
updated to `.dart_tool/packages`. This corrects it to the true default
value.

1: https://github.com/dart-lang/sdk/issues/48272

Spotted in the midst of some related cleanup relating to
https://github.com/flutter/flutter/issues/103775
2022-05-14 10:28:35 -07:00
engine-flutter-autoroll
e91547911b
b2f31f56f Reland: Roll clang and buildroot (flutter/engine#33339) (#103809) 2022-05-14 08:06:31 -07:00