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

[web] add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script#28056

Merged
yjbanov merged 6 commits intoflutter:masterfrom
yjbanov:ck-bundle
Aug 13, 2021
Merged

[web] add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script#28056
yjbanov merged 6 commits intoflutter:masterfrom
yjbanov:ck-bundle

Conversation

@yjbanov
Copy link
Copy Markdown
Contributor

@yjbanov yjbanov commented Aug 13, 2021

  • Make CanvasKit a DEPS dependency that fetches CanvasKit from a CIPD package.
  • Add a script for rolling CanvasKit to a new version.

This PR does not change how the engine loads CanvasKit. It is still loaded from unpkg.com by default. The loading logic will be updated in a follow-up PR.

@flutter-dashboard
Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added platform-web Code specifically for the web engine needs tests labels Aug 13, 2021
@google-cla google-cla bot added the cla: yes label Aug 13, 2021
@yjbanov yjbanov changed the title [web] add a manual CanvasKit roller [web] add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script Aug 13, 2021
const String canvasKitBaseUrl = String.fromEnvironment(
'FLUTTER_WEB_CANVASKIT_URL',
defaultValue: 'https://unpkg.com/canvaskit-wasm@0.28.1/bin/',
defaultValue: 'https://unpkg.com/canvaskit-wasm@$canvaskitVersion/bin/',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI @jacob314 you will probably need to update the devtools code that reads the version from here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can devtools read it from canvaskit_lock.yaml?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sure that would be fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for confirming!

Copy link
Copy Markdown
Contributor

@harryterkelsen harryterkelsen left a comment

Choose a reason for hiding this comment

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

LGTM

@yjbanov yjbanov merged commit 057c49c into flutter:master Aug 13, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 14, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 14, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 14, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 14, 2021
filmil pushed a commit to filmil/engine that referenced this pull request Apr 21, 2022
…roller script (flutter#28056)

add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes needs tests platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants