com.jeppeman.globallydynamic.gradle.extensions.ApplicationVariant.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin Show documentation
Show all versions of plugin Show documentation
GloballyDynamic - Gradle plugin to facilitate for local dynamic delivery for Android.
package com.jeppeman.globallydynamic.gradle.extensions
import com.android.build.gradle.api.ApplicationVariant
fun ApplicationVariant.getTaskName(prefix: String, suffix: String = ""): String {
val stringBuilder = StringBuilder(prefix)
if (prefix.isBlank()) {
stringBuilder.append(name)
} else {
stringBuilder.append(name.capitalize())
}
stringBuilder.append(suffix.capitalize())
return stringBuilder.toString()
}