Add opt-in authenticated HTTPS export of R1 health history

This commit is contained in:
Blendman974 committed 2026-11-07 23:15:29 +01:00
1 parent 6df52021c8
commit f0bb727a80
10 files changed
+348 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { Utils } from "@nativescript/core";
declare const com: any;
/** Android Keystore-backed, excluded from backups. Never falls back to plain settings. */
export function readHealthExportSecret(): string {
if (!global.isAndroid) return "";
return String(com.faceclaw.app.FaceclawHealthExportSecret.read(Utils.android.getApplicationContext()));
}
export function writeHealthExportSecret(value: string): void {
if (!global.isAndroid) throw new Error("Health export is available on Android only");
com.faceclaw.app.FaceclawHealthExportSecret.write(Utils.android.getApplicationContext(), value);
}