Unverified Commit 7472fad1 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Remove most of the target logic for build web, cleanup rules (#34589)

parent 1d0aa02a
This diff is collapsed.
......@@ -131,8 +131,7 @@ class ResidentWebRunner extends ResidentRunner {
}
// Start the web compiler and build the assets.
await webCompilationProxy.initialize(
projectDirectory: FlutterProject.current().directory,
targets: <String>[target],
projectDirectory: flutterProject.directory,
);
_lastCompiled = DateTime.now();
final AssetBundle assetBundle = AssetBundleFactory.instance.createBundle();
......
......@@ -76,9 +76,6 @@ Future<int> runTests(
final bool result = await webCompilationProxy.initialize(
projectDirectory: flutterProject.directory,
testOutputDir: tempBuildDir,
targets: testFiles.map((String testFile) {
return fs.path.relative(testFile, from: flutterProject.directory.path);
}).toList(),
);
if (!result) {
throwToolExit('Failed to compile tests');
......
......@@ -30,7 +30,6 @@ Future<void> buildWeb(FlutterProject flutterProject, String target, BuildInfo bu
try {
result = await webCompilationProxy.initialize(
projectDirectory: FlutterProject.current().directory,
targets: <String>[target],
release: buildInfo.isRelease,
);
if (result) {
......@@ -79,11 +78,8 @@ class WebCompilationProxy {
///
/// `release` controls whether we build the bundle for dartdevc or only
/// the entrypoints for dart2js to later take over.
///
/// `targets` controls the specific compiler targets.
Future<bool> initialize({
@required Directory projectDirectory,
@required List<String> targets,
String testOutputDir,
bool release,
}) async {
......
......@@ -38,7 +38,6 @@ void main() {
fs.file(fs.path.join('lib', 'main.dart')).createSync(recursive: true);
when(mockWebCompilationProxy.initialize(
projectDirectory: anyNamed('projectDirectory'),
targets: anyNamed('targets'),
release: anyNamed('release')
)).thenAnswer((Invocation invocation) {
final String path = fs.path.join('.dart_tool', 'build', 'flutter_web', 'foo', 'lib', 'main_web_entrypoint.dart.js');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment