ResourcesPackaging

public interface ResourcesPackaging


Summary

Public methods

abstract @NonNull SetProperty<@NonNull String>

The set of excluded patterns.

abstract @NonNull SetProperty<@NonNull String>

The set of patterns for which matching java resources are merged.

abstract @NonNull SetProperty<@NonNull String>

The set of patterns for which the first occurrence is packaged in the APK.

Public methods

getExcludes

abstract @NonNull SetProperty<@NonNull StringgetExcludes()

The set of excluded patterns. Java resources matching any of these patterns do not get packaged in the APK.

Example usage: packagingOptions.resources.excludes.add("**/*.exclude")

getMerges

abstract @NonNull SetProperty<@NonNull StringgetMerges()

The set of patterns for which matching java resources are merged. For each java resource APK entry path matching one of these patterns, all java resources with that path are concatenated and packaged as a single entry in the APK.

Example usage: packagingOptions.resources.merges.add("**/*.merge")

getPickFirsts

abstract @NonNull SetProperty<@NonNull StringgetPickFirsts()

The set of patterns for which the first occurrence is packaged in the APK. For each java resource APK entry path matching one of these patterns, only the first java resource found with that path gets packaged in the APK.

Example usage: packagingOptions.resources.pickFirsts.add("**/*.pickFirst")