| API Documentation: | TargetedNativeComponent |
|---|
| Known Subtypes: |
|
|---|
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.
| Property | Description |
binaries | Incubating The binaries that are built for this component. You can use this to configure the binaries for this component. |
displayName | Incubating Returns a human-consumable display name for this component. |
source | Deprecated Incubating The source sets that are used to build this component. |
| Method | Description |
sources(action) | Incubating Configures the source sets used to build this component. |
targetBuildTypes(platformSelectors) | Incubating Specifies the names of one or more |
targetFlavors(flavorSelectors) | Incubating Specifies the names of one or more |
targetPlatform(targetPlatform) | Incubating Specifies a platform that this component should be built be for. |
ModelMap<BinarySpec> binaries (read-only)
ModelMap<BinarySpec>Note: This property is incubating and may change in a future version of Gradle.
The binaries that are built for this component. You can use this to configure the binaries for this component.
String displayName (read-only)
Note: This property is incubating and may change in a future version of Gradle.
Returns a human-consumable display name for this component.
ModelMap<LanguageSourceSet> source (read-only)
ModelMap<LanguageSourceSet>Note: This property is deprecated and will be removed in the next major version of Gradle.
Note: This property is incubating and may change in a future version of Gradle.
The source sets that are used to build this component.
void sources(Action<? super ModelMap<LanguageSourceSet>> action)
Action<? super ModelMap<LanguageSourceSet>>Note: This method is incubating and may change in a future version of Gradle.
Configures the source sets used to build this component.
void targetBuildTypes(String... platformSelectors)
String...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)
String...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 targetPlatform(String targetPlatform)
Note: This method is incubating and may change in a future version of Gradle.
Specifies a platform that this component should be built be for.