From d7456843932a22deb205b337bd3936cd5922a948 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Tue, 13 Feb 2018 14:16:26 +0100 Subject: [PATCH] Plumb strong mode option through startApp(...) to the engine on iOS. (#14653) This is a temporary workaround until we solve #14594. --- packages/flutter_tools/lib/src/ios/devices.dart | 5 +++++ packages/flutter_tools/lib/src/ios/simulators.dart | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index 3867a71a21..970def0515 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -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 launchArguments = ['--enable-dart-profiling']; + if (strongMode) + launchArguments.add('--strong'); + if (debuggingOptions.startPaused) launchArguments.add('--start-paused'); diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart index 86452b219b..bf562b4040 100644 --- a/packages/flutter_tools/lib/src/ios/simulators.dart +++ b/packages/flutter_tools/lib/src/ios/simulators.dart @@ -316,9 +316,14 @@ class IOSSimulator extends Device { return new LaunchResult.failed(); } + final bool strongMode = platformArgs['strong'] ?? false; + // Prepare launch arguments. final List args = ['--enable-dart-profiling']; + if (strongMode) + args.add('--strong'); + if (!prebuiltApplication) { args.addAll([ '--flutter-assets-dir=${fs.path.absolute(getAssetBuildDirectory())}',