Stay organized with collections
Save and categorize content based on your preferences.
AndroidPluginVersion
@Incubating class AndroidPluginVersion : Comparable<AndroidPluginVersion>
Represents a version of the Android Gradle Plugin
Designed for plugin authors to compare the currently running plugin version
Summary
Public constructors
<init>
AndroidPluginVersion(
major: Int,
minor: Int)
<init>
AndroidPluginVersion(
major: Int,
minor: Int,
micro: Int)
Public methods
hashCode
fun hashCode(): Int
toString
fun toString(): String
Properties
previewType
val previewType: String?
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AndroidPluginVersion\n====================\n\n```\n@Incubating class AndroidPluginVersion : Comparable\u003cAndroidPluginVersion\u003e\n```\n\n|---|-------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [com.android.build.api.AndroidPluginVersion](#) |\n\nRepresents a version of the Android Gradle Plugin\n\nDesigned for plugin authors to compare the currently running plugin version\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(kotlin.Int,%20kotlin.Int))`(`major:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `minor:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| [\u003cinit\u003e](#%3Cinit%3E(kotlin.Int,%20kotlin.Int,%20kotlin.Int))`(`major:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `minor:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `micro:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [AndroidPluginVersion](#) | [alpha](#alpha(kotlin.Int))`(`alpha:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| [AndroidPluginVersion](#) | [beta](#beta(kotlin.Int))`(`beta:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [compareTo](#compareTo(com.android.build.api.AndroidPluginVersion))`(`other:` `[AndroidPluginVersion](#)`)` \u003cbr /\u003e |\n| [AndroidPluginVersion](#) | [dev](#dev())`()` \u003cbr /\u003e |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n| [AndroidPluginVersion](#) | [rc](#rc(kotlin.Int))`(`rc:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` \u003cbr /\u003e |\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [major](#major:kotlin.Int) \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [micro](#micro:kotlin.Int) \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [minor](#minor:kotlin.Int) \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [preview](#preview:kotlin.Int) \u003cbr /\u003e |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [previewType](#previewType:kotlin.String) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nAndroidPluginVersion(\n major: Int, \n minor: Int)\n``` \n\n### \\\u003cinit\\\u003e\n\n```\nAndroidPluginVersion(\n major: Int, \n minor: Int, \n micro: Int)\n```\n\nPublic methods\n--------------\n\n### alpha\n\n```\nfun alpha(alpha: Int): AndroidPluginVersion\n``` \n\n### beta\n\n```\nfun beta(beta: Int): AndroidPluginVersion\n``` \n\n### compareTo\n\n```\nfun compareTo(other: AndroidPluginVersion): Int\n``` \n\n### dev\n\n```\nfun dev(): AndroidPluginVersion\n``` \n\n### equals\n\n```\nfun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nfun hashCode(): Int\n``` \n\n### rc\n\n```\nfun rc(rc: Int): AndroidPluginVersion\n``` \n\n### toString\n\n```\nfun toString(): String\n```\n\nProperties\n----------\n\n### major\n\n```\nval major: Int\n``` \n\n### micro\n\n```\nval micro: Int\n``` \n\n### minor\n\n```\nval minor: Int\n``` \n\n### preview\n\n```\nval preview: Int\n``` \n\n### previewType\n\n```\nval previewType: String?\n```"]]