MetroPluginExtension
Constructors
Properties
Enable/disable chunking of field initializers. Enabled by default.
Enable/disable Kotlin version compatibility checks. Defaults to true or the value of the metro.version.check
gradle property.
Enable/disable hint property generation for scoped inject classes. Disabled by default.
Enables whether the Metro compiler plugin can inject top-level functions. See the kdoc on Inject
for more details.
Enables whether the Metro compiler plugin will automatically generate assisted factories for injected constructors with assisted parameters. See the kdoc on AssistedFactory
for more details.
Enable/disable contribution hint generation in IR for contributed types. Enabled by default.
Enable/disable contribution hint generation in FIR for JVM compilations types. Disabled by default. Requires generateContributionHints to be true
Configures the Metro compiler plugin to warn, error, or do nothing when it encounters public
provider callables. See the kdoc on Provides
for more details.
If set, the Metro compiler will dump report diagnostics about resolved dependency graphs to the given destination.
Enable/disable shrinking of unused bindings. Enabled by default.
Enable/disable automatic transformation of providers to be private. Enabled by default.
Enable/disable suggestion to lift @Inject to class when there is only one constructor. Enabled by default.