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

dagger.hilt.android.plugin.util.Files.kt Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.hilt.android.plugin.util

import com.android.SdkConstants
import java.io.File
import java.util.zip.ZipEntry

/* Checks if a file is a .class file. */
fun File.isClassFile() = this.isFile && this.extension == SdkConstants.EXT_CLASS

/* Checks if a Zip entry is a .class file. */
fun ZipEntry.isClassFile() = !this.isDirectory && this.name.endsWith(SdkConstants.DOT_CLASS)

/* CHecks if a file is a .jar file. */
fun File.isJarFile() = this.isFile && this.extension == SdkConstants.EXT_JAR




© 2015 - 2024 Weber Informatics LLC | Privacy Policy