public class PackagingOptions extends Object
DSL objects for configuring APK packaging options.
Type | Name and description |
---|---|
void |
exclude(String path) Adds an excluded paths. |
Set<String> |
getExcludes() Returns the list of excluded paths. |
Set<String> |
getMerges() Returns the list of paths where all occurrences are concatenated and packaged in the APK. |
Set<String> |
getPickFirsts() Returns the list of paths where the first occurrence is packaged in the APK. |
void |
merge(String path) Adds a merge path. |
void |
pickFirst(String path) Adds a firstPick path. |
void |
setExcludes(Set<String> excludes) |
void |
setMerges(Set<String> merges) |
void |
setPickFirsts(Set<String> pickFirsts) |
Adds an excluded paths.
path
- the path, as packaged in the APKReturns the list of excluded paths.
Contains "LICENSE.txt" and "LICENSE" by default, since they often cause packaging conflicts.
Returns the list of paths where all occurrences are concatenated and packaged in the APK.
Returns the list of paths where the first occurrence is packaged in the APK.
Adds a merge path.
path
- the path, as packaged in the APKAdds a firstPick path. First pick paths do get packaged in the APK, but only the first occurrence gets packaged.
path
- the path to add.