Packaging

interface Packaging

Summary

Public functions

Unit

PackagingOptions for dex

Unit
doNotStrip(pattern: String)

This function is deprecated. This method is deprecated.

Unit
exclude(pattern: String)

This function is deprecated. This method is deprecated.

Unit

PackagingOptions for jniLibs

Unit
merge(pattern: String)

This function is deprecated. This method is deprecated.

Unit
pickFirst(pattern: String)

This function is deprecated. This method is deprecated.

Unit

PackagingOptions for java resources

Public properties

DexPackaging

PackagingOptions for dex

MutableSet<String>

This property is deprecated. This property is deprecated.

MutableSet<String>

This property is deprecated. This property is deprecated.

JniLibsPackaging

PackagingOptions for jniLibs

MutableSet<String>

This property is deprecated. This property is deprecated.

MutableSet<String>

This property is deprecated. This property is deprecated.

ResourcesPackaging

PackagingOptions for java resources

Public functions

dex

fun dex(action: @ExtensionFunctionType DexPackaging.() -> Unit): Unit

PackagingOptions for dex

doNotStrip

fun doNotStrip(pattern: String): Unit

Adds a doNotStrip pattern.

Parameters
pattern: String

the pattern, as packaged in the APK

exclude

fun exclude(pattern: String): Unit

Adds an excluded pattern.

Parameters
pattern: String

the pattern

jniLibs

fun jniLibs(action: @ExtensionFunctionType JniLibsPackaging.() -> Unit): Unit

PackagingOptions for jniLibs

merge

fun merge(pattern: String): Unit

Adds a merge pattern.

Parameters
pattern: String

the pattern, as packaged in the APK

pickFirst

fun pickFirst(pattern: String): Unit

Adds a first-pick pattern.

Parameters
pattern: String

the path to add.

resources

fun resources(action: @ExtensionFunctionType ResourcesPackaging.() -> Unit): Unit

PackagingOptions for java resources

Public properties

dex

val dexDexPackaging

PackagingOptions for dex

doNotStrip

val doNotStripMutableSet<String>

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

excludes

val excludesMutableSet<String>

The set of excluded paths.

jniLibs

val jniLibsJniLibsPackaging

PackagingOptions for jniLibs

merges

val mergesMutableSet<String>

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

pickFirsts

val pickFirstsMutableSet<String>

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.

resources

val resourcesResourcesPackaging

PackagingOptions for java resources