Gestion du cas des strings vides
Some checks failed
openium/resgen.swift/pipeline/pr-master There was a failure building this commit

This commit is contained in:
2025-10-21 10:55:43 +02:00
parent b9e610a6d9
commit c4a3aa54d6
2 changed files with 2 additions and 2 deletions

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" {

View File

@@ -241,7 +241,7 @@ enum AnalyticsGenerator {
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(