ConsumerKeepRules

@Incubating
public interface ConsumerKeepRules extends ConfigurableFiles


Summary

Public methods

abstract @NonNull Set<@NonNull String>

Ignore keep rules from listed external dependencies.

abstract boolean

Ignore keep rules from all the external dependencies.

abstract boolean

Publishing consumer proguard rules as part of a kmp library is an opt-in feature.

abstract void
@Incubating
setIgnoreFromAllExternalDependencies(
    boolean ignoreFromAllExternalDependencies
)

Ignore keep rules from all the external dependencies.

abstract void
@Incubating
setPublish(boolean publish)

Publishing consumer proguard rules as part of a kmp library is an opt-in feature.

Inherited methods

From com.android.build.api.dsl.ConfigurableFiles
abstract void
abstract void
abstract @NonNull List<@NonNull File>

Public methods

getIgnoreFrom

@Incubating
abstract @NonNull Set<@NonNull StringgetIgnoreFrom()

Ignore keep rules from listed external dependencies. External dependencies can be specified via GAV coordinates(e.g. "groupId:artifactId:version") or in the format of "groupId:artifactId" in which case dependencies are ignored as long as they match groupId & artifactId.

getIgnoreFromAllExternalDependencies

@Incubating
abstract boolean getIgnoreFromAllExternalDependencies()

Ignore keep rules from all the external dependencies.

getPublish

@Incubating
abstract boolean getPublish()

Publishing consumer proguard rules as part of a kmp library is an opt-in feature. By default, consumer proguard rules will not be published.

To enable it, set this property to true

setIgnoreFromAllExternalDependencies

@Incubating
abstract void setIgnoreFromAllExternalDependencies(
    boolean ignoreFromAllExternalDependencies
)

Ignore keep rules from all the external dependencies.

setPublish

@Incubating
abstract void setPublish(boolean publish)

Publishing consumer proguard rules as part of a kmp library is an opt-in feature. By default, consumer proguard rules will not be published.

To enable it, set this property to true