Stay organized with collections
Save and categorize content based on your preferences.
CanMinifyAndroidResources
@Incubating interface CanMinifyAndroidResources
Interface for component that can shrink resources
Summary
Public properties |
Boolean |
Specifies whether resources will be shrinked.
|
Public properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CanMinifyAndroidResources\n=========================\n\n\n```\n@Incubating interface CanMinifyAndroidResources\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ApplicationVariant](/reference/tools/gradle-api/8.0/com/android/build/api/variant/ApplicationVariant) \n\n|--------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [ApplicationVariant](/reference/tools/gradle-api/8.0/com/android/build/api/variant/ApplicationVariant) | Properties for the main Variant of an application. |\n\n*** ** * ** ***\n\nInterface for component that can shrink resources\n\nSummary\n-------\n\n| ### Public properties ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [shrinkResources](/reference/tools/gradle-api/8.0/com/android/build/api/variant/CanMinifyAndroidResources#shrinkResources()) Specifies whether resources will be shrinked. |\n\nPublic properties\n-----------------\n\n### shrinkResources\n\n```\nval shrinkResources: Boolean\n```\n\nSpecifies whether resources will be shrinked. At this point the value is final. You can change it via [AndroidComponentsExtension.beforeVariants](/reference/tools/gradle-api/8.0/com/android/build/api/variant/AndroidComponentsExtension#beforeVariants(com.android.build.api.variant.VariantSelector,kotlin.Function1)) and [CanMinifyAndroidResourcesBuilder.shrinkResources](/reference/tools/gradle-api/8.0/com/android/build/api/variant/CanMinifyAndroidResourcesBuilder#shrinkResources())"]]