Add stats collection and first-run on-glasses onboarding app

This commit is contained in:
James Babcock committed 2026-10-10 17:33:32 -07:00
1 parent 84baee9c76
commit 406cefe0c5
73 files changed
+3906 -98

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import type { BuildKind } from './build-info'
declare const NSBundle: any
declare const NSProcessInfo: any
let cached: BuildKind | null = null
/**
* App Store (and TestFlight) builds carry no provisioning profile; anything
* installed from Xcode or as an ad hoc build does. Simulator builds have none
* either, so they're recognized by the simulator's environment.
*/
export function buildKind(): BuildKind {
if (cached) return cached
if (NSProcessInfo.processInfo.environment.objectForKey('SIMULATOR_DEVICE_NAME')) cached = 'debug'
else if (NSBundle.mainBundle.pathForResourceOfType('embedded', 'mobileprovision')) cached = 'self-built'
else cached = 'official'
return cached
}