BloomModuleManifest class

Strongly typed manifest representation of bloom.module.yaml.

Encapsulates the module's identity, version, Android and iOS platform specifications, declared permissions, and config plugins.

Example:

const yamlContent = '''
name: BloomCamera
version: 1.0.0
description: Native hardware camera module
''';
final manifest = BloomModuleManifest.fromYaml(yamlContent);
print(manifest.name); // 'BloomCamera'

Constructors

BloomModuleManifest({required String name, String version = '1.0.0', String description = '', BloomModulePlatformSpec android = const BloomModulePlatformSpec(), BloomModulePlatformSpec ios = const BloomModulePlatformSpec(), Map<String, BloomModulePermission> permissions = const {}, String? configPluginClassName, Map<String, dynamic> customMetadata = const {}})
Creates a BloomModuleManifest instance.
const
BloomModuleManifest.fromYaml(String yamlString)
Parses a BloomModuleManifest from a raw YAML string.
factory

Properties

android BloomModulePlatformSpec
Android platform constraints, SDK levels, and Gradle dependencies.
final
configPluginClassName String?
Config plugin class name if this module supplies an Expo/Bloom configuration plugin.
final
customMetadata Map<String, dynamic>
Additional custom metadata key-value dictionary.
final
description String
Human-readable description of the native module functionality.
final
hashCode int
The hash code for this object.
no setterinherited
ios BloomModulePlatformSpec
iOS platform constraints, minimum deployment target, and CocoaPods/frameworks.
final
name String
Unique module identifier (e.g. 'BloomCamera').
final
permissions Map<String, BloomModulePermission>
Declared native system permissions required by this module.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
Semantic version string of the module contract (e.g. '1.0.0').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this manifest to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited