# ComponentProperties

# ComponentProperties

```
@Incubating interface ComponentProperties : ComponentIdentity, ActionableComponentObject
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.component.ComponentProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentProperties#) |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [TestComponentProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/TestComponentProperties),[VariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/VariantProperties.html#) |-------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------| | [TestComponentProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/TestComponentProperties) | <br />                                      | | [VariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/VariantProperties.html#)         | Parent interface for all types of variants. | |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect Subclasses [AndroidTestProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/AndroidTestProperties),[ApplicationVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/ApplicationVariantProperties.html#),[DynamicFeatureVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/DynamicFeatureVariantProperties.html#),[LibraryVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/LibraryVariantProperties.html#),[TestVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/TestVariantProperties.html#),[UnitTestProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/UnitTestProperties) |---------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AndroidTestProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/AndroidTestProperties)                         | Properties for the android test Variant of a module                                                                                                           | | [ApplicationVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/ApplicationVariantProperties.html#)       | Properties for the main Variant of an application.                                                                                                            | | [DynamicFeatureVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/DynamicFeatureVariantProperties.html#) | <br />                                                                                                                                                        | | [LibraryVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/LibraryVariantProperties.html#)               | [VariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/VariantProperties.html#)for Library projects   | | [TestVariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/TestVariantProperties.html#)                     | [VariantProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/variant/VariantProperties.html#)for test-only modules. | | [UnitTestProperties](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/UnitTestProperties)                               | Properties for the unit test Variant of a module                                                                                                              | |

## Summary

|                                                                                                                                                                                     ### Properties                                                                                                                                                                                      ||
|----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Artifacts](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/artifact/Artifacts.html#) | [artifacts](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentProperties#artifacts:com.android.build.api.artifact.Artifacts) Access to the variant's buildable artifacts for build customization. |

| ### Inherited properties ||
|---|---|
| From class[ComponentIdentity](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                                                                                                                                                                            | [buildType](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#buildType:kotlin.String) <br /> Build Type name, might be replaced with access to locked DSL object once ready <br />                                                                                                                                                                                      | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                             | [flavorName](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#flavorName:kotlin.String) <br /> The multi-flavor name of the variant. This does not include the build type. If no flavors are present, this is an empty string. The full name of the variant is queried via[getName](https://docs.gradle.org/current/javadoc/org/gradle/api/Named.html#getName()) <br /> | | [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>> | [productFlavors](https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/component/ComponentIdentity#productFlavors:kotlin.collections.List) <br /> List of flavor names, might be replaced with access to locked DSL objects once ready The order is properly sorted based on the associated dimension order <br />                                                                                       | ||

## Properties

### artifacts

```
abstract val artifacts: Artifacts
```

Access to the variant's buildable artifacts for build customization.