Provides read-only versions of BuildType, (Groupable)ProductFlavor and SigningConfig instances so that they can safely be exposed through the variant API. The class creates them on the fly so that they are only created when a Gradle script/plugin queries for them, and caches them so that we reuse them as needed.
Type | Name and description |
---|---|
com.android.builder.model.BuildType |
getBuildType(com.android.builder.model.BuildType buildType) Returns an read-only version of a build type. |
GroupableProductFlavor |
getProductFlavor(GroupableProductFlavor productFlavor) Retuens an read-only version of a groupable product flavor. |
com.android.builder.model.SigningConfig |
getSigningConfig(com.android.builder.model.SigningConfig signingConfig) Returns an read-only version of a signing config. |
Returns an read-only version of a build type.
buildType
- the build type.Retuens an read-only version of a groupable product flavor.
productFlavor
- the product flavor.Returns an read-only version of a signing config.
signingConfig
- the signing config.