Review
Some checks failed
openium/resgen.swift/pipeline/pr-master There was a failure building this commit

This commit is contained in:
2025-10-20 17:08:08 +02:00
parent 7c6a8d2ac3
commit b9e610a6d9

View File

@@ -121,7 +121,7 @@ internal class AnalyticsManager {
var managers: [TrackerType: AnalyticsManagerProtocol] = [:] var managers: [TrackerType: AnalyticsManagerProtocol] = [:]
private var isDebugMode: Bool = false private var isDebugMode: Bool = false
private var isEnabled: Bool { private var isEnabled: Bool {
if ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" { if ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" {
@@ -202,7 +202,7 @@ internal class AnalyticsManager {
managers.values.forEach { manager in managers.values.forEach { manager in
if isDebugMode { if isDebugMode {
logger.debug("📊 Event: \(name, privacy: .public) | action: \(action, privacy: .public) | category: \(category, privacy: .public) | params: \(String(describing: params ?? [:]), privacy: .public)") logger.debug("📊 Event: \(name, privacy: .public) | action: \(action.isEmpty ? "-" : action, privacy: .public) | category: \(category.isEmpty ? "-" : category, privacy: .public) | params: \(String(describing: params ?? [:]), privacy: .public)")
} }
manager.logEvent( manager.logEvent(