ModuleType
The type of Gradle module, inferred from its applied plugin IDs.
Detection priority (first match wins - order matters for KMP vs plain Android):
KMP -
org.jetbrains.kotlin.multiplatformKMP_ANDROID_LIBRARY -
com.android.kotlin.multiplatform.library(AGP 9.x)ANDROID_APP -
com.android.applicationANDROID_LIBRARY -
com.android.libraryJVM_LIBRARY -
org.jetbrains.kotlin.jvmUNKNOWN - fallback when no known plugin is applied
Entries
AGP 9.x hybrid - applies both the Android library and KMP plugins. Plugin ID: com.android.kotlin.multiplatform.library
Android application module. AGP 9.x has built-in Kotlin support - no separate Kotlin plugin needed.
Standard Android library module.
Pure JVM / Kotlin library. No Android framework dependency.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.