KmpOptimization

@Incubating
public interface KmpOptimization


DSL object for configurations aimed for optimizing build process(e.g. speed, correctness)

Summary

Public methods

abstract @NonNull ConsumerKeepRules

The collection of keep rule files for consumers of the library to use.

abstract @NonNull LibraryKeepRules

The collection of keep rule files that the plugin should use when optimizing the AAR

abstract boolean

Specifies whether to enable code shrinking for this build type.

abstract @NonNull ConfigurableFiles

The collection of keep rule files to use for the test APK.

abstract void
@Incubating
setMinify(boolean minify)

Specifies whether to enable code shrinking for this build type.

Public methods

getConsumerKeepRules

@Incubating
abstract @NonNull ConsumerKeepRules getConsumerKeepRules()

The collection of keep rule files for consumers of the library to use.

getKeepRules

@Incubating
abstract @NonNull LibraryKeepRules getKeepRules()

The collection of keep rule files that the plugin should use when optimizing the AAR

getMinify

@Incubating
abstract boolean getMinify()

Specifies whether to enable code shrinking for this build type.

By default, when you enable code shrinking by setting this property to true, the Android plugin uses ProGuard.

To learn more, read Shrink Your Code and Resources.

getTestKeepRules

@Incubating
abstract @NonNull ConfigurableFiles getTestKeepRules()

The collection of keep rule files to use for the test APK.

setMinify

@Incubating
abstract void setMinify(boolean minify)

Specifies whether to enable code shrinking for this build type.

By default, when you enable code shrinking by setting this property to true, the Android plugin uses ProGuard.

To learn more, read Shrink Your Code and Resources.