Revert "[flutter_tools] Allow providing dart-defines to Android, iOS, macOS builds (#51714)" (#52041)
This reverts commit ee60eeea3e.
This commit is contained in:
@@ -28,6 +28,7 @@ Future<void> buildWeb(
|
||||
String target,
|
||||
BuildInfo buildInfo,
|
||||
bool initializePlatform,
|
||||
List<String> dartDefines,
|
||||
bool csp,
|
||||
) async {
|
||||
if (!flutterProject.web.existsSync()) {
|
||||
@@ -50,7 +51,7 @@ Future<void> buildWeb(
|
||||
kTargetFile: target,
|
||||
kInitializePlatform: initializePlatform.toString(),
|
||||
kHasWebPlugins: hasWebPlugins.toString(),
|
||||
kDartDefines: jsonEncode(buildInfo.dartDefines),
|
||||
kDartDefines: jsonEncode(dartDefines),
|
||||
kCspMode: csp.toString(),
|
||||
kIconTreeShakerFlag: buildInfo.treeShakeIcons.toString(),
|
||||
},
|
||||
|
||||
@@ -24,6 +24,7 @@ abstract class WebRunnerFactory {
|
||||
@required FlutterProject flutterProject,
|
||||
@required bool ipv6,
|
||||
@required DebuggingOptions debuggingOptions,
|
||||
@required List<String> dartDefines,
|
||||
@required UrlTunneller urlTunneller,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user