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

Conversation

@eyebrowsoffire
Copy link
Contributor

This will allow us to add tooling to do some bundling/minifying of flutter.js, which should make this more scalable/extensible long-term.

Also, this removes a few redundant build rules that produce artifacts that the flutter tool doesn't use anymore.

This will allow us to add tooling to do some bundling/minifying of flutter.js,
which should make this more scalable/extensible long-term.
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Oct 23, 2023
@eyebrowsoffire eyebrowsoffire requested a review from ditman October 30, 2023 20:47
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Do you have a link to the framework side of the change, or are you waiting for this to land?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to integrate with more tooling in the future, would it be easier that this file lived in engine/js/flutter_js or similar? (I know little about GN).

((I guess that if needed it could be moved later, as long as its output ends up in the same directory?))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files themselves can be anywhere in the source tree, so that doesn't really matter to gn. I'm not sure where you are suggesting this should go in the tree though, do you mean inside the actual src/flutter/lib/web_ui/lib/src/engine directory somewhere? I'd like to avoid having non-dart files in that part of the source tree, I think.

@eyebrowsoffire
Copy link
Contributor Author

Do you have a link to the framework side of the change, or are you waiting for this to land?

Draft for consuming this is here: flutter/flutter#137113

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 31, 2023
@auto-submit auto-submit bot merged commit 6473a5a into flutter:main Oct 31, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 31, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 31, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 31, 2023
…ions) (#137649)

Manual roll requested by [email protected]

flutter/engine@39be0fc...406b7d7

2023-10-31 [email protected] Roll Dart SDK from eecb650a0fb9 to 99fa0283f9d7 (1 revision) (flutter/engine#47526)
2023-10-31 [email protected] Roll Skia from 998e19071734 to aaa225e0cc6d (1 revision) (flutter/engine#47524)
2023-10-31 [email protected] Roll Skia from cc751f5d50ea to 998e19071734 (1 revision) (flutter/engine#47522)
2023-10-31 [email protected] Roll Skia from 2f7e5dbb8521 to cc751f5d50ea (1 revision) (flutter/engine#47519)
2023-10-31 [email protected] Move flutter.js into the engine. (flutter/engine#47240)
2023-10-31 [email protected] Roll Skia from b3360479118f to 2f7e5dbb8521 (1 revision) (flutter/engine#47517)
2023-10-31 [email protected] [Impeller] Do not return a null Contents if a Paint's blur filter yields an empty coverage rect (flutter/engine#47496)
2023-10-31 [email protected] Roll Dart SDK from 776fad25647a to eecb650a0fb9 (1 revision) (flutter/engine#47514)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@devoncarew
Copy link
Contributor

devoncarew commented Nov 16, 2023

Also, this removes a few redundant build rules that produce artifacts that the flutter tool doesn't use anymore.

DartPad was using these :) dart-lang/dart-pad#2718; specifically, flutter_ddc_sdk_sound.dill.

We use it with DDC to support modular compilation in dartpad - just compiling the user's source and using pre-built JS of the framework and related libraries (https://github.com/dart-lang/dart-pad/blob/main/pkgs/dart_services/tool/grind.dart#L247).

Did this have a maintenance cost? Can it be restored? Can or should we (dartpad) build this kernel file ourselves?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants