Stay organized with collections Save and categorize content based on your preferences.

PackagingOptions

@Incubating interface PackagingOptions


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

DexPackagingOptions

PackagingOptions for dex

MutableSet<String>

This property is deprecated. This property is deprecated.

MutableSet<String>

This property is deprecated. This property is deprecated.

JniLibsPackagingOptions

PackagingOptions for jniLibs

MutableSet<String>

This property is deprecated. This property is deprecated.

MutableSet<String>

This property is deprecated. This property is deprecated.

ResourcesPackagingOptions

PackagingOptions for java resources

Public functions

dex

fun dex(action: @ExtensionFunctionType DexPackagingOptions.() -> 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 JniLibsPackagingOptions.() -> 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 ResourcesPackagingOptions.() -> Unit): Unit

PackagingOptions for java resources

Public properties

dex

val dexDexPackagingOptions

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 jniLibsJniLibsPackagingOptions

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 resourcesResourcesPackagingOptions

PackagingOptions for java resources