fix: build conformed with corrected app store detector

This commit is contained in:
Michael Freno
2026-01-10 20:42:21 -05:00
parent 3f9bb250f4
commit 96398bdbbf
22 changed files with 156 additions and 44 deletions

View File

@@ -75,4 +75,13 @@ class SettingsManager: ObservableObject {
settings.postureTimer = configuration
}
}
/// Detects and caches the App Store version status.
/// This should be called once at app launch to avoid async checks throughout the app.
func detectAppStoreVersion() async {
let isAppStore = await AppStoreDetector.isAppStoreVersion()
await MainActor.run {
settings.isAppStoreVersion = isAppStore
}
}
}