
okreplay.Device.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
OkReplay Gradle plugin for pushing and pulling tape files to/from device
The newest version!
package okreplay
import org.gradle.api.logging.Logger
internal open class Device(
private val deviceInterface: DeviceInterface,
private val logger: Logger
) {
internal fun pullDirectory(localPath: String, remotePath: String) {
logger.info("Pulling remote $remotePath to local $localPath")
deviceInterface.pull(remotePath, localPath)
}
/** Recursively delete all files and directories in the remote path */
internal fun deleteDirectory(remotePath: String) {
logger.info("Clearing remote directory $remotePath")
deviceInterface.delete(remotePath)
}
internal fun externalStorageDir() = deviceInterface.externalStorageDir()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy