Skip to content

Commit

Permalink
[flutter_tools] disable web compilation (flutter#116368)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored and gspencergoog committed Jan 19, 2023
1 parent ccc082b commit d7f8793
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions packages/flutter_tools/lib/src/asset.dart
Original file line number Diff line number Diff line change
Expand Up @@ -753,19 +753,24 @@ class ManifestAssetBundle implements AssetBundle {
}
}

for (final Uri shaderUri in flutterManifest.shaders) {
_parseAssetFromFile(
packageConfig,
flutterManifest,
assetBase,
cache,
result,
shaderUri,
packageName: packageName,
attributedPackage: attributedPackage,
assetKind: AssetKind.shader,
);
// TODO(jonahwilliams): re-enable this feature once
// flutter web is using engine compiled canvaskit.
if (targetPlatform != TargetPlatform.web_javascript) {
for (final Uri shaderUri in flutterManifest.shaders) {
_parseAssetFromFile(
packageConfig,
flutterManifest,
assetBase,
cache,
result,
shaderUri,
packageName: packageName,
attributedPackage: attributedPackage,
assetKind: AssetKind.shader,
);
}
}

// Add assets referenced in the fonts section of the manifest.
for (final Font font in flutterManifest.fonts) {
for (final FontAsset fontAsset in font.fontAssets) {
Expand Down

0 comments on commit d7f8793

Please sign in to comment.