Remove cocoapods-keys. Use UUID for analytics.

Make configuration optional.
This commit is contained in:
Doug
2021-11-24 11:07:34 +00:00
parent 7a683870ca
commit 0b08bddc76
8 changed files with 15 additions and 35 deletions
+4 -1
View File
@@ -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.")