LibraryVariantDimension
interface LibraryVariantDimension : VariantDimension
LibraryBaseFlavor |
|
LibraryBuildType |
Build types define certain properties that Gradle uses when building and packaging your library, and are typically configured for different stages of your development lifecycle. |
LibraryDefaultConfig |
Specifies defaults for properties that the Android library plugin applies to all build variants. |
LibraryProductFlavor |
Encapsulates all product flavors properties for library projects. |
Shared properties between DSL objects that contribute to a library variant.
That is, LibraryBuildType
and LibraryProductFlavor
and LibraryDefaultConfig
.
Summary
Public functions |
|
---|---|
@Incubating Unit |
aarMetadata(action: @ExtensionFunctionType AarMetadata.() -> Unit) Options for configuring AAR metadata. |
@Incubating Unit |
aarMetadata(action: Action<AarMetadata>) Options for configuring AAR metadata. |
@Incubating Any |
consumerProguardFile(proguardFile: Any) Adds a proguard rule file to be included in the published AAR. |
@Incubating Any |
consumerProguardFiles(vararg proguardFiles: Any) Adds proguard rule files to be included in the published AAR. |
Public properties |
|
---|---|
AarMetadata |
Options for configuring AAR metadata. |
MutableList<File> |
ProGuard rule files to be included in the published AAR. |
Boolean? |
Returns whether multi-dex is enabled. |
ApkSigningConfig? |
The associated signing config or null if none are set on the variant dimension. |
Inherited functions |
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public functions
aarMetadata
@Incubating
fun aarMetadata(action: @ExtensionFunctionType AarMetadata.() -> Unit): Unit
Options for configuring AAR metadata.
aarMetadata
@Incubating
fun aarMetadata(action: Action<AarMetadata>): Unit
Options for configuring AAR metadata.
consumerProguardFile
@Incubating
fun consumerProguardFile(proguardFile: Any): Any
Adds a proguard rule file to be included in the published AAR.
This proguard rule file will then be used by any application project that consume the AAR (if proguard is enabled).
This allows AAR to specify shrinking or obfuscation exclude rules.
This is only valid for Library project. This is ignored in Application project.
This method has a return value for legacy reasons.
consumerProguardFiles
@Incubating
fun consumerProguardFiles(vararg proguardFiles: Any): Any
Adds proguard rule files to be included in the published AAR.
This proguard rule file will then be used by any application project that consume the AAR (if proguard is enabled).
This allows AAR to specify shrinking or obfuscation exclude rules.
This is only valid for Library project. This is ignored in Application project.
This method has a return value for legacy reasons.
Public properties
consumerProguardFiles
val consumerProguardFiles: MutableList<File>
ProGuard rule files to be included in the published AAR.
These proguard rule files will then be used by any application project that consumes the AAR (if ProGuard is enabled).
This allows AAR to specify shrinking or obfuscation exclude rules.
This is only valid for Library project. This is ignored in Application project.
multiDexEnabled
var multiDexEnabled: Boolean?
Returns whether multi-dex is enabled.
This can be null if the flag is not set, in which case the default value is used.
signingConfig
var signingConfig: ApkSigningConfig?
The associated signing config or null if none are set on the variant dimension.