# KotlinMultiplatformAndroidVariantBuilder

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/KotlinMultiplatformAndroidVariantBuilder.kt+class:com.android.build.api.variant.KotlinMultiplatformAndroidVariantBuilder) Added in 8.10.1


```
interface KotlinMultiplatformAndroidVariantBuilder : LibraryVariantBuilder
```

<br />

*** ** * ** ***

Model for kotlin multiplatform library components that only contains configuration-time properties that impacts the build flow.

See `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentBuilder`, `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/LibraryVariantBuilder` and `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder` for more information.

## Summary

| ### Inherited functions |
|---|
| From [com.android.build.api.variant.VariantBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html> https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#registerExtension(java.lang.Class,kotlin.Any)(type: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html<T>, instance: T)` Registers an extension object to the variant object. | |

| ### Inherited properties |
|---|
| From [com.android.build.api.variant.CanMinifyCodeBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/CanMinifyCodeBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/CanMinifyCodeBuilder#isMinifyEnabled()` Specifies whether code will be minified | |
| From [com.android.build.api.variant.ComponentBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentBuilder#enable()` Set to `true` if the variant is active and should be configured, false otherwise. | |
| From [com.android.build.api.variant.ComponentIdentity](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentIdentity) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentIdentity#buildType()` Build type name. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentIdentity#flavorName()` The multi-flavor name of the variant. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentIdentity#name()` Component's name. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>>` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/ComponentIdentity#productFlavors()` List of flavor names. | |
| From [com.android.build.api.variant.HasAndroidTestBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasAndroidTestBuilder) |---|---| | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/AndroidTestBuilder` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasAndroidTestBuilder#androidTest()` Variant's `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/AndroidTestBuilder` configuration to turn on or off android tests and set other android test related settings. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasAndroidTestBuilder#androidTestEnabled()` Set to `true` if the variant's has any android tests, false otherwise. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasAndroidTestBuilder#enableAndroidTest()` Set to `true` if the variant's has any android tests, false otherwise. | |
| From [com.android.build.api.variant.HasDeviceTestsBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasDeviceTestsBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/DeviceTestBuilder>` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasDeviceTestsBuilder#deviceTests()` List of `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/DeviceTestBuilder` for this variant. | |
| From [com.android.build.api.variant.HasHostTestsBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasHostTestsBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HostTestBuilder>` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasHostTestsBuilder#hostTests()` Variant's `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HostTestBuilder` configuration to turn on or off screenshot tests and set other screenshot test related settings. | |
| From [com.android.build.api.variant.HasTestFixturesBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasTestFixturesBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasTestFixturesBuilder#enableTestFixtures()` Set to `true` if the variant's has test fixtures, `false` otherwise. | |
| From [com.android.build.api.variant.HasTestSuitesBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasTestSuitesBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/TestSuiteBuilder>` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/HasTestSuitesBuilder#suites()` Variant's `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/TestSuiteBuilder` configuration to configure test suites associated with this variant. | |
| From [com.android.build.api.variant.VariantBuilder](https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#enableLint()` Whether lint should be run on this variant. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#maxSdk()` Sets the maximum supported SDK Version for this variant. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#minSdk()` Sets the minimum supported SDK Version for this variant. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#minSdkPreview()` Sets the minimum supported SDK Version for this variant as a Preview codename. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.3/com/android/build/api/variant/VariantBuilder#renderscriptTargetApi()` Specifies the bytecode version to be generated. | |