org.openbakery.simulators.SimulatorStartTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
The newest version!
package org.openbakery.simulators
import org.gradle.api.tasks.TaskAction
import org.openbakery.xcode.Destination
import org.openbakery.XcodePlugin
class SimulatorStartTask extends AbstractSimulatorTask {
public SimulatorStartTask() {
setDescription("Start iOS Simulators")
}
@TaskAction
void run() {
Destination destination = getDestination()
SimulatorDevice device = simulatorControl.getDevice(destination)
simulatorControl.killAll()
simulatorControl.runDevice(device)
simulatorControl.waitForDevice(device)
}
}