[flutter_tools] remove PackageMap and finish PackageConfig migration (#55244)

This commit is contained in:
Jonah Williams
2020-04-21 19:55:15 -07:00
committed by GitHub
parent d2572c8fb7
commit d46da3ae11
29 changed files with 159 additions and 254 deletions

View File

@@ -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();