com.avito.impact.configuration.AndroidTestConfiguration.kt Maven / Gradle / Ivy
The newest version!
package com.avito.impact.configuration
import com.avito.impact.configuration.sets.isAndroidTest
import com.avito.module.configurations.ConfigurationType.AndroidTests
public class AndroidTestConfiguration(module: InternalModule) :
BaseConfiguration(module, AndroidTests) {
override val isModified: Boolean by lazy {
dependencies.any { it.isModified }
|| module.mainConfiguration.isModified
|| hasChangedFiles
}
override fun containsSources(
@Suppress("DEPRECATION")
sourceSet: com.android.build.gradle.api.AndroidSourceSet
): Boolean = sourceSet.isAndroidTest()
override fun toString(): String {
return "AndroidTestConfiguration(${project.path})"
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as AndroidTestConfiguration
if (project != other.project) return false
return true
}
override fun hashCode(): Int {
return project.hashCode()
}
}