@@ -334,7 +334,6 @@ class Environment {
334
334
/// [engineVersion] should be set to null for local engine builds.
335
335
factory Environment ({
336
336
required Directory projectDir,
337
- required String packageConfigPath,
338
337
required Directory outputDir,
339
338
required Directory cacheDir,
340
339
required Directory flutterRootDir,
@@ -375,7 +374,6 @@ class Environment {
375
374
return Environment ._(
376
375
outputDir: outputDir,
377
376
projectDir: projectDir,
378
- packageConfigPath: packageConfigPath,
379
377
buildDir: buildDirectory,
380
378
rootBuildDir: rootBuildDir,
381
379
cacheDir: cacheDir,
@@ -400,7 +398,6 @@ class Environment {
400
398
@visibleForTesting
401
399
factory Environment .test (Directory testDirectory, {
402
400
Directory ? projectDir,
403
- String ? packageConfigPath,
404
401
Directory ? outputDir,
405
402
Directory ? cacheDir,
406
403
Directory ? flutterRootDir,
@@ -419,7 +416,6 @@ class Environment {
419
416
}) {
420
417
return Environment (
421
418
projectDir: projectDir ?? testDirectory,
422
- packageConfigPath: packageConfigPath ?? '.dart_tool/package_config.json' ,
423
419
outputDir: outputDir ?? testDirectory,
424
420
cacheDir: cacheDir ?? testDirectory,
425
421
flutterRootDir: flutterRootDir ?? testDirectory,
@@ -441,7 +437,6 @@ class Environment {
441
437
Environment ._({
442
438
required this .outputDir,
443
439
required this .projectDir,
444
- required this .packageConfigPath,
445
440
required this .buildDir,
446
441
required this .rootBuildDir,
447
442
required this .cacheDir,
@@ -462,11 +457,6 @@ class Environment {
462
457
/// The [Source] value which is substituted with the path to [projectDir] .
463
458
static const String kProjectDirectory = '{PROJECT_DIR}' ;
464
459
465
- /// The [Source] value which is substituted with the path to the directory
466
- /// that contains `.dart_tool/package_config.json1` .
467
- /// That is the grand-parent of [BuildInfo.packageConfigPath] .
468
- static const String kWorkspaceDirectory = '{WORKSPACE_DIR}' ;
469
-
470
460
/// The [Source] value which is substituted with the path to [buildDir] .
471
461
static const String kBuildDirectory = '{BUILD_DIR}' ;
472
462
@@ -485,16 +475,10 @@ class Environment {
485
475
/// can be located.
486
476
final Directory projectDir;
487
477
488
- /// The path to the package configuration file to use for compilation.
489
- ///
490
- /// This is used by package:package_config to locate the actual package_config.json
491
- /// file. If not provided, defaults to `.dart_tool/package_config.json` .
492
- final String packageConfigPath;
493
-
494
478
/// The `BUILD_DIR` environment variable.
495
479
///
496
480
/// The root of the output directory where build step intermediates and
497
- /// outputs are written. Current usages of assemble configure this to be
481
+ /// outputs are written. Current usages of assemble configure ths to be
498
482
/// a unique directory under `.dart_tool/flutter_build` , though it can
499
483
/// be placed anywhere. The uniqueness is only enforced by callers, and
500
484
/// is currently done by hashing the build configuration.
0 commit comments