com.avito.android.runner.devices.DeviceProviderFactoryProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of impl Show documentation
Show all versions of impl Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
package com.avito.android.runner.devices
import com.avito.android.runner.devices.internal.AndroidDebugBridgeProvider
import com.avito.android.runner.devices.internal.DeviceProviderFactoryImpl
import com.avito.android.runner.devices.internal.EmulatorsLogsReporterProvider
import com.avito.android.runner.devices.internal.kubernetes.KubernetesReservationClientProvider
import com.avito.android.runner.devices.model.DeviceType
import com.avito.logger.LoggerFactory
import com.avito.runner.service.worker.device.adb.listener.RunnerMetricsConfig
import com.avito.time.TimeProvider
import com.avito.utils.ProcessRunner
import java.time.Duration
public class DeviceProviderFactoryProvider(
private val loggerFactory: LoggerFactory,
private val timeProvider: TimeProvider,
private val deviceType: DeviceType,
private val kubernetesReservationClientProvider: KubernetesReservationClientProvider,
private val androidDebugBridgeProvider: AndroidDebugBridgeProvider,
private val emulatorsLogsReporterProvider: EmulatorsLogsReporterProvider,
private val metricsConfig: RunnerMetricsConfig,
private val processRunner: ProcessRunner,
private val adbPullTimeout: Duration,
) {
public fun provide(): DevicesProviderFactory {
return DeviceProviderFactoryImpl(
loggerFactory = loggerFactory,
timeProvider = timeProvider,
deviceType = deviceType,
kubernetesReservationClientProvider = kubernetesReservationClientProvider,
emulatorsLogsReporterProvider = emulatorsLogsReporterProvider,
androidDebugBridgeProvider = androidDebugBridgeProvider,
metricsConfig = metricsConfig,
processRunner = processRunner,
adbPullTimeout = adbPullTimeout
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy