TargetedNativeComponent

API Documentation:TargetedNativeComponent

Note: This class is incubating and may change in a future version of Gradle.

A native component that can be configured to target certain variant dimensions. This functionality is a temporary workaround to eliminate configuration of unnecessary domain objects and tasks.

Properties

No properties

Methods

MethodDescription
targetBuildTypes(platformSelectors)
Incubating

Specifies the names of one or more BuildTypes that this component should be built for.

targetFlavors(flavorSelectors)
Incubating

Specifies the names of one or more Flavors that this component should be built for.

targetPlatforms(platformSelectors)
Incubating

Specifies the names of one or more NativePlatforms that this component should be built for.

Script blocks

No script blocks

Method details

void targetBuildTypes(String... platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more BuildTypes that this component should be built for.

void targetFlavors(String... flavorSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more Flavors that this component should be built for.

void targetPlatforms(String... platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more NativePlatforms that this component should be built for.