attributes

abstract fun attributes(attributes: Map<String, out Any>): Manifest(source)

Adds content to the main attributes of the manifest.

Return

this

Parameters

attributes

The values to add to the main attributes. The values can be any object, including Provider instances. Provider values are queried lazily either before writing or when getEffectiveManifest is called. Non-provider values are evaluated by using their toString method.

Throws

If a key is invalid according to the manifest spec or if a key or value is null.


abstract fun attributes(attributes: Map<String, out Any>, sectionName: String): Manifest(source)

Adds content to the given section of the manifest.

Return

this

Parameters

attributes

The values to add to the section. The values can be any object, including Provider instances. Provider values are queried lazily either before writing or when getEffectiveManifest is called. Non-provider values are evaluated by using their toString method.

sectionName

The name of the section

Throws

If a key is invalid according to the manifest spec or if a key or value is null.