Stay organized with collections Save and categorize content based on your preferences.

AndroidPluginVersion

@Incubating class AndroidPluginVersion : Comparable<AndroidPluginVersion>
kotlin.Any
   ↳ com.android.build.api.AndroidPluginVersion

Represents a version of the Android Gradle Plugin

Designed for plugin authors to compare the currently running plugin version

Summary

Public constructors

<init>(major: Int, minor: Int)

<init>(major: Int, minor: Int, micro: Int)

Public methods

AndroidPluginVersion
alpha(alpha: Int)

AndroidPluginVersion
beta(beta: Int)

Int

AndroidPluginVersion
dev()

Boolean
equals(other: Any?)

Int

AndroidPluginVersion
rc(rc: Int)

String

Properties

Int

Int

Int

Int

String?

Public constructors

<init>

AndroidPluginVersion(
    major: Int,
    minor: Int)

<init>

AndroidPluginVersion(
    major: Int,
    minor: Int,
    micro: Int)

Public methods

alpha

fun alpha(alpha: Int): AndroidPluginVersion

beta

fun beta(beta: Int): AndroidPluginVersion

compareTo

fun compareTo(other: AndroidPluginVersion): Int

dev

fun dev(): AndroidPluginVersion

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

rc

fun rc(rc: Int): AndroidPluginVersion

toString

fun toString(): String

Properties

major

val major: Int

micro

val micro: Int

minor

val minor: Int

preview

val preview: Int

previewType

val previewType: String?