Unverified Commit d7456843 authored by Vyacheslav Egorov's avatar Vyacheslav Egorov Committed by GitHub

Plumb strong mode option through startApp(...) to the engine on iOS. (#14653)

This is a temporary workaround until we solve #14594.
parent d401bd78
......@@ -189,9 +189,14 @@ class IOSDevice extends Device {
return new LaunchResult.failed();
}
final bool strongMode = platformArgs['strong'] ?? false;
// Step 3: Attempt to install the application on the device.
final List<String> launchArguments = <String>['--enable-dart-profiling'];
if (strongMode)
launchArguments.add('--strong');
if (debuggingOptions.startPaused)
launchArguments.add('--start-paused');
......
......@@ -316,9 +316,14 @@ class IOSSimulator extends Device {
return new LaunchResult.failed();
}
final bool strongMode = platformArgs['strong'] ?? false;
// Prepare launch arguments.
final List<String> args = <String>['--enable-dart-profiling'];
if (strongMode)
args.add('--strong');
if (!prebuiltApplication) {
args.addAll(<String>[
'--flutter-assets-dir=${fs.path.absolute(getAssetBuildDirectory())}',
......
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