public class AppleDeviceHelper extends Object
| Constructor and Description |
|---|
AppleDeviceHelper(ProcessExecutor processExecutor,
Path deviceHelperPath) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,String> |
getConnectedDevices()
Runs the helper program to enumerate all currently-connected devices.
|
boolean |
installBundleOnDevice(String udid,
Path bundlePath)
Attempts to install a bundle on the device.
|
boolean |
runBundleOnDevice(String udid,
String bundleID)
Attempts to run a bundle on the device.
|
public AppleDeviceHelper(ProcessExecutor processExecutor, Path deviceHelperPath)
public com.google.common.collect.ImmutableMap<String,String> getConnectedDevices()
IOExceptionInterruptedExceptionpublic boolean installBundleOnDevice(String udid, Path bundlePath)
udid - The identifier of the devicebundlePath - The path to the bundle root (e.g. /path/to/Example.app/)public boolean runBundleOnDevice(String udid, String bundleID)
udid - The identifier of the devicebundleID - The bundle ID (e.g. com.example.DemoApp)