Parse .flutter-plugins-dependencies for add-to-app iOS modules (#61269)

This commit is contained in:
Jenn Magder
2020-07-28 10:16:09 -07:00
committed by GitHub
parent 734782f5d7
commit e8e5de44ec
3 changed files with 90 additions and 76 deletions

View File

@@ -103,8 +103,10 @@ Future<bool> containsBitcode(String pathToBinary) async {
}
/// Creates and boots a new simulator, passes the new simulator's identifier to
/// `testFunction`, then shuts down and deletes simulator.
Future<void> testWithNewiOSSimulator(
/// `testFunction`.
///
/// Remember to call removeIOSimulator in the test teardown.
Future<void> testWithNewIOSSimulator(
String deviceName,
SimulatorFunction testFunction, {
String deviceTypeId = 'com.apple.CoreSimulator.SimDeviceType.iPhone-11',
@@ -160,7 +162,10 @@ Future<void> testWithNewiOSSimulator(
);
await testFunction(deviceId);
}
/// Shuts down and deletes simulator with deviceId.
Future<void> removeIOSimulator(String deviceId) async {
if (deviceId != null && deviceId != '') {
await eval(
'xcrun',