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

io.github.reactivecircus.appversioning.VariantInfo.kt Maven / Gradle / Ivy

Go to download

Gradle plugin for lazily generating Android app's versionCode & versionName from Git tags

The newest version!
package io.github.reactivecircus.appversioning

import org.gradle.language.nativeplatform.internal.BuildType
import java.io.Serializable

class VariantInfo(
    val buildType: String?,
    val flavorName: String,
    val variantName: String
) : Serializable {
    val isDebugBuild: Boolean get() = buildType == BuildType.DEBUG.name
    val isReleaseBuild: Boolean get() = buildType == BuildType.RELEASE.name

    companion object {
        private const val serialVersionUID = 1L
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy