filterResourcesToLocales

abstract val filterResourcesToLocales: Property<Boolean>

Whether the selected app's resource locale filters are replaced with the root locale list.

Default: false.

This one changes what ships: languages outside the list are dropped from packaged resources in the APK or AAB. Enable it only when the list is complete, or users will see untranslated strings.

See also

for the list this filters to.

Throws

GradleException

during configuration when enabled with an empty locale list, which would strip every language.