feat(native): a flight widget and a boarding-pass Live Activity

A new Flight widget on iOS (small to large and the lock screen) and Android
shows the trip's next flight or the one in the air: both airports, the arc
with the aircraft, a countdown the system keeps running, and the delay. It
follows the feed's phase, so a late departure is not flown along the arc.
Around a flight the travel day's Live Activity becomes a boarding pass with
a running bar and countdown, in the Dynamic Island too.
This commit is contained in:
Maurice
2026-11-13 15:29:21 +01:00
parent 4796615439
commit 27f12c2245
80 changed files with 1390 additions and 20 deletions
+12
View File
@@ -106,6 +106,18 @@ export interface TrekShellPlugin {
nextMinutes?: number;
/** Android: each stop's colour (#rrggbb) for the Live Update's segments. */
colors?: (string | null)[];
/** iOS: the day's flight near or in the air, drawn as a boarding pass; older binaries ignore it. */
flight?: {
number: string;
from: string;
to: string;
dep: number;
arr: number;
depTime: string;
arrTime: string;
delay?: number;
airborne?: boolean;
};
}): Promise<{ running: boolean }>;
endTripDay(): Promise<void>;
/** Feature storeKit (iOS) or playBilling (Android): the store's price strings for the products it knows. */