usesmileid_kamera_testing
Replay test kit for usesmileid_kamera. A thin
controller that drives the native KameraReplay facade over a control MethodChannel from Flutter
end-to-end tests: a fixture is installed as the session's frame source, the flow replays it through
the real capture pipeline with no camera, and a machine-readable trace is read back. Pixels never
cross the bridge — only fixture ids and the trace do.
Not for production apps — this is a dev/test dependency.
Usage
import 'package:usesmileid_kamera_testing/usesmileid_kamera_testing.dart';
await KameraReplayController.install(ReplayFixtureId.pipelineSmoke);
// ... run the flow ...
final trace = await KameraReplayController.trace();
addTearDown(KameraReplayController.reset);
inject swaps the fixture mid-flow; the swap takes effect at the next session start. installId
and injectId take a raw manifest id, for a fixture ReplayFixtureId doesn't name. fixtureIds
lists the fixtures in the manifest the device resolves. Kamera replays only in a debuggable Android
app or a development-signed iOS app (and only from a debug or snapshot build of kamera), so a
release build never replays.