UpdateManifest class

Manifest describing a downloadable Over-The-Air (OTA) patch.

Contains cryptographic runtime fingerprint compatibility data, rollout percentage, channel and branch specifications, download URLs, and integrity hashes.

Example:

final manifest = UpdateManifest(
  id: 'patch_101',
  version: '1.2.0',
  runtimeFingerprint: 'a1b2c3d4...',
  rolloutPercentage: 50,
);

Constructors

UpdateManifest({required String id, required String version, required String runtimeFingerprint, int rolloutPercentage = 100, String channel = 'production', String branch = 'main', String? releaseNotes, String? downloadUrl, String? assetHash, bool isMandatory = false, Map<String, dynamic> metadata = const {}})
Creates an UpdateManifest descriptor.
const
UpdateManifest.fromJson(Map<String, dynamic> json)
Constructs an UpdateManifest from a JSON json map.
factory

Properties

assetHash String?
SHA-256 integrity hash of downloadable patch binary.
final
branch String
Deployment git branch.
final
channel String
Deployment channel (e.g. 'production', 'staging').
final
downloadUrl String?
Download URL for patch binary assets.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique patch identifier (e.g. 'patch_12').
final
isMandatory bool
Whether this update is mandatory for continued application use.
final
metadata Map<String, dynamic>
Additional custom patch metadata dictionary.
final
releaseNotes String?
Optional release notes markdown text.
final
rolloutPercentage int
Staged rollout deployment percentage 1..100.
final
runtimeFingerprint String
SHA-256 runtime fingerprint compatibility hash.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
Semantic version string of the patch release.
final

Methods

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

Operators

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