BloomModulePlatformSpec class

Platform constraints, dependencies, and native frameworks for a Bloom Native Module.

Specifies minimum/target SDKs and required third-party native libraries.

Example:

const iosSpec = BloomModulePlatformSpec(
  minVersion: '15.0',
  dependencies: ['CocoaLumberjack ~> 3.8'],
  frameworks: ['AVFoundation.framework'],
);

Constructors

BloomModulePlatformSpec({int? minSdk, int? targetSdk, String? minVersion, List<String> dependencies = const [], List<String> frameworks = const []})
Creates a BloomModulePlatformSpec configuration.
const
BloomModulePlatformSpec.fromYaml(dynamic value)
Parses a BloomModulePlatformSpec from a YAML node or map value.
factory

Properties

dependencies List<String>
External dependencies (e.g. Gradle artifacts or CocoaPods) required by this module.
final
frameworks List<String>
Native iOS system frameworks required by this module (e.g. ['AVFoundation.framework']).
final
hashCode int
The hash code for this object.
no setterinherited
minSdk int?
Minimum supported SDK version (Android API level).
final
minVersion String?
Minimum iOS version string (e.g. '15.0').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetSdk int?
Target SDK version (Android API level).
final

Methods

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

Operators

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