All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openbakery.simulators.SimulatorKillTask.groovy Maven / Gradle / Ivy

Go to download

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.Type
import org.openbakery.XcodePlugin

class SimulatorKillTask extends AbstractSimulatorTask {

	public SimulatorKillTask() {
		setDescription("Deletes contents and settings for all Simulators")
		this.setOnlyIf {
			isSimulator()
		}
	}

	boolean isSimulator() {
		project.xcodebuild.isSimulatorBuildOf(Type.iOS) || project.xcodebuild.isSimulatorBuildOf(Type.tvOS)
	}

	@TaskAction
	void run() {
		simulatorControl.killAll()
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy