protected static IApp ConfigureiOSApp(AppInitializerSettings settings) { iOSAppConfigurator configurator = ConfigureApp.iOS; if (settings.iOS.Debug) { configurator = configurator.Debug(); } if (settings.iOS.EnableLocalScreenshots) { configurator = configurator.EnableLocalScreenshots(); } if (!string.IsNullOrEmpty(settings.iOS.AppBundle)) { // Used for simulator tests configurator = configurator.AppBundle(settings.iOS.AppBundle); } if (!string.IsNullOrEmpty(settings.iOS.InstalledApp)) { // Used for real device tests configurator = configurator.InstalledApp(settings.iOS.InstalledApp); } configurator = configurator .DeviceIdentifier(settings.iOS.DeviceIdentifier) .WaitTimes(settings.iOS.WaitTimes); return(configurator.StartApp()); }
public void SetUpApp() { iOSAppConfigurator iosconfigurator = ConfigureApp.iOS; string appBundlePath = Environment.GetEnvironmentVariable("APP_BUNDLE_PATH"); if (!string.IsNullOrEmpty(appBundlePath)) { iosconfigurator.AppBundle(appBundlePath); } string simulatorUDID = Environment.GetEnvironmentVariable("IOS_SIMULATOR_UDID"); if (!string.IsNullOrEmpty(simulatorUDID)) { iosconfigurator.DeviceIdentifier(simulatorUDID); } app = iosconfigurator.Debug().EnableLocalScreenshots().StartApp(); }
public static IApp StartApp(Platform platform) { if (platform == Platform.Android) { AndroidAppConfigurator androidConfigurator = ConfigureApp.Android; string apkPath = Environment.GetEnvironmentVariable("ANDROID_APK_PATH"); if (!string.IsNullOrEmpty(apkPath)) { androidConfigurator.ApkFile(apkPath); } string emulatorSerial = Environment.GetEnvironmentVariable("BITRISE_EMULATOR_SERIAL"); if (!string.IsNullOrEmpty(emulatorSerial)) { androidConfigurator.DeviceSerial(emulatorSerial); } return(androidConfigurator.StartApp()); } iOSAppConfigurator iosConfigurator = ConfigureApp.iOS; string appBundlePath = Environment.GetEnvironmentVariable("APP_BUNDLE_PATH"); if (!string.IsNullOrEmpty(appBundlePath)) { iosConfigurator.AppBundle(appBundlePath); } string simulatorUDID = Environment.GetEnvironmentVariable("IOS_SIMULATOR_UDID"); if (!string.IsNullOrEmpty(simulatorUDID)) { iosConfigurator.DeviceIdentifier(simulatorUDID); } return(iosConfigurator.StartApp()); }
public static iOSAppConfigurator SetDeviceByName(this iOSAppConfigurator configurator, string simulatorName) { var deviceId = GetDeviceID(simulatorName); return(configurator.DeviceIdentifier(deviceId)); }