flutterpatch 0.1.5
flutterpatch: ^0.1.5 copied to clipboard
Umbrella client for Meta OTA — resource hot-update + Shorebird code push behind one init/wrap/sync API.
0.1.3 #
- Per-patch resource tables:
syncresolves target patch viapatches/check, then syncs that patch's resource pack (patch_number+config_fingerprint). initpassesreleaseVersionintoHotAssets.initso upgrading the binary (e.g.1.0.0+1→1.0.0+2) drops a stale local resource table.- Sync result exposes
targetPatchNumber,updateAvailable, andFlutterPatchCodeResult.outdated/nextPatchNumber/hasResourceChanges. - Depends on
hot_asset_gen^0.1.1 andota_protocol^0.1.1.
0.1.2 #
- Add
FlutterPatch.image+String.flutterPatchImage/flutterPatchImageProviderfor path-based (FlutterGen-friendly) hot images — no app-specific widgets required. Supportspackage/cacheWidth/cacheHeight(aligns with FlutterGenAssetGenImage.image). - Note: Dart cannot override
AssetGenImage.imagevia extension; apps should add.patchImageon their generatedAssetGenImage(see packageassets_flutter_patch.dart). - Add
FlutterPatchAssetImage/FlutterPatchExactAssetImage/FlutterPatch.assetImage: hot table first (no AssetManifest), else package assets. - Send
setUniqueIdas Meta OTApatches/checkclient_idso server-sidewhitelist_enabledcan match. - Skip Shorebird download when Meta OTA returns
patch_available: false(whitelist deny / no newer patch). - Add
FlutterPatch.loadBytesandFlutterPatch.file: always return hot-aware bytes / an on-diskFilewith no caller-side hot/miss branching (fileextracts from the package asset bundle into a local cache when not in the hot table). - Prefer
loadBytes/fileover manualresolveFilenull checks in README.
0.1.1 #
- Expose
FlutterPatch.load,resolveFile, andassetBundlefor non-Image.assethot resources (audio, video file APIs, share bitmaps). - Document resource hot-update scope and image OTA smoke checklist.
0.1.0 #
- Initial release: umbrella client for resource hot-update and Shorebird code push.