com.avito.android.diff.report.OwnersDiffReporterFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-ownership Show documentation
Show all versions of code-ownership Show documentation
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)
}
}
}