Replace EventLogger with typed AnalyticsManager using PostHog
Complete analytics overhaul: delete EventLogger.swift, create Analytics.swift with typed event enum (~45 events), screen tracking, super properties (theme, icon pack, voting layout, etc.), session replay with kill switch, autocapture, and network telemetry. Replace all 99 call sites across 38 files with compiler-enforced typed events in object_action naming convention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,10 +21,10 @@ class LocalNotification {
|
||||
public class func testIfEnabled(completion: @escaping (Result<Bool, Error>) -> Void) {
|
||||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in
|
||||
if success {
|
||||
EventLogger.log(event: "local_notification_enabled")
|
||||
AnalyticsManager.shared.track(.notificationEnabled)
|
||||
completion(.success(true))
|
||||
} else if let error = error {
|
||||
EventLogger.log(event: "local_notification_disabled")
|
||||
AnalyticsManager.shared.track(.notificationDisabled)
|
||||
completion(.failure(error))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user