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

com.jeppeman.globallydynamic.gradle.extensions.ApplicationVariant.kt Maven / Gradle / Ivy

Go to download

GloballyDynamic - Gradle plugin to facilitate for local dynamic delivery for Android.

There is a newer version: 1.9.0
Show newest version
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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy