Prefab

Added in 8.0.0

interface Prefab

Options for including Prefab packages in AARs.

Summary

Public properties

Boolean

True if the library is header only and contains no library files.

String?

Path to a directory containing headers to export to dependents of this module.

String?

The name of the library file, if it does not match the convention of lib.so or lib.a.

String

The name of the library from the external native build to include in the AAR.

Public properties

headerOnly

Added in 8.0.0
var headerOnlyBoolean

True if the library is header only and contains no library files.

This value defaults to false.

headers

Added in 8.0.0
var headersString?

Path to a directory containing headers to export to dependents of this module.

Note that any file in this directory will be included.

If not set, no headers will be exported for this library.

libraryName

Added in 8.0.0
var libraryNameString?

The name of the library file, if it does not match the convention of lib.so or lib.a.

This option can be used to specify the name of the library file if it does not match the name of the library in the build system. For example, if a CMake target is named "mylib" but the name of the library file was overridden to "mylib.so" rather than the default of "libmylib.so" using OUTPUT_NAME, libraryName should be set to "mylib".

If this option is null, the default convention of lib will be used.

name

Added in 8.0.0
var nameString

The name of the library from the external native build to include in the AAR.

The name of the library must match the name of the library used by the external native build. For an ndk-build project, this is the LOCAL_MODULE option. For a CMake project, this is the name of the target.

This name will be the name of the module in the prefab package, and the package name will be the name of the gradle project.