Packaging

public interface Packaging


Summary

Public methods

abstract void
dex(
    @ExtensionFunctionType @NonNull Function1<@NonNull DexPackagingUnit> action
)

PackagingOptions for dex

abstract void

This method is deprecated. This method is deprecated.

abstract void

This method is deprecated. This method is deprecated.

abstract @NonNull DexPackaging

PackagingOptions for dex

abstract @NonNull Set<@NonNull String>

The set of patterns for native library that should not be stripped of debug symbols.

abstract @NonNull Set<@NonNull String>

The set of excluded paths.

abstract @NonNull JniLibsPackaging

PackagingOptions for jniLibs

abstract @NonNull Set<@NonNull String>

The set of patterns where all occurrences are concatenated and packaged in the APK.

abstract @NonNull Set<@NonNull String>

The set of patterns where the first occurrence is packaged in the APK.

abstract @NonNull ResourcesPackaging

PackagingOptions for java resources

abstract void

PackagingOptions for jniLibs

abstract void
merge(@NonNull String pattern)

This method is deprecated. This method is deprecated.

abstract void

This method is deprecated. This method is deprecated.

abstract void

PackagingOptions for java resources

Public methods

dex

abstract void dex(
    @ExtensionFunctionType @NonNull Function1<@NonNull DexPackagingUnit> action
)

PackagingOptions for dex

doNotStrip

abstract void doNotStrip(@NonNull String pattern)

Adds a doNotStrip pattern.

Parameters
@NonNull String pattern

the pattern, as packaged in the APK

exclude

abstract void exclude(@NonNull String pattern)

Adds an excluded pattern.

Parameters
@NonNull String pattern

the pattern

getDex

abstract @NonNull DexPackaging getDex()

PackagingOptions for dex

getDoNotStrip

abstract @NonNull Set<@NonNull StringgetDoNotStrip()

The set of patterns for native library that should not be stripped of debug symbols.

getExcludes

abstract @NonNull Set<@NonNull StringgetExcludes()

The set of excluded paths.

getJniLibs

abstract @NonNull JniLibsPackaging getJniLibs()

PackagingOptions for jniLibs

getMerges

abstract @NonNull Set<@NonNull StringgetMerges()

The set of patterns where all occurrences are concatenated and packaged in the APK.

getPickFirsts

abstract @NonNull Set<@NonNull StringgetPickFirsts()

The set of patterns where the first occurrence is packaged in the APK. First pick patterns do get packaged in the APK, but only the first occurrence found gets packaged.

getResources

abstract @NonNull ResourcesPackaging getResources()

PackagingOptions for java resources

jniLibs

abstract void jniLibs(
    @ExtensionFunctionType @NonNull Function1<@NonNull JniLibsPackagingUnit> action
)

PackagingOptions for jniLibs

merge

abstract void merge(@NonNull String pattern)

Adds a merge pattern.

Parameters
@NonNull String pattern

the pattern, as packaged in the APK

pickFirst

abstract void pickFirst(@NonNull String pattern)

Adds a first-pick pattern.

Parameters
@NonNull String pattern

the path to add.

resources

abstract void resources(
    @ExtensionFunctionType @NonNull Function1<@NonNull ResourcesPackagingUnit> action
)

PackagingOptions for java resources