Skip to content

Commit

Permalink
✨ (CrashlyticsKit): Add CrashlyticsManager basic version
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Nov 21, 2024
1 parent 2a6a89d commit 38fd90a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Modules/CrashlyticsKit/Sources/Manager/CrashlyticsManager.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
// Leka - iOS Monorepo
// Copyright APF France handicap
// SPDX-License-Identifier: Apache-2.0

import FirebaseCrashlytics

public class CrashlyticsManager {
public static func log(message: String) {
Crashlytics.crashlytics().log(message)
}

public static func setCustomKey(_ key: String, value: Any) {
Crashlytics.crashlytics().setCustomValue(value, forKey: key)
}

public static func setUserID(_ userID: String) {
Crashlytics.crashlytics().setUserID(userID)
}

public static func recordError(_ error: Error) {
Crashlytics.crashlytics().record(error: error)
}
}

0 comments on commit 38fd90a

Please sign in to comment.