mergeFromKlib

fun KlibDump.mergeFromKlib(klibFile: File, configurableTargetName: String? = null, filters: KlibDumpFilters = KlibDumpFilters.DEFAULT)(source)

Dumps a public ABI of a klib represented by klibFile using filters and merges it into this dump.

To control which declarations are dumped, filters could be used. By default, no filters will be applied.

If a klib contains only a single target, it's possible to specify a custom configurable target name. Please refer to KlibTarget.configurableName for more details on the meaning of that name.

By default, configurableTargetName is null and information about a target will be taken directly from the klib.

It's an error to specify non-null configurableTargetName for a klib containing multiple targets. It's also an error to merge dumps having some targets in common.

Throws

if klibFile contains multiple targets and configurableTargetName is not null.

if a klib could not be loaded from klibFile.