feat(native): the app needs TREK 5.1.4 on the server

nativeApi goes to 3 with 5.1.4, whose UI follows a widget or Live Activity
tap that starts the app. The apps refuse an older server with the hint to
update, and check a server they remember once more.
This commit is contained in:
Maurice
2026-11-12 20:21:16 +01:00
parent 736dc5dda9
commit b6e3c9bf39
34 changed files with 74 additions and 71 deletions
+4 -3
View File
@@ -43,12 +43,13 @@ const FEATURES_PATH = '/api/health/features';
/**
* The oldest server API this app can work with (`nativeApi` in the features
* response). 2 is TREK 5.1.3, the first server whose sign-in from the app does
* not end in the browser. A server without the field is older still. Raising it
* response). 3 is TREK 5.1.4, whose UI follows a widget or Live Activity tap
* that starts the app; 2 was 5.1.3, the first server whose sign-in from the app
* does not end in the browser. A server without the field is older still. Raising it
* goes with SERVER_CHECK in TrekServerStore (iOS and Android), so a server the
* app remembers from before is checked against the new minimum once.
*/
const MIN_NATIVE_API = 2;
const MIN_NATIVE_API = 3;
function normalize(raw: string): string | null {
let parsed: URL;