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

This is a temporary workaround until we solve #14594.
This commit is contained in:
Vyacheslav Egorov 2018-02-13 14:16:26 +01:00 committed by GitHub
parent d401bd78ae
commit d745684393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -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');

View file

@ -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())}',