From 7a8bbbd80747a7d797d016a938924d62d489f3fd Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Thu, 4 Feb 2021 10:19:37 -0800 Subject: [PATCH] Install prebuilt iOS app only once (#75387) --- .../flutter_tools/lib/src/ios/devices.dart | 4 ---- .../ios/ios_device_start_prebuilt_test.dart | 19 ------------------- 2 files changed, 23 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index 868de33364..a66f947edc 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -332,10 +332,6 @@ class IOSDevice extends Device { return LaunchResult.failed(); } packageId = buildResult.xcodeBuildExecution?.buildSettings['PRODUCT_BUNDLE_IDENTIFIER']; - } else { - if (!await installApp(package)) { - return LaunchResult.failed(); - } } packageId ??= package.id; diff --git a/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart b/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart index 311a97d651..34f61bb62e 100644 --- a/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart +++ b/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart @@ -27,21 +27,6 @@ import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fakes.dart'; -const FakeCommand kDeployCommand = FakeCommand( - command: [ - 'Artifact.iosDeploy.TargetPlatform.ios', - '--id', - '123', - '--bundle', - '/', - '--no-wifi', - ], - environment: { - 'PATH': '/usr/bin:null', - 'DYLD_LIBRARY_PATH': '/path/to/libraries', - } -); - // The command used to actually launch the app with args in release/profile. const FakeCommand kLaunchReleaseCommand = FakeCommand( command: [ @@ -123,7 +108,6 @@ void main() { testWithoutContext('IOSDevice.startApp attaches in debug mode via log reading on iOS 13+', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list([ - kDeployCommand, kAttachDebuggerCommand, ]); final IOSDevice device = setUpIOSDevice( @@ -160,7 +144,6 @@ void main() { testWithoutContext('IOSDevice.startApp launches in debug mode via log reading on [ - kDeployCommand, kLaunchDebugCommand, ]); final IOSDevice device = setUpIOSDevice( @@ -198,7 +181,6 @@ void main() { testWithoutContext('IOSDevice.startApp succeeds in release mode', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list([ - kDeployCommand, kLaunchReleaseCommand, ]); final IOSDevice device = setUpIOSDevice( @@ -226,7 +208,6 @@ void main() { testWithoutContext('IOSDevice.startApp forwards all supported debugging options', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list([ - kDeployCommand, FakeCommand( command: [ 'script',