ApplicationAndroidResources

Added in 8.5.0-alpha06

@Incubating
interface ApplicationAndroidResources : AndroidResources


Build-time properties for Android Resources inside a Component. Specialization of AndroidResources for modules that applied the com.android.application plugin.

This is accessed via GeneratesApk.androidResources

Summary

Public properties

Boolean

Read-only property that automatically generates locale config when enabled.

Inherited properties

From com.android.build.api.variant.AndroidResources
ListProperty<String>

The list of additional parameters to pass to aapt.

Boolean

Flag indicating whether databinding feature is on

ListProperty<String>

The list of patterns describing assets to be ignored.

ListProperty<String>

File extensions of Android resources, assets, and Java resources to be stored uncompressed in the APK.

Boolean

Flag indicating whether viewbinding feature is on

Public properties

generateLocaleConfig

Added in 8.5.0-alpha06
val generateLocaleConfigBoolean

Read-only property that automatically generates locale config when enabled.

To set it, use ApplicationAndroidResourcesBuilder.generateLocaleConfig in a AndroidComponentsExtension.beforeVariants callback.