Porting onboarding/flashing flow io iOS

This commit is contained in:
James Babcock committed 2026-09-19 09:19:26 -07:00
1 parent 68b459751e
commit 64bf600ef9
46 files changed
+1419 -211

No files matched your search

+2 -12
View File
@@ -2,18 +2,8 @@ import { Utils } from "@nativescript/core";
declare const com: any;
export type FlashState = "validating" | "connecting" | "flashing" | "rebooting" | "done" | "error";
export type FlashProgress = {
lens: string;
componentIndex: number;
componentCount: number;
blockIndex: number;
blockCount: number;
/** Bytes flashed so far across the whole lens image — the size-weighted progress signal. */
bytesSent: number;
bytesTotal: number;
};
import type { FlashState, FlashProgress } from "../g2/firmware-types";
export type { FlashState, FlashProgress } from "../g2/firmware-types";
/**
* TS wrapper around the native FaceclawFirmwareFlasher — streams a verified