bloomBUILD•SHIP•BLOOM
.md
Instant Code Push

Cloud OTA Deployment

Deploy critical bug fixes and feature updates instantly to iOS and Android users without waiting days for App Store review approval.

CLI Deployment Commands

Use bloom deploy to build store releases or push instant OTA delta patches:

Terminal
bash
# 1. Deploy base app release to App Store / Google Play
bloom deploy release --platform android
bloom deploy release --platform ios

# 2. Deploy instant OTA patch (bypasses app store review in seconds)
bloom deploy patch --platform android --message "Fix checkout tax calculation"
bloom deploy patch --platform ios --message "Fix checkout tax calculation"

Runtime BloomOTA API

Check for patches and download updates gracefully in background tasks:

lib/app/boot.dart
dart
// lib/app/boot.dart
import 'package:bloom_framework/bloom.dart';

class AppBootstrapper implements BloomBootstrapper {
  @override
  Future<void> onBoot(BloomContainer container) async {
    // Check for background OTA patches silently
    final ota = BloomOTA();
    final updateAvailable = await ota.checkForUpdate();
    
    if (updateAvailable) {
      // Download patch asynchronously in the background
      await ota.downloadUpdate();
    }
  }
}

OTA Delivery Architecture

01

Deterministic Hash Fingerprint

Computes cryptographic AST hash of Dart code to ensure patch compatibility with the base engine.

02

Delta Bytecode Generation

Compiles and generates minimal binary byte patch (typically < 100 KB).

03

Cloud Patch Distribution

Distributes patch via global edge CDN directly to active devices.

04

Atomic Background Apply

Applies patch on next app restart without interruption or user action.