Stay organized with collections
Save and categorize content based on your preferences.
CanMinifyCodeBuilder
@Incubating interface CanMinifyCodeBuilder
Interface for component builder that can minify code
Summary
Public properties |
Boolean |
Specifies whether code will be minified
|
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CanMinifyCodeBuilder\n====================\n\n\n```\n@Incubating interface CanMinifyCodeBuilder\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ApplicationVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/ApplicationVariantBuilder), [LibraryVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/LibraryVariantBuilder), [TestVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/TestVariantBuilder) \n\n|----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [ApplicationVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/ApplicationVariantBuilder) | Application specific variant object that contains properties that will determine the variant's build flow. |\n| [LibraryVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/LibraryVariantBuilder) | [VariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/VariantBuilder) type for library projects |\n| [TestVariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/TestVariantBuilder) | [VariantBuilder](/reference/tools/gradle-api/8.1/com/android/build/api/variant/VariantBuilder) type for tests associated with a module. |\n\n*** ** * ** ***\n\nInterface for component builder that can minify code\n\nSummary\n-------\n\n| ### Public properties ||\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isMinifyEnabled](/reference/tools/gradle-api/8.1/com/android/build/api/variant/CanMinifyCodeBuilder#isMinifyEnabled()) Specifies whether code will be minified |\n\nPublic properties\n-----------------\n\n### isMinifyEnabled\n\n```\nvar isMinifyEnabled: Boolean\n```\n\nSpecifies whether code will be minified"]]