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

com.avito.android.diff.report.OwnersDiffReporterFactory.kt Maven / Gradle / Ivy

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

The newest version!
package com.avito.android.diff.report

import com.avito.android.diff.formatter.OwnersDiffMessageFormatter
import com.avito.android.diff.report.file.FileOwnersDiffReporter

public class OwnersDiffReporterFactory(private val messageFormatter: OwnersDiffMessageFormatter) {

    public fun create(destination: OwnersDiffReportDestination): OwnersDiffReporter {
        return when (destination) {
            is OwnersDiffReportDestination.Custom -> destination.reporter
            is OwnersDiffReportDestination.File -> FileOwnersDiffReporter(destination.parentDir, messageFormatter)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy