# TargetedNativeComponent

@Incubating
interface TargetedNativeComponent : PlatformAwareComponentSpec, NativeComponentSpec(source)

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.

#### Inheritors

NativeLibrarySpec
NativeExecutableSpec

## Functions

getBaseName
Link copied to clipboard
abstract fun getBaseName(): String
getBinaries
Link copied to clipboard
abstract fun getBinaries(): ModelMap<BinarySpec>
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getName
Link copied to clipboard
abstract fun getName(): String
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
getVariants
Link copied to clipboard
abstract fun getVariants(): Iterable<out Binary>
setBaseName
Link copied to clipboard
abstract fun setBaseName(baseName: String)
targetBuildTypes
Link copied to clipboard
abstract fun targetBuildTypes(buildTypeSelectors: Array<String>)
Specifies the names of one or more BuildTypes that this component should be built for.
targetFlavors
Link copied to clipboard
abstract fun targetFlavors(flavorSelectors: Array<String>)
Specifies the names of one or more Flavors that this component should be built for.
targetPlatform
Link copied to clipboard
abstract fun targetPlatform(targetPlatform: String)