Android 12 Developer Preview is here! Try it out, and give us your feedback!

Packaging

@Incubating interface Packaging
com.android.build.api.variant.Packaging

Defines a variant's packaging options.

Summary

Public methods

abstract Unit

PackagingOptions for java resources.

Properties

abstract JniLibsPackaging

PackagingOptions for native libraries.

abstract ResourcesPackaging

PackagingOptions for java resources.

Public methods

resources

abstract fun resources(action: ResourcesPackaging.() -> Unit): Unit

PackagingOptions for java resources. Initialized from the corresponding DSL.

Properties

jniLibs

abstract val jniLibs: JniLibsPackaging

PackagingOptions for native libraries. Initialized from the corresponding DSL.

resources

abstract val resources: ResourcesPackaging

PackagingOptions for java resources. Initialized from the corresponding DSL.