Commit 11105bed authored by asiva's avatar asiva Committed by Siva

- Roll engine to version 9867298f86a7ccd5f1c07a83796ee21567d37fb0

- Remove redundant strong flag as it is the default for preview-dart-2
now
parent 1e397d3f
0f3a8cef60bfe20afeaebe2945087cec90c65369 9867298f86a7ccd5f1c07a83796ee21567d37fb0
...@@ -388,7 +388,6 @@ class AndroidDevice extends Device { ...@@ -388,7 +388,6 @@ class AndroidDevice extends Device {
return new LaunchResult.failed(); return new LaunchResult.failed();
final bool traceStartup = platformArgs['trace-startup'] ?? false; final bool traceStartup = platformArgs['trace-startup'] ?? false;
final bool strongMode = platformArgs['strong'] ?? false;
final AndroidApk apk = package; final AndroidApk apk = package;
printTrace('$this startApp'); printTrace('$this startApp');
...@@ -417,9 +416,6 @@ class AndroidDevice extends Device { ...@@ -417,9 +416,6 @@ class AndroidDevice extends Device {
if (traceStartup) if (traceStartup)
cmd.addAll(<String>['--ez', 'trace-startup', 'true']); cmd.addAll(<String>['--ez', 'trace-startup', 'true']);
if (strongMode) {
cmd.addAll(<String>['--ez', 'strong', 'true']);
}
if (route != null) if (route != null)
cmd.addAll(<String>['--es', 'route', route]); cmd.addAll(<String>['--es', 'route', route]);
if (debuggingOptions.enableSoftwareRendering) if (debuggingOptions.enableSoftwareRendering)
......
...@@ -299,7 +299,6 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta ...@@ -299,7 +299,6 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta
} }
if (buildInfo.previewDart2) { if (buildInfo.previewDart2) {
command.add('-Ppreview-dart-2=true'); command.add('-Ppreview-dart-2=true');
command.add('-Pstrong=true');
if (buildInfo.trackWidgetCreation) if (buildInfo.trackWidgetCreation)
command.add('-Ptrack-widget-creation=true'); command.add('-Ptrack-widget-creation=true');
if (buildInfo.extraFrontEndOptions != null) if (buildInfo.extraFrontEndOptions != null)
......
...@@ -348,7 +348,6 @@ class AppDomain extends Domain { ...@@ -348,7 +348,6 @@ class AppDomain extends Domain {
DebuggingOptions options, bool enableHotReload, { DebuggingOptions options, bool enableHotReload, {
String applicationBinary, String applicationBinary,
bool previewDart2: false, bool previewDart2: false,
bool strongMode: false,
String projectRootPath, String projectRootPath,
String packagesFilePath, String packagesFilePath,
String projectAssets, String projectAssets,
......
...@@ -110,10 +110,6 @@ class RunCommand extends RunCommandBase { ...@@ -110,10 +110,6 @@ class RunCommand extends RunCommandBase {
argParser.addFlag('preview-dart-2', argParser.addFlag('preview-dart-2',
hide: !verboseHelp, hide: !verboseHelp,
help: 'Preview Dart 2.0 functionality.'); help: 'Preview Dart 2.0 functionality.');
argParser.addFlag('strong',
hide: !verboseHelp,
help: 'Turn on strong mode semantics.\n'
'Valid only when --preview-dart-2 is also specified');
argParser.addFlag('track-widget-creation', argParser.addFlag('track-widget-creation',
hide: !verboseHelp, hide: !verboseHelp,
help: 'Track widget creation locations. Requires Dart 2.0 functionality.'); help: 'Track widget creation locations. Requires Dart 2.0 functionality.');
......
...@@ -190,14 +190,9 @@ class IOSDevice extends Device { ...@@ -190,14 +190,9 @@ class IOSDevice extends Device {
return new LaunchResult.failed(); return new LaunchResult.failed();
} }
final bool strongMode = platformArgs['strong'] ?? false;
// Step 3: Attempt to install the application on the device. // Step 3: Attempt to install the application on the device.
final List<String> launchArguments = <String>['--enable-dart-profiling']; final List<String> launchArguments = <String>['--enable-dart-profiling'];
if (strongMode)
launchArguments.add('--strong');
if (debuggingOptions.startPaused) if (debuggingOptions.startPaused)
launchArguments.add('--start-paused'); launchArguments.add('--start-paused');
......
...@@ -316,14 +316,9 @@ class IOSSimulator extends Device { ...@@ -316,14 +316,9 @@ class IOSSimulator extends Device {
return new LaunchResult.failed(); return new LaunchResult.failed();
} }
final bool strongMode = platformArgs['strong'] ?? false;
// Prepare launch arguments. // Prepare launch arguments.
final List<String> args = <String>['--enable-dart-profiling']; final List<String> args = <String>['--enable-dart-profiling'];
if (strongMode)
args.add('--strong');
if (!prebuiltApplication) { if (!prebuiltApplication) {
args.addAll(<String>[ args.addAll(<String>[
'--flutter-assets-dir=${fs.path.absolute(getAssetBuildDirectory())}', '--flutter-assets-dir=${fs.path.absolute(getAssetBuildDirectory())}',
......
...@@ -274,8 +274,6 @@ class FlutterDevice { ...@@ -274,8 +274,6 @@ class FlutterDevice {
} }
final Map<String, dynamic> platformArgs = <String, dynamic>{}; final Map<String, dynamic> platformArgs = <String, dynamic>{};
if (hotRunner.previewDart2 != null)
platformArgs['strong'] = hotRunner.previewDart2;
startEchoingDeviceLog(); startEchoingDeviceLog();
...@@ -337,8 +335,6 @@ class FlutterDevice { ...@@ -337,8 +335,6 @@ class FlutterDevice {
final Map<String, dynamic> platformArgs = <String, dynamic>{}; final Map<String, dynamic> platformArgs = <String, dynamic>{};
if (coldRunner.traceStartup != null) if (coldRunner.traceStartup != null)
platformArgs['trace-startup'] = coldRunner.traceStartup; platformArgs['trace-startup'] = coldRunner.traceStartup;
if (coldRunner.previewDart2 != null)
platformArgs['strong'] = coldRunner.previewDart2;
startEchoingDeviceLog(); startEchoingDeviceLog();
......
...@@ -201,7 +201,6 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -201,7 +201,6 @@ class _FlutterPlatform extends PlatformPlugin {
String mainDart = listenerFile.path; String mainDart = listenerFile.path;
String bundlePath; String bundlePath;
bool strongMode = false;
if (previewDart2) { if (previewDart2) {
mainDart = await compile( mainDart = await compile(
...@@ -236,7 +235,6 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -236,7 +235,6 @@ class _FlutterPlatform extends PlatformPlugin {
} }
bundlePath = tempBundleDirectory.path; bundlePath = tempBundleDirectory.path;
strongMode = true;
} }
final Process process = await _startProcess( final Process process = await _startProcess(
...@@ -246,7 +244,6 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -246,7 +244,6 @@ class _FlutterPlatform extends PlatformPlugin {
enableObservatory: enableObservatory, enableObservatory: enableObservatory,
startPaused: startPaused, startPaused: startPaused,
bundlePath: bundlePath, bundlePath: bundlePath,
strongMode: strongMode,
observatoryPort: explicitObservatoryPort, observatoryPort: explicitObservatoryPort,
); );
subprocessActive = true; subprocessActive = true;
...@@ -521,7 +518,6 @@ void main() { ...@@ -521,7 +518,6 @@ void main() {
String bundlePath, String bundlePath,
bool enableObservatory: false, bool enableObservatory: false,
bool startPaused: false, bool startPaused: false,
bool strongMode: false,
int observatoryPort, int observatoryPort,
}) { }) {
assert(executable != null); // Please provide the path to the shell in the SKY_SHELL environment variable. assert(executable != null); // Please provide the path to the shell in the SKY_SHELL environment variable.
...@@ -549,11 +545,7 @@ void main() { ...@@ -549,11 +545,7 @@ void main() {
if (bundlePath != null) { if (bundlePath != null) {
command.add('--flutter-assets-dir=$bundlePath'); command.add('--flutter-assets-dir=$bundlePath');
} }
if (strongMode) {
command.add('--strong');
} else {
command.add('--enable-checked-mode'); command.add('--enable-checked-mode');
}
command.addAll(<String>[ command.addAll(<String>[
'--enable-dart-profiling', '--enable-dart-profiling',
'--non-interactive', '--non-interactive',
......
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