@@ -103,21 +103,14 @@ enum HostArtifact {
103
103
104
104
/// The precompiled SDKs and sourcemaps for web debug builds with the AMD module system.
105
105
// TODO(markzipan): delete these when DDC's AMD module system is deprecated, https://github.com/flutter/flutter/issues/142060.
106
- webPrecompiledAmdSdk,
107
- webPrecompiledAmdSdkSourcemaps,
108
106
webPrecompiledAmdCanvaskitSdk,
109
107
webPrecompiledAmdCanvaskitSdkSourcemaps,
110
- webPrecompiledAmdCanvaskitAndHtmlSdk,
111
- webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps,
112
108
113
109
/// The precompiled SDKs and sourcemaps for web debug builds with the DDC
114
- /// library bundle module system.
115
- webPrecompiledDdcLibraryBundleSdk,
116
- webPrecompiledDdcLibraryBundleSdkSourcemaps,
110
+ /// library bundle module system. Only SDKs built with sound null-safety are
111
+ /// provided here.
117
112
webPrecompiledDdcLibraryBundleCanvaskitSdk,
118
113
webPrecompiledDdcLibraryBundleCanvaskitSdkSourcemaps,
119
- webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdk,
120
- webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdkSourcemaps,
121
114
122
115
iosDeploy,
123
116
idevicesyslog,
@@ -263,19 +256,11 @@ String _hostArtifactToFileName(HostArtifact artifact, Platform platform) {
263
256
return 'dart2js_platform.dill' ;
264
257
case HostArtifact .flutterWebLibrariesJson:
265
258
return 'libraries.json' ;
266
- case HostArtifact .webPrecompiledAmdSdk:
267
259
case HostArtifact .webPrecompiledAmdCanvaskitSdk:
268
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdk:
269
- case HostArtifact .webPrecompiledDdcLibraryBundleSdk:
270
260
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdk:
271
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdk:
272
261
return 'dart_sdk.js' ;
273
- case HostArtifact .webPrecompiledAmdSdkSourcemaps:
274
262
case HostArtifact .webPrecompiledAmdCanvaskitSdkSourcemaps:
275
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps:
276
- case HostArtifact .webPrecompiledDdcLibraryBundleSdkSourcemaps:
277
263
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdkSourcemaps:
278
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdkSourcemaps:
279
264
return 'dart_sdk.js.map' ;
280
265
case HostArtifact .impellerc:
281
266
return 'impellerc$exe ' ;
@@ -459,15 +444,6 @@ class CachedArtifacts implements Artifacts {
459
444
_hostArtifactToFileName (artifact, _platform),
460
445
);
461
446
return _fileSystem.file (path);
462
- case HostArtifact .webPrecompiledAmdSdk:
463
- case HostArtifact .webPrecompiledAmdSdkSourcemaps:
464
- final String path = _fileSystem.path.join (
465
- _getFlutterWebSdkPath (),
466
- 'kernel' ,
467
- 'amd' ,
468
- _hostArtifactToFileName (artifact, _platform),
469
- );
470
- return _fileSystem.file (path);
471
447
case HostArtifact .webPrecompiledAmdCanvaskitSdk:
472
448
case HostArtifact .webPrecompiledAmdCanvaskitSdkSourcemaps:
473
449
final String path = _fileSystem.path.join (
@@ -477,24 +453,6 @@ class CachedArtifacts implements Artifacts {
477
453
_hostArtifactToFileName (artifact, _platform),
478
454
);
479
455
return _fileSystem.file (path);
480
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdk:
481
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps:
482
- final String path = _fileSystem.path.join (
483
- _getFlutterWebSdkPath (),
484
- 'kernel' ,
485
- 'amd-canvaskit-html' ,
486
- _hostArtifactToFileName (artifact, _platform),
487
- );
488
- return _fileSystem.file (path);
489
- case HostArtifact .webPrecompiledDdcLibraryBundleSdk:
490
- case HostArtifact .webPrecompiledDdcLibraryBundleSdkSourcemaps:
491
- final String path = _fileSystem.path.join (
492
- _getFlutterWebSdkPath (),
493
- 'kernel' ,
494
- 'ddcLibraryBundle' ,
495
- _hostArtifactToFileName (artifact, _platform),
496
- );
497
- return _fileSystem.file (path);
498
456
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdk:
499
457
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdkSourcemaps:
500
458
final String path = _fileSystem.path.join (
@@ -504,15 +462,6 @@ class CachedArtifacts implements Artifacts {
504
462
_hostArtifactToFileName (artifact, _platform),
505
463
);
506
464
return _fileSystem.file (path);
507
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdk:
508
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdkSourcemaps:
509
- final String path = _fileSystem.path.join (
510
- _getFlutterWebSdkPath (),
511
- 'kernel' ,
512
- 'ddcLibraryBundle-canvaskit-html' ,
513
- _hostArtifactToFileName (artifact, _platform),
514
- );
515
- return _fileSystem.file (path);
516
465
case HostArtifact .idevicesyslog:
517
466
case HostArtifact .idevicescreenshot:
518
467
final String artifactFileName = _hostArtifactToFileName (artifact, _platform);
@@ -1162,15 +1111,6 @@ class CachedLocalEngineArtifacts implements Artifacts {
1162
1111
_hostArtifactToFileName (artifact, _platform),
1163
1112
);
1164
1113
return _fileSystem.file (path);
1165
- case HostArtifact .webPrecompiledAmdSdk:
1166
- case HostArtifact .webPrecompiledAmdSdkSourcemaps:
1167
- final String path = _fileSystem.path.join (
1168
- _getFlutterWebSdkPath (),
1169
- 'kernel' ,
1170
- 'amd' ,
1171
- _hostArtifactToFileName (artifact, _platform),
1172
- );
1173
- return _fileSystem.file (path);
1174
1114
case HostArtifact .webPrecompiledAmdCanvaskitSdk:
1175
1115
case HostArtifact .webPrecompiledAmdCanvaskitSdkSourcemaps:
1176
1116
final String path = _fileSystem.path.join (
@@ -1180,24 +1120,6 @@ class CachedLocalEngineArtifacts implements Artifacts {
1180
1120
_hostArtifactToFileName (artifact, _platform),
1181
1121
);
1182
1122
return _fileSystem.file (path);
1183
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdk:
1184
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps:
1185
- final String path = _fileSystem.path.join (
1186
- _getFlutterWebSdkPath (),
1187
- 'kernel' ,
1188
- 'amd-canvaskit-html' ,
1189
- _hostArtifactToFileName (artifact, _platform),
1190
- );
1191
- return _fileSystem.file (path);
1192
- case HostArtifact .webPrecompiledDdcLibraryBundleSdk:
1193
- case HostArtifact .webPrecompiledDdcLibraryBundleSdkSourcemaps:
1194
- final String path = _fileSystem.path.join (
1195
- _getFlutterWebSdkPath (),
1196
- 'kernel' ,
1197
- 'ddcLibraryBundle' ,
1198
- _hostArtifactToFileName (artifact, _platform),
1199
- );
1200
- return _fileSystem.file (path);
1201
1123
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdk:
1202
1124
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdkSourcemaps:
1203
1125
final String path = _fileSystem.path.join (
@@ -1207,15 +1129,6 @@ class CachedLocalEngineArtifacts implements Artifacts {
1207
1129
_hostArtifactToFileName (artifact, _platform),
1208
1130
);
1209
1131
return _fileSystem.file (path);
1210
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdk:
1211
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdkSourcemaps:
1212
- final String path = _fileSystem.path.join (
1213
- _getFlutterWebSdkPath (),
1214
- 'kernel' ,
1215
- 'ddcLibraryBundle-canvaskit-html' ,
1216
- _hostArtifactToFileName (artifact, _platform),
1217
- );
1218
- return _fileSystem.file (path);
1219
1132
case HostArtifact .idevicesyslog:
1220
1133
case HostArtifact .idevicescreenshot:
1221
1134
final String artifactFileName = _hostArtifactToFileName (artifact, _platform);
@@ -1569,15 +1482,6 @@ class CachedLocalWebSdkArtifacts implements Artifacts {
1569
1482
_hostArtifactToFileName (artifact, _platform),
1570
1483
);
1571
1484
return _fileSystem.file (path);
1572
- case HostArtifact .webPrecompiledAmdSdk:
1573
- case HostArtifact .webPrecompiledAmdSdkSourcemaps:
1574
- final String path = _fileSystem.path.join (
1575
- _getFlutterWebSdkPath (),
1576
- 'kernel' ,
1577
- 'amd' ,
1578
- _hostArtifactToFileName (artifact, _platform),
1579
- );
1580
- return _fileSystem.file (path);
1581
1485
case HostArtifact .webPrecompiledAmdCanvaskitSdk:
1582
1486
case HostArtifact .webPrecompiledAmdCanvaskitSdkSourcemaps:
1583
1487
final String path = _fileSystem.path.join (
@@ -1587,24 +1491,6 @@ class CachedLocalWebSdkArtifacts implements Artifacts {
1587
1491
_hostArtifactToFileName (artifact, _platform),
1588
1492
);
1589
1493
return _fileSystem.file (path);
1590
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdk:
1591
- case HostArtifact .webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps:
1592
- final String path = _fileSystem.path.join (
1593
- _getFlutterWebSdkPath (),
1594
- 'kernel' ,
1595
- 'amd-canvaskit-html' ,
1596
- _hostArtifactToFileName (artifact, _platform),
1597
- );
1598
- return _fileSystem.file (path);
1599
- case HostArtifact .webPrecompiledDdcLibraryBundleSdk:
1600
- case HostArtifact .webPrecompiledDdcLibraryBundleSdkSourcemaps:
1601
- final String path = _fileSystem.path.join (
1602
- _getFlutterWebSdkPath (),
1603
- 'kernel' ,
1604
- 'ddcLibraryBundle' ,
1605
- _hostArtifactToFileName (artifact, _platform),
1606
- );
1607
- return _fileSystem.file (path);
1608
1494
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdk:
1609
1495
case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitSdkSourcemaps:
1610
1496
final String path = _fileSystem.path.join (
@@ -1614,15 +1500,6 @@ class CachedLocalWebSdkArtifacts implements Artifacts {
1614
1500
_hostArtifactToFileName (artifact, _platform),
1615
1501
);
1616
1502
return _fileSystem.file (path);
1617
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdk:
1618
- case HostArtifact .webPrecompiledDdcLibraryBundleCanvaskitAndHtmlSdkSourcemaps:
1619
- final String path = _fileSystem.path.join (
1620
- _getFlutterWebSdkPath (),
1621
- 'kernel' ,
1622
- 'ddcLibraryBundle-canvaskit-html' ,
1623
- _hostArtifactToFileName (artifact, _platform),
1624
- );
1625
- return _fileSystem.file (path);
1626
1503
case HostArtifact .iosDeploy:
1627
1504
case HostArtifact .idevicesyslog:
1628
1505
case HostArtifact .idevicescreenshot:
0 commit comments