io.appmetrica.gradle.aarcheck.utils.NamesUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aar-check Show documentation
Show all versions of aar-check Show documentation
Provides plugin for check aar
The newest version!
package io.appmetrica.gradle.aarcheck.utils
private const val OBFUSCATED_CLASS_NAME_MAX_LENGTH = 2
object NamesUtils {
fun fixPackageName(name: String): String = name.replace('/', '.')
fun unfixPackageName(name: String): String = name.replace('.', '/')
fun getFullClassName(name: String): String = fixPackageName(name.dropLast(".class".length))
fun isObfuscatedClassName(name: String): Boolean =
name.substringAfterLast("$").length <= OBFUSCATED_CLASS_NAME_MAX_LENGTH
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy