From f9e63009ad2c76122c7f30c998f50167c37f962a Mon Sep 17 00:00:00 2001 From: "soumen.rautray@rakuten.com" Date: Wed, 24 Jan 2024 09:10:03 +0530 Subject: [PATCH] chore: add raw values for evenTypes --- Sources/REventLogger/REvent.swift | 5 +++-- Sources/REventLogger/Utilities/Utility.swift | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Sources/REventLogger/REvent.swift b/Sources/REventLogger/REvent.swift index 65a2650..ed7f0e8 100644 --- a/Sources/REventLogger/REvent.swift +++ b/Sources/REventLogger/REvent.swift @@ -63,13 +63,14 @@ struct REvent: Codable, Equatable { self.errorCode = errorCode self.errorMessage = errorMessage self.info = info - self.rmcSdks = environment.rmcSdks + self.rmcSdks = Bundler.rmcSdks } } /// Describe the type of the event enum EventType: String, Codable { - case critical, warning + case critical = "0" + case warning = "1" } extension REvent { diff --git a/Sources/REventLogger/Utilities/Utility.swift b/Sources/REventLogger/Utilities/Utility.swift index 1d2528d..2383c84 100644 --- a/Sources/REventLogger/Utilities/Utility.swift +++ b/Sources/REventLogger/Utilities/Utility.swift @@ -56,3 +56,7 @@ extension NSError { self.code == URLError.networkConnectionLost.rawValue } } + +enum Bundler { + static let rmcSdks = REventLoggerEnvironment().rmcSdks +}