prepareApp method

String prepareApp(
  1. String deviceName,
  2. String os,
  3. List<String> permissions,
  4. bool headless,
  5. String simulatorName,
  6. String bundleIdentifier,
)

Implementation

String prepareApp(String deviceName, String os, List<String> permissions,
    bool headless, String simulatorName, String bundleIdentifier) {
  switch (this) {
    case Platform.ios:
      final simulatorUid =
          createSimulator(simulatorName: simulatorName, device: deviceName);
      bootSimulator(simulatorUid, headless: headless);
      for (var permission in permissions) {
        grantPermission(
            uid: simulatorUid,
            bundleIndentifier: bundleIdentifier,
            permission: permission);
      }
      return simulatorUid;
    default:
      throw PlatformNotImplementedException(this);
  }
}