PackagingOptions

DSL objects for configuring APK packaging options.

Properties

PropertyDescription
excludes

The list of excluded paths.

pickFirsts

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

Methods

MethodDescription
exclude(path)

Adds an excluded paths.

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> 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 pickFirst(String path)

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