abstract class ReadOnlyBaseConfig extends Object
Read-only version of the BaseConfig wrapping another BaseConfig. In the variant API, it is important that the objects returned by the variants are read-only. However, even though the API is defined to use the base interfaces as return type (which all contain only getters), the dynamics of Groovy makes it easy to actually use the setters of the implementation classes. This wrapper ensures that the returned instance is actually just a strict implementation of the base interface and is read-only.
Constructor and description |
---|
protected ReadOnlyBaseConfig
(com.android.builder.model.BaseConfig baseConfig) |
Type | Name and description |
---|---|
Map<String, com.android.builder.model.ClassField> |
getBuildConfigFields() |
Collection<File> |
getConsumerProguardFiles() |
Map<String, Object> |
getManifestPlaceholders() |
Boolean |
getMultiDexEnabled() |
File |
getMultiDexKeepFile() |
File |
getMultiDexKeepProguard() |
String |
getName() |
Collection<File> |
getProguardFiles() |
Map<String, com.android.builder.model.ClassField> |
getResValues() |
def |
hasProperty(String name) Provide dynamic properties refective access. |
def |
propertyMissing(String name) Some build scripts add dynamic properties to flavors declaration (and others) and expect to retrieve such properties values through this model. |
def |
propertyMissing(String name, def value) Do not authorize setting dynamic properties values and provide a meaningful error message. |
Provide dynamic properties refective access.
name
- a property nameSome build scripts add dynamic properties to flavors declaration (and others) and expect to retrieve such properties values through this model. Delegate any property we don't know about to the {
name
- the property name