PackagingOptions

@Incubating interface PackagingOptions
com.android.build.api.dsl.PackagingOptions

Summary

Public methods

abstract Unit
doNotStrip(pattern: String)

Adds a doNotStrip pattern.

abstract Unit
exclude(pattern: String)

Adds an excluded pattern.

abstract Unit
merge(pattern: String)

Adds a merge pattern.

abstract Unit
pickFirst(pattern: String)

Adds a first-pick pattern.

Properties

abstract MutableSet<String>

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

abstract MutableSet<String>

The list of excluded paths.

abstract MutableSet<String>

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

abstract MutableSet<String>

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

Public methods

doNotStrip

abstract fun doNotStrip(pattern: String): Unit

Adds a doNotStrip pattern.

Parameters
pattern: String the pattern, as packaged in the APK

exclude

abstract fun exclude(pattern: String): Unit

Adds an excluded pattern.

Parameters
pattern: String the pattern

merge

abstract fun merge(pattern: String): Unit

Adds a merge pattern.

Parameters
pattern: String the pattern, as packaged in the APK

pickFirst

abstract fun pickFirst(pattern: String): Unit

Adds a first-pick pattern.

Parameters
pattern: String the path to add.

Properties

doNotStrip

abstract val doNotStrip: MutableSet<String>

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

Example: packagingOptions.doNotStrip "*/armeabi-v7a/libhello-jni.so"

excludes

abstract val excludes: MutableSet<String>

The list of excluded paths.

merges

abstract val merges: MutableSet<String>

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

pickFirsts

abstract val pickFirsts: MutableSet<String>

The list 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.