Skip to content

Commit

Permalink
chore: add raw values for evenTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumenRautray committed Jan 24, 2024
1 parent f503745 commit f9e6300
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/REventLogger/REvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions Sources/REventLogger/Utilities/Utility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ extension NSError {
self.code == URLError.networkConnectionLost.rawValue
}
}

enum Bundler {
static let rmcSdks = REventLoggerEnvironment().rmcSdks
}

0 comments on commit f9e6300

Please sign in to comment.