Skip to content

[web] Add all CanvasKit variants and ICU4X to Flutter's bin/cache #118802

@mdebbar

Description

@mdebbar

// If the flutter_web_sdk folder doesn't already contain CanvasKit, then
// download it from CIPD.
// TODO(hterkelsen): This whole section can be removed when we are always building
// CanvasKit as part of flutter_web_sdk. See https://github.com/flutter/flutter/issues/113073
final File expectedCanvasKitFile = fileSystem.file(fileSystem.path.join(location.path, 'canvaskit', 'canvaskit.wasm'));
if (!expectedCanvasKitFile.existsSync()) {
final String canvasKitVersion = cache.getVersionFor('canvaskit')!;
final String canvasKitUrl = '${cache.cipdBaseUrl}/flutter/web/canvaskit_bundle/+/$canvasKitVersion';
return artifactUpdater.downloadZipArchive(
'Downloading CanvasKit...',
Uri.parse(canvasKitUrl),
location,
);
}

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: sizeReducing IPA/APK/JS sizesa: typographyText rendering, possibly libtxte: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webperf: app sizePerformance issues related to app size (binary/code size) or disk spaceplatform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions