PackagingOptions

DSL objects for configuring APK packaging options.

Properties

PropertyDescription
excludes

The list of excluded paths.

merges

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

pickFirsts

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

Methods

MethodDescription
exclude(path)

Adds an excluded paths.

merge(path)

Adds a merge path.

pickFirst(path)

Adds a firstPick path. First pick paths do get packaged in the APK, but only the first occurrence gets packaged.

Script blocks

No script blocks

Property details

Set<String> excludes

The list of excluded paths.

Contains "LICENSE.txt" and "LICENSE" by default, since they often cause packaging conflicts.

Set<String> merges

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

Set<String> pickFirsts

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

Method details

void exclude(String path)

Adds an excluded paths.

void merge(String path)

Adds a merge path.

void pickFirst(String path)

Adds a firstPick path. First pick paths do get packaged in the APK, but only the first occurrence gets packaged.