ComposeCompilerGradlePluginExtension

Provides DSL to configure Compose compiler plugin options.

It is available in the build scripts as the composeCompiler {} block:

composeCompiler {
...
}

Properties

Link copied to clipboard
val enableIntrinsicRemember: Property<Boolean>

Enable intrinsic remember performance optimization.

Link copied to clipboard
val enableNonSkippingGroupOptimization: Property<Boolean>

Remove groups around non-skipping composable functions.

Link copied to clipboard
val enableStrongSkippingMode: Property<Boolean>

Enable strong skipping mode.

Link copied to clipboard

A set of feature flags to enable. A feature requires a feature flag when it is in the process of becoming the default behavior of the Compose compiler. Features in this set will eventually be removed and integrated as baseline behavior; after that, disabling them will no longer be supported. See ComposeFeatureFlag for the list of features currently recognized by the plugin.

Link copied to clipboard
val generateFunctionKeyMetaClasses: Property<Boolean>

Generate function key metaclasses with annotations indicating the functions and their group keys.

Link copied to clipboard
val includeSourceInformation: Property<Boolean>

Include source information in generated code.

Link copied to clipboard
val includeTraceMarkers: Property<Boolean>

Include composition trace markers in the generated code.

Link copied to clipboard
abstract val metricsDestination: DirectoryProperty

Save Compose build metrics to this folder.

Link copied to clipboard
abstract val reportsDestination: DirectoryProperty

Save Compose build reports to this folder.

Link copied to clipboard
abstract val stabilityConfigurationFile: RegularFileProperty

Path to the stability configuration file.

Link copied to clipboard
abstract val stabilityConfigurationFiles: ListProperty<RegularFile>

List of paths to stability configuration files.

Link copied to clipboard
val targetKotlinPlatforms: SetProperty<KotlinPlatformType>

A set of Kotlin platforms to which the Compose compiler plugin will be applied.