Skip to content

Commit 06d515c

Browse files
acaillymikehardy
authored andcommitted
feat(crashlytics): add helper methods for log and setCustomKey
1 parent 5039759 commit 06d515c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/crashlytics/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsNativeHelper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ public static void recordNativeException(Throwable throwable) {
88
FirebaseCrashlytics.getInstance().recordException(throwable);
99
}
1010

11+
public static void log(String message) {
12+
FirebaseCrashlytics.getInstance().log(message);
13+
}
14+
15+
public static void setCustomKey(String key, String value) {
16+
FirebaseCrashlytics.getInstance().setCustomKey(key, value);
17+
}
18+
1119
}

0 commit comments

Comments
 (0)