io.github.reactivecircus.appversioning.VariantInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of app-versioning-gradle-plugin Show documentation
Show all versions of app-versioning-gradle-plugin Show documentation
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
}
}