[flutter_tools] remove PackageMap and finish PackageConfig migration (#55244)
This commit is contained in:
@@ -74,7 +74,7 @@ class BundleBuilder {
|
||||
mainPath ??= defaultMainPath;
|
||||
depfilePath ??= defaultDepfilePath;
|
||||
assetDirPath ??= getAssetBuildDirectory();
|
||||
packagesPath ??= globals.fs.path.absolute(PackageMap.globalPackagesPath);
|
||||
packagesPath ??= globals.fs.path.absolute(globalPackagesPath);
|
||||
final FlutterProject flutterProject = FlutterProject.current();
|
||||
await buildWithAssemble(
|
||||
buildMode: buildInfo.mode,
|
||||
@@ -177,7 +177,7 @@ Future<AssetBundle> buildAssets({
|
||||
bool reportLicensedPackages = false,
|
||||
}) async {
|
||||
assetDirPath ??= getAssetBuildDirectory();
|
||||
packagesPath ??= globals.fs.path.absolute(PackageMap.globalPackagesPath);
|
||||
packagesPath ??= globals.fs.path.absolute(globalPackagesPath);
|
||||
|
||||
// Build the asset bundle.
|
||||
final AssetBundle assetBundle = AssetBundleFactory.instance.createBundle();
|
||||
|
||||
Reference in New Issue
Block a user