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

com.avito.impact.configuration.AndroidTestConfiguration.kt Maven / Gradle / Ivy

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy