mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
Remove cocoapods-keys. Use UUID for analytics.
Make configuration optional.
This commit is contained in:
@@ -71,7 +71,10 @@ import PostHog
|
||||
func startIfEnabled() {
|
||||
guard RiotSettings.shared.enableAnalytics, !isRunning else { return }
|
||||
|
||||
postHog = PHGPostHog(configuration: PHGPostHogConfiguration.standard)
|
||||
// Ensures that analytics are configured BuildSettings
|
||||
guard let configuration = PHGPostHogConfiguration.standard else { return }
|
||||
|
||||
postHog = PHGPostHog(configuration: configuration)
|
||||
postHog?.enable()
|
||||
MXLog.debug("[Analytics] Started.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user