-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
CameraImage and its component classes were left in the app-facing package with the streaming code during the initial federation, so they couldn't be moved to the platform interface package without breaking changes somewhere without causing collisions. Instead near-duplicates were added to the platform interface package with slightly different names, and the app-facing package translates between them.
We should do a breaking change to camera at some point that removes the app-facing versions and returns (and exports) the platform interface versions directly. Since they are simple immutable data classes, they should be fine to use directly from the platform interface (i.e., we never expect clients to extend/implement them, so they won't be subject to breakage).