Adding back commit #e0f6e62 with fix to test failures (#15212)
* Add to Artifacts, and add optional arguments to entry points for flut… (#15185)
Add to Artifacts, and add optional arguments to entry points for flutter run and test to allow for wiring up the same with preview-dart-2 internally
* Changing packages uri here is not necessary
diff --git a/packages/flutter_tools/lib/src/devfs.dart b/packages/flutter_tools/lib/src/devfs.dart
index 00a79b7..efdf3ed 100644
--- a/packages/flutter_tools/lib/src/devfs.dart
+++ b/packages/flutter_tools/lib/src/devfs.dart
@@ -407,6 +407,7 @@
bool bundleDirty: false,
Set<String> fileFilter,
ResidentCompiler generator,
+ String dillOutputPath,
bool fullRestart: false,
}) async {
// Mark all entries as possibly deleted.
@@ -500,7 +501,8 @@
}
final String compiledBinary =
await generator.recompile(mainPath, invalidatedFiles,
- outputPath: fs.path.join(getBuildDirectory(), 'app.dill'));
+ outputPath: dillOutputPath ?? fs.path.join(getBuildDirectory(), 'app.dill'),
+ packagesFilePath : _packagesFilePath);
if (compiledBinary != null && compiledBinary.isNotEmpty)
dirtyEntries.putIfAbsent(
Uri.parse(target + '.dill'),