Merge branch 'main' of https://github.com/jimrandomh/faceclaw into ring-health-fixes

This commit is contained in:
James Babcock committed 2026-09-25 23:12:20 -07:00
commit a2166c6a6c
822 files changed
+79614 -30124

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import { Application } from '@nativescript/core'
import { registerShareIntentHandler } from './native/share-intents'
import { installNativeUserAgent } from './util/http'
import { registerPhoneRotation } from './native/phone-rotation'
import { startLiveHealthSync, startAlignedRingPull } from './health/health-live'
import { runKotlinBridgeSmokeTest } from './native/kotlin-bridge'
declare const __DEV__: boolean;
if (__DEV__) runKotlinBridgeSmokeTest()
installNativeUserAgent()
registerShareIntentHandler()
registerPhoneRotation()
// Ring health records live only in the communicator's memory until something
// stores them. Both health surfaces store on open, but a pull that lands while
// they are closed would be lost if the process restarted first, so this keeps
// them reaching disk regardless. No-op when there is nothing new.
startLiveHealthSync()
// Collect from the ring on a wall-clock cadence (:01 and :31). Without this
// nothing drives a pull on a timer at all - only onRingReady() on reconnect -
// so a ring that stays connected is never read.
startAlignedRingPull()
Application.run({ moduleName: 'app-root' })