createSigningPayload function
Creates a deterministic payload string for signature verification Must match the format used by the CLI and server
Implementation
String createSigningPayload(Map<String, dynamic> update) {
final parts = [
'version:${update['version'] ?? ''}',
'label:${update['label'] ?? ''}',
'platform:${update['platform'] ?? ''}',
'bundleUrl:${update['bundleUrl'] ?? ''}',
'assetsUrl:${update['assetsUrl'] ?? ''}',
'zipUrl:${update['zipUrl'] ?? ''}',
'isMandatory:${update['isMandatory'] ?? false}',
'description:${update['description'] ?? ''}',
];
return parts.join('|');
}