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

com.avito.android.runner.devices.internal.AndroidDebugBridgeImpl.kt Maven / Gradle / Ivy

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

There is a newer version: 2024.32
Show newest version
package com.avito.android.runner.devices.internal

import com.avito.logger.LoggerFactory
import com.avito.runner.service.worker.device.Serial
import com.avito.runner.service.worker.device.adb.Adb
import com.avito.utils.ProcessRunner

internal class AndroidDebugBridgeImpl(
    private val adb: Adb,
    private val loggerFactory: LoggerFactory,
    private val processRunner: ProcessRunner
) : AndroidDebugBridge {

    override fun getRemoteDevice(serial: Serial.Remote): RemoteDeviceImpl {
        return RemoteDeviceImpl(
            serial = serial,
            adb = adb,
            processRunner = processRunner,
            loggerFactory = loggerFactory
        )
    }

    override fun getLocalDevice(serial: Serial.Local): LocalDevice {
        return LocalDevice(
            serial = serial,
            adb = adb,
            processRunner = processRunner,
            loggerFactory = loggerFactory
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy