Fix launch crash — add production PostHog API key for Release builds

Replaces fatalError with hardcoded production key so analytics
initializes correctly in TestFlight/App Store builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Trey T
2026-03-27 11:18:49 -05:00
parent 65fbb596a8
commit aa6477b886

View File

@@ -27,7 +27,7 @@ final class AnalyticsManager {
#if DEBUG #if DEBUG
return "phc_development_key" // Safe fallback for debug builds return "phc_development_key" // Safe fallback for debug builds
#else #else
fatalError("Missing POSTHOG_API_KEY in Info.plist") return "phc_RnF7XWdPeAY1M8ABAK75KlrOGVFfqHtZbkUuZ7oY8Xm"
#endif #endif
}() }()
private static let host = "https://analytics.88oakapps.com" private static let host = "https://analytics.88oakapps.com"