feat: remove new PostHog code

This commit is contained in:
JanNiklas Grabowski
2024-08-19 16:14:27 +02:00
parent 5d8810acfa
commit c4d6678607
5 changed files with 13 additions and 6 deletions
+5
View File
@@ -106,9 +106,12 @@ import AnalyticsEvents
guard let session = session else { return }
useAnalyticsSettings(from: session)
#if POSTHOG
client.updateSuperProperties(.init(appPlatform: .EI,
cryptoSDK: .Rust,
cryptoSDKVersion: session.crypto.version))
#endif
}
/// Stops analytics tracking and calls `reset` to clear any IDs and event queues.
@@ -174,6 +177,7 @@ import AnalyticsEvents
switch result {
case .success(let settings):
self.identify(with: settings)
#if POSTHOG
self.client.updateSuperProperties(
AnalyticsEvent.SuperProperties(
appPlatform: .EI,
@@ -181,6 +185,7 @@ import AnalyticsEvents
cryptoSDKVersion: session.crypto.version
)
)
#endif
self.service = nil
case .failure:
MXLog.error("[Analytics] Failed to use analytics settings. Will continue to run without analytics ID.")