ota_protocol 0.1.1 copy "ota_protocol: ^0.1.1" to clipboard
ota_protocol: ^0.1.1 copied to clipboard

Shorebird-compatible OTA check/events protocol types for Meta Code Push

ota_protocol #

Shorebird-compatible OTA check/events protocol types for Meta Code Push.

Shared request/response models for patch check, patch lifecycle events, and admin/control-plane records — so clients and servers speak the same JSON shape.

Install #

dependencies:
  ota_protocol: ^0.1.1

Usage #

import 'package:ota_protocol/ota_protocol.dart';

final request = PatchCheckRequest(
  appId: 'app_xxx',
  channel: 'stable',
  releaseVersion: '1.0.0+1',
  platform: 'ios',
  arch: 'aarch64',
  clientId: 'device-uuid',
);

final json = request.toJson();
final parsed = PatchCheckRequest.fromJson(json);

Also exports PatchCheckResponse / PatchArtifact, PatchEvent / PatchEventType, and admin models such as AppRecord, ReleaseRecord, and related types.

License #

MIT

0
likes
130
points
491
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shorebird-compatible OTA check/events protocol types for Meta Code Push

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on ota_protocol